22
33// IMPORTANT: Do not edit. This file is generated.
44
5- import java .util .stream .Stream ;
65import com .marklogic .client .io .Format ;
6+ import java .util .stream .Stream ;
77
88
99import com .marklogic .client .DatabaseClient ;
@@ -48,40 +48,55 @@ final class AnyDocumentBundleImpl implements AnyDocumentBundle {
4848 private DatabaseClient dbClient ;
4949 private BaseProxy baseProxy ;
5050
51- private BaseProxy .DBFunctionRequest req_sendReceiveManyDocs ;
52- private BaseProxy .DBFunctionRequest req_sendReceiveRequiredDoc ;
5351 private BaseProxy .DBFunctionRequest req_sendReceiveOptionalDoc ;
5452 private BaseProxy .DBFunctionRequest req_sendReceiveAnyDocs ;
53+ private BaseProxy .DBFunctionRequest req_sendReceiveRequiredDoc ;
54+ private BaseProxy .DBFunctionRequest req_sendReceiveManyDocs ;
5555 private BaseProxy .DBFunctionRequest req_sendReceiveMappedDoc ;
5656
5757 private AnyDocumentBundleImpl (DatabaseClient dbClient , JSONWriteHandle servDecl ) {
5858 this .dbClient = dbClient ;
5959 this .baseProxy = new BaseProxy ("/dbf/test/anyDocument/" , servDecl );
6060
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 );
6561 this .req_sendReceiveOptionalDoc = this .baseProxy .request (
6662 "sendReceiveOptionalDoc.sjs" , BaseProxy .ParameterValuesKind .MULTIPLE_MIXED );
6763 this .req_sendReceiveAnyDocs = this .baseProxy .request (
6864 "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 );
6969 this .req_sendReceiveMappedDoc = this .baseProxy .request (
7070 "sendReceiveMappedDoc.sjs" , BaseProxy .ParameterValuesKind .MULTIPLE_MIXED );
7171 }
7272
7373 @ 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
7777 );
7878 }
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 ) {
8080 return request
8181 .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 )
85100 .asStreamOfHandles (null , new com .marklogic .client .io .InputStreamHandle ());
86101 }
87102
@@ -101,32 +116,17 @@ private com.marklogic.client.io.InputStreamHandle sendReceiveRequiredDoc(BasePro
101116 }
102117
103118 @ 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
122122 );
123123 }
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 ) {
125125 return request
126126 .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 )
130130 .asStreamOfHandles (null , new com .marklogic .client .io .InputStreamHandle ());
131131 }
132132
@@ -150,40 +150,40 @@ private com.marklogic.client.io.StringHandle sendReceiveMappedDoc(BaseProxy.DBFu
150150 }
151151
152152 /**
153- * Invokes the sendReceiveManyDocs operation on the database server
153+ * Invokes the sendReceiveOptionalDoc operation on the database server
154154 *
155- * @param uris provides input
156- * @param docs provides input
155+ * @param uri provides input
156+ * @param doc provides input
157157 * @return as output
158158 */
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 );
160160
161161 /**
162- * Invokes the sendReceiveRequiredDoc operation on the database server
162+ * Invokes the sendReceiveAnyDocs operation on the database server
163163 *
164- * @param uri provides input
165- * @param doc provides input
164+ * @param uris provides input
165+ * @param docs provides input
166166 * @return as output
167167 */
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 );
169169
170170 /**
171- * Invokes the sendReceiveOptionalDoc operation on the database server
171+ * Invokes the sendReceiveRequiredDoc operation on the database server
172172 *
173173 * @param uri provides input
174174 * @param doc provides input
175175 * @return as output
176176 */
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 );
178178
179179 /**
180- * Invokes the sendReceiveAnyDocs operation on the database server
180+ * Invokes the sendReceiveManyDocs operation on the database server
181181 *
182182 * @param uris provides input
183183 * @param docs provides input
184184 * @return as output
185185 */
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 );
187187
188188 /**
189189 * Invokes the sendReceiveMappedDoc operation on the database server
0 commit comments