@@ -69,9 +69,7 @@ protected ArangoCollectionImpl(final ArangoDatabaseImpl db, final String name) {
69
69
70
70
@ Override
71
71
public <T > DocumentCreateEntity <T > insertDocument (final T value ) throws ArangoDBException {
72
- final DocumentCreateOptions options = new DocumentCreateOptions ();
73
- return executor .execute (insertDocumentRequest (value , options ),
74
- insertDocumentResponseDeserializer (value , options ));
72
+ return insertDocument (value , new DocumentCreateOptions ());
75
73
}
76
74
77
75
@ Override
@@ -84,9 +82,7 @@ public <T> DocumentCreateEntity<T> insertDocument(final T value, final DocumentC
84
82
@ Override
85
83
public <T > MultiDocumentEntity <DocumentCreateEntity <T >> insertDocuments (final Collection <T > values )
86
84
throws ArangoDBException {
87
- final DocumentCreateOptions params = new DocumentCreateOptions ();
88
- return executor .execute (insertDocumentsRequest (values , params ),
89
- insertDocumentsResponseDeserializer (values , params ));
85
+ return insertDocuments (values , new DocumentCreateOptions ());
90
86
}
91
87
92
88
@ Override
@@ -111,8 +107,7 @@ public DocumentImportEntity importDocuments(final Collection<?> values, final Do
111
107
112
108
@ Override
113
109
public DocumentImportEntity importDocuments (final String values ) throws ArangoDBException {
114
- return executor .execute (importDocumentsRequest (values , new DocumentImportOptions ()),
115
- DocumentImportEntity .class );
110
+ return importDocuments (values , new DocumentImportOptions ());
116
111
}
117
112
118
113
@ Override
@@ -161,9 +156,7 @@ public <T> MultiDocumentEntity<T> getDocuments(
161
156
162
157
@ Override
163
158
public <T > DocumentUpdateEntity <T > replaceDocument (final String key , final T value ) throws ArangoDBException {
164
- final DocumentReplaceOptions options = new DocumentReplaceOptions ();
165
- return executor .execute (replaceDocumentRequest (key , value , options ),
166
- replaceDocumentResponseDeserializer (value , options ));
159
+ return replaceDocument (key , value , new DocumentReplaceOptions ());
167
160
}
168
161
169
162
@ Override
@@ -178,9 +171,7 @@ public <T> DocumentUpdateEntity<T> replaceDocument(
178
171
@ Override
179
172
public <T > MultiDocumentEntity <DocumentUpdateEntity <T >> replaceDocuments (final Collection <T > values )
180
173
throws ArangoDBException {
181
- final DocumentReplaceOptions params = new DocumentReplaceOptions ();
182
- return executor .execute (replaceDocumentsRequest (values , params ),
183
- replaceDocumentsResponseDeserializer (values , params ));
174
+ return replaceDocuments (values , new DocumentReplaceOptions ());
184
175
}
185
176
186
177
@ Override
@@ -194,9 +185,7 @@ public <T> MultiDocumentEntity<DocumentUpdateEntity<T>> replaceDocuments(
194
185
195
186
@ Override
196
187
public <T > DocumentUpdateEntity <T > updateDocument (final String key , final T value ) throws ArangoDBException {
197
- final DocumentUpdateOptions options = new DocumentUpdateOptions ();
198
- return executor .execute (updateDocumentRequest (key , value , options ),
199
- updateDocumentResponseDeserializer (value , options ));
188
+ return updateDocument (key , value , new DocumentUpdateOptions ());
200
189
}
201
190
202
191
@ Override
@@ -211,9 +200,7 @@ public <T> DocumentUpdateEntity<T> updateDocument(
211
200
@ Override
212
201
public <T > MultiDocumentEntity <DocumentUpdateEntity <T >> updateDocuments (final Collection <T > values )
213
202
throws ArangoDBException {
214
- final DocumentUpdateOptions params = new DocumentUpdateOptions ();
215
- return executor .execute (updateDocumentsRequest (values , params ),
216
- updateDocumentsResponseDeserializer (values , params ));
203
+ return updateDocuments (values , new DocumentUpdateOptions ());
217
204
}
218
205
219
206
@ Override
0 commit comments