2
2
3
3
// IMPORTANT: Do not edit. This file is generated.
4
4
5
- import java .util .stream .Stream ;
6
5
import com .marklogic .client .io .Format ;
6
+ import java .util .stream .Stream ;
7
7
8
8
9
9
import com .marklogic .client .DatabaseClient ;
@@ -48,40 +48,55 @@ final class AnyDocumentBundleImpl implements AnyDocumentBundle {
48
48
private DatabaseClient dbClient ;
49
49
private BaseProxy baseProxy ;
50
50
51
- private BaseProxy .DBFunctionRequest req_sendReceiveManyDocs ;
52
- private BaseProxy .DBFunctionRequest req_sendReceiveRequiredDoc ;
53
51
private BaseProxy .DBFunctionRequest req_sendReceiveOptionalDoc ;
54
52
private BaseProxy .DBFunctionRequest req_sendReceiveAnyDocs ;
53
+ private BaseProxy .DBFunctionRequest req_sendReceiveRequiredDoc ;
54
+ private BaseProxy .DBFunctionRequest req_sendReceiveManyDocs ;
55
55
private BaseProxy .DBFunctionRequest req_sendReceiveMappedDoc ;
56
56
57
57
private AnyDocumentBundleImpl (DatabaseClient dbClient , JSONWriteHandle servDecl ) {
58
58
this .dbClient = dbClient ;
59
59
this .baseProxy = new BaseProxy ("/dbf/test/anyDocument/" , servDecl );
60
60
61
- this .req_sendReceiveManyDocs = this .baseProxy .request (
62
- "sendReceiveManyDocs.sjs" , BaseProxy .ParameterValuesKind .MULTIPLE_MIXED );
63
- this .req_sendReceiveRequiredDoc = this .baseProxy .request (
64
- "sendReceiveRequiredDoc.sjs" , BaseProxy .ParameterValuesKind .MULTIPLE_MIXED );
65
61
this .req_sendReceiveOptionalDoc = this .baseProxy .request (
66
62
"sendReceiveOptionalDoc.sjs" , BaseProxy .ParameterValuesKind .MULTIPLE_MIXED );
67
63
this .req_sendReceiveAnyDocs = this .baseProxy .request (
68
64
"sendReceiveAnyDocs.sjs" , BaseProxy .ParameterValuesKind .MULTIPLE_MIXED );
65
+ this .req_sendReceiveRequiredDoc = this .baseProxy .request (
66
+ "sendReceiveRequiredDoc.sjs" , BaseProxy .ParameterValuesKind .MULTIPLE_MIXED );
67
+ this .req_sendReceiveManyDocs = this .baseProxy .request (
68
+ "sendReceiveManyDocs.sjs" , BaseProxy .ParameterValuesKind .MULTIPLE_MIXED );
69
69
this .req_sendReceiveMappedDoc = this .baseProxy .request (
70
70
"sendReceiveMappedDoc.sjs" , BaseProxy .ParameterValuesKind .MULTIPLE_MIXED );
71
71
}
72
72
73
73
@ Override
74
- public Stream < com .marklogic .client .io .InputStreamHandle > sendReceiveManyDocs ( Stream < String > uris , Stream < com .marklogic .client .io .InputStreamHandle > docs ) {
75
- return sendReceiveManyDocs (
76
- this .req_sendReceiveManyDocs .on (this .dbClient ), uris , docs
74
+ public com .marklogic .client .io .InputStreamHandle sendReceiveOptionalDoc ( String uri , com .marklogic .client .io .InputStreamHandle doc ) {
75
+ return sendReceiveOptionalDoc (
76
+ this .req_sendReceiveOptionalDoc .on (this .dbClient ), uri , doc
77
77
);
78
78
}
79
- private Stream < com .marklogic .client .io .InputStreamHandle > sendReceiveManyDocs (BaseProxy .DBFunctionRequest request , Stream < String > uris , Stream < com .marklogic .client .io .InputStreamHandle > docs ) {
79
+ private com .marklogic .client .io .InputStreamHandle sendReceiveOptionalDoc (BaseProxy .DBFunctionRequest request , String uri , com .marklogic .client .io .InputStreamHandle doc ) {
80
80
return request
81
81
.withParams (
82
- BaseProxy .atomicParam ("uris" , false , BaseProxy .StringType .fromString (uris )),
83
- BaseProxy .documentParam ("docs" , false , docs )
84
- ).responseMultiple (false , Format .UNKNOWN )
82
+ BaseProxy .atomicParam ("uri" , true , BaseProxy .StringType .fromString (uri )),
83
+ BaseProxy .documentParam ("doc" , true , doc )
84
+ ).responseSingle (true , Format .UNKNOWN )
85
+ .asHandle (new com .marklogic .client .io .InputStreamHandle ());
86
+ }
87
+
88
+ @ Override
89
+ public Stream <com .marklogic .client .io .InputStreamHandle > sendReceiveAnyDocs (Stream <String > uris , Stream <com .marklogic .client .io .InputStreamHandle > docs ) {
90
+ return sendReceiveAnyDocs (
91
+ this .req_sendReceiveAnyDocs .on (this .dbClient ), uris , docs
92
+ );
93
+ }
94
+ private Stream <com .marklogic .client .io .InputStreamHandle > sendReceiveAnyDocs (BaseProxy .DBFunctionRequest request , Stream <String > uris , Stream <com .marklogic .client .io .InputStreamHandle > docs ) {
95
+ return request
96
+ .withParams (
97
+ BaseProxy .atomicParam ("uris" , true , BaseProxy .StringType .fromString (uris )),
98
+ BaseProxy .documentParam ("docs" , true , docs )
99
+ ).responseMultiple (true , Format .UNKNOWN )
85
100
.asStreamOfHandles (null , new com .marklogic .client .io .InputStreamHandle ());
86
101
}
87
102
@@ -101,32 +116,17 @@ private com.marklogic.client.io.InputStreamHandle sendReceiveRequiredDoc(BasePro
101
116
}
102
117
103
118
@ Override
104
- public com .marklogic .client .io .InputStreamHandle sendReceiveOptionalDoc (String uri , com .marklogic .client .io .InputStreamHandle doc ) {
105
- return sendReceiveOptionalDoc (
106
- this .req_sendReceiveOptionalDoc .on (this .dbClient ), uri , doc
107
- );
108
- }
109
- private com .marklogic .client .io .InputStreamHandle sendReceiveOptionalDoc (BaseProxy .DBFunctionRequest request , String uri , com .marklogic .client .io .InputStreamHandle doc ) {
110
- return request
111
- .withParams (
112
- BaseProxy .atomicParam ("uri" , true , BaseProxy .StringType .fromString (uri )),
113
- BaseProxy .documentParam ("doc" , true , doc )
114
- ).responseSingle (true , Format .UNKNOWN )
115
- .asHandle (new com .marklogic .client .io .InputStreamHandle ());
116
- }
117
-
118
- @ Override
119
- public Stream <com .marklogic .client .io .InputStreamHandle > sendReceiveAnyDocs (Stream <String > uris , Stream <com .marklogic .client .io .InputStreamHandle > docs ) {
120
- return sendReceiveAnyDocs (
121
- this .req_sendReceiveAnyDocs .on (this .dbClient ), uris , docs
119
+ public Stream <com .marklogic .client .io .InputStreamHandle > sendReceiveManyDocs (Stream <String > uris , Stream <com .marklogic .client .io .InputStreamHandle > docs ) {
120
+ return sendReceiveManyDocs (
121
+ this .req_sendReceiveManyDocs .on (this .dbClient ), uris , docs
122
122
);
123
123
}
124
- private Stream <com .marklogic .client .io .InputStreamHandle > sendReceiveAnyDocs (BaseProxy .DBFunctionRequest request , Stream <String > uris , Stream <com .marklogic .client .io .InputStreamHandle > docs ) {
124
+ private Stream <com .marklogic .client .io .InputStreamHandle > sendReceiveManyDocs (BaseProxy .DBFunctionRequest request , Stream <String > uris , Stream <com .marklogic .client .io .InputStreamHandle > docs ) {
125
125
return request
126
126
.withParams (
127
- BaseProxy .atomicParam ("uris" , true , BaseProxy .StringType .fromString (uris )),
128
- BaseProxy .documentParam ("docs" , true , docs )
129
- ).responseMultiple (true , Format .UNKNOWN )
127
+ BaseProxy .atomicParam ("uris" , false , BaseProxy .StringType .fromString (uris )),
128
+ BaseProxy .documentParam ("docs" , false , docs )
129
+ ).responseMultiple (false , Format .UNKNOWN )
130
130
.asStreamOfHandles (null , new com .marklogic .client .io .InputStreamHandle ());
131
131
}
132
132
@@ -150,40 +150,40 @@ private com.marklogic.client.io.StringHandle sendReceiveMappedDoc(BaseProxy.DBFu
150
150
}
151
151
152
152
/**
153
- * Invokes the sendReceiveManyDocs operation on the database server
153
+ * Invokes the sendReceiveOptionalDoc operation on the database server
154
154
*
155
- * @param uris provides input
156
- * @param docs provides input
155
+ * @param uri provides input
156
+ * @param doc provides input
157
157
* @return as output
158
158
*/
159
- Stream < com .marklogic .client .io .InputStreamHandle > sendReceiveManyDocs ( Stream < String > uris , Stream < com .marklogic .client .io .InputStreamHandle > docs );
159
+ com .marklogic .client .io .InputStreamHandle sendReceiveOptionalDoc ( String uri , com .marklogic .client .io .InputStreamHandle doc );
160
160
161
161
/**
162
- * Invokes the sendReceiveRequiredDoc operation on the database server
162
+ * Invokes the sendReceiveAnyDocs operation on the database server
163
163
*
164
- * @param uri provides input
165
- * @param doc provides input
164
+ * @param uris provides input
165
+ * @param docs provides input
166
166
* @return as output
167
167
*/
168
- com .marklogic .client .io .InputStreamHandle sendReceiveRequiredDoc ( String uri , com .marklogic .client .io .InputStreamHandle doc );
168
+ Stream < com .marklogic .client .io .InputStreamHandle > sendReceiveAnyDocs ( Stream < String > uris , Stream < com .marklogic .client .io .InputStreamHandle > docs );
169
169
170
170
/**
171
- * Invokes the sendReceiveOptionalDoc operation on the database server
171
+ * Invokes the sendReceiveRequiredDoc operation on the database server
172
172
*
173
173
* @param uri provides input
174
174
* @param doc provides input
175
175
* @return as output
176
176
*/
177
- com .marklogic .client .io .InputStreamHandle sendReceiveOptionalDoc (String uri , com .marklogic .client .io .InputStreamHandle doc );
177
+ com .marklogic .client .io .InputStreamHandle sendReceiveRequiredDoc (String uri , com .marklogic .client .io .InputStreamHandle doc );
178
178
179
179
/**
180
- * Invokes the sendReceiveAnyDocs operation on the database server
180
+ * Invokes the sendReceiveManyDocs operation on the database server
181
181
*
182
182
* @param uris provides input
183
183
* @param docs provides input
184
184
* @return as output
185
185
*/
186
- Stream <com .marklogic .client .io .InputStreamHandle > sendReceiveAnyDocs (Stream <String > uris , Stream <com .marklogic .client .io .InputStreamHandle > docs );
186
+ Stream <com .marklogic .client .io .InputStreamHandle > sendReceiveManyDocs (Stream <String > uris , Stream <com .marklogic .client .io .InputStreamHandle > docs );
187
187
188
188
/**
189
189
* Invokes the sendReceiveMappedDoc operation on the database server
0 commit comments