@@ -466,11 +466,9 @@ public <T> T getBatchResponseByRequestId(String requestId) throws ArangoExceptio
466
466
try {
467
467
this .httpManager .setPreDefinedResponse (batchResponseEntity .getHttpResponseEntity ());
468
468
469
- T result = (T ) batchResponseEntity
470
- .getInvocationObject ()
471
- .getMethod ()
472
- .invoke (batchResponseEntity .getInvocationObject ().getArangoDriver (),
473
- batchResponseEntity .getInvocationObject ().getArgs ());
469
+ T result = (T ) batchResponseEntity .getInvocationObject ().getMethod ().invoke (
470
+ batchResponseEntity .getInvocationObject ().getArangoDriver (),
471
+ batchResponseEntity .getInvocationObject ().getArgs ());
474
472
this .httpManager .setPreDefinedResponse (null );
475
473
return result ;
476
474
} catch (InvocationTargetException e ) {
@@ -937,7 +935,8 @@ public <T> DocumentEntity<T> createDocument(String collectionName, T value) thro
937
935
* @throws ArangoException
938
936
* @see CollectionKeyOption#allowUserKeys
939
937
*/
940
- public DocumentEntity <?> createDocument (long collectionId , String documentKey , Object value ) throws ArangoException {
938
+ public DocumentEntity <?> createDocument (long collectionId , String documentKey , Object value )
939
+ throws ArangoException {
941
940
return createDocument (String .valueOf (collectionId ), documentKey , value , null , null );
942
941
}
943
942
@@ -1065,8 +1064,8 @@ public <T> DocumentEntity<T> createDocument(
1065
1064
T value ,
1066
1065
Boolean createCollection ,
1067
1066
Boolean waitForSync ) throws ArangoException {
1068
- return documentDriver .createDocument (getDefaultDatabase (), collectionName , documentKey , value ,
1069
- createCollection , waitForSync );
1067
+ return documentDriver .createDocument (getDefaultDatabase (), collectionName , documentKey , value , createCollection ,
1068
+ waitForSync );
1070
1069
}
1071
1070
1072
1071
/**
@@ -1115,7 +1114,8 @@ public <T> DocumentEntity<T> replaceDocument(String collectionName, long documen
1115
1114
* @return DocumentEntity<?>
1116
1115
* @throws ArangoException
1117
1116
*/
1118
- public <T > DocumentEntity <T > replaceDocument (long collectionId , String documentKey , T value ) throws ArangoException {
1117
+ public <T > DocumentEntity <T > replaceDocument (long collectionId , String documentKey , T value )
1118
+ throws ArangoException {
1119
1119
return replaceDocument (createDocumentHandle (collectionId , documentKey ), value , null , null , null );
1120
1120
}
1121
1121
@@ -1346,8 +1346,8 @@ public DocumentEntity<?> updateDocument(long collectionId, long documentId, Obje
1346
1346
*/
1347
1347
public DocumentEntity <?> updateDocument (String collectionName , long documentId , Object value )
1348
1348
throws ArangoException {
1349
- return updateDocument (createDocumentHandle (collectionName , String .valueOf (documentId )), value , null , null ,
1350
- null , null );
1349
+ return updateDocument (createDocumentHandle (collectionName , String .valueOf (documentId )), value , null , null , null ,
1350
+ null );
1351
1351
}
1352
1352
1353
1353
/**
@@ -1362,7 +1362,8 @@ public DocumentEntity<?> updateDocument(String collectionName, long documentId,
1362
1362
* @return DocumentEntity<?>
1363
1363
* @throws ArangoException
1364
1364
*/
1365
- public DocumentEntity <?> updateDocument (long collectionId , String documentKey , Object value ) throws ArangoException {
1365
+ public DocumentEntity <?> updateDocument (long collectionId , String documentKey , Object value )
1366
+ throws ArangoException {
1366
1367
return updateDocument (createDocumentHandle (collectionId , documentKey ), value , null , null , null , null );
1367
1368
}
1368
1369
@@ -1433,8 +1434,8 @@ public DocumentEntity<?> updateDocument(long collectionId, long documentId, Obje
1433
1434
*/
1434
1435
public DocumentEntity <?> updateDocument (String collectionName , long documentId , Object value , Boolean keepNull )
1435
1436
throws ArangoException {
1436
- return updateDocument (createDocumentHandle (collectionName , String .valueOf (documentId )), value , null , null ,
1437
- null , keepNull );
1437
+ return updateDocument (createDocumentHandle (collectionName , String .valueOf (documentId )), value , null , null , null ,
1438
+ keepNull );
1438
1439
}
1439
1440
1440
1441
/**
@@ -1807,7 +1808,8 @@ public long checkDocument(String documentHandle) throws ArangoException {
1807
1808
* @return a DocumentEntity object
1808
1809
* @throws ArangoException
1809
1810
*/
1810
- public <T > DocumentEntity <T > getDocument (long collectionId , long documentId , Class <T > clazz ) throws ArangoException {
1811
+ public <T > DocumentEntity <T > getDocument (long collectionId , long documentId , Class <T > clazz )
1812
+ throws ArangoException {
1811
1813
return getDocument (createDocumentHandle (collectionId , String .valueOf (documentId )), clazz );
1812
1814
}
1813
1815
@@ -2566,8 +2568,8 @@ public IndexEntity createSkipListIndex(String collectionName, boolean unique, St
2566
2568
*/
2567
2569
public IndexEntity createSkipListIndex (String collectionName , boolean unique , boolean sparse , String ... fields )
2568
2570
throws ArangoException {
2569
- return indexDriver
2570
- . createIndex ( getDefaultDatabase (), collectionName , IndexType . SKIPLIST , unique , sparse , fields );
2571
+ return indexDriver . createIndex ( getDefaultDatabase (), collectionName , IndexType . SKIPLIST , unique , sparse ,
2572
+ fields );
2571
2573
}
2572
2574
2573
2575
/**
@@ -3310,8 +3312,8 @@ public <T> CursorEntity<DocumentEntity<T>> executeSimpleRangeWithDocument(
3310
3312
int skip ,
3311
3313
int limit ,
3312
3314
Class <T > clazz ) throws ArangoException {
3313
- return simpleDriver .executeSimpleRangeWithDocument (getDefaultDatabase (), collectionName , attribute , left ,
3314
- right , closed , skip , limit , clazz );
3315
+ return simpleDriver .executeSimpleRangeWithDocument (getDefaultDatabase (), collectionName , attribute , left , right ,
3316
+ closed , skip , limit , clazz );
3315
3317
}
3316
3318
3317
3319
/**
@@ -4237,8 +4239,8 @@ public GraphEntity createGraph(
4237
4239
List <EdgeDefinitionEntity > edgeDefinitions ,
4238
4240
List <String > orphanCollections ,
4239
4241
Boolean waitForSync ) throws ArangoException {
4240
- return graphDriver
4241
- . createGraph ( getDefaultDatabase (), graphName , edgeDefinitions , orphanCollections , waitForSync );
4242
+ return graphDriver . createGraph ( getDefaultDatabase (), graphName , edgeDefinitions , orphanCollections ,
4243
+ waitForSync );
4242
4244
}
4243
4245
4244
4246
/**
@@ -4255,8 +4257,8 @@ public GraphEntity createGraph(GraphEntity graph, Boolean waitForSync) throws Ar
4255
4257
String graphName = graph .getName ();
4256
4258
List <EdgeDefinitionEntity > edgeDefinitions = graph .getEdgeDefinitions ();
4257
4259
List <String > orphanCollections = graph .getOrphanCollections ();
4258
- return graphDriver
4259
- . createGraph ( getDefaultDatabase (), graphName , edgeDefinitions , orphanCollections , waitForSync );
4260
+ return graphDriver . createGraph ( getDefaultDatabase (), graphName , edgeDefinitions , orphanCollections ,
4261
+ waitForSync );
4260
4262
}
4261
4263
4262
4264
/**
@@ -4612,8 +4614,8 @@ public DeletedEntity graphDeleteVertex(
4612
4614
*/
4613
4615
public <T > VertexEntity <T > graphReplaceVertex (String graphName , String collectionName , String key , T vertex )
4614
4616
throws ArangoException {
4615
- return graphDriver
4616
- . replaceVertex ( getDefaultDatabase (), graphName , collectionName , key , vertex , null , null , null );
4617
+ return graphDriver . replaceVertex ( getDefaultDatabase (), graphName , collectionName , key , vertex , null , null ,
4618
+ null );
4617
4619
}
4618
4620
4619
4621
/**
@@ -4891,8 +4893,8 @@ public DeletedEntity graphDeleteEdge(String graphName, String edgeCollectionName
4891
4893
*/
4892
4894
public DeletedEntity graphDeleteEdge (String graphName , String edgeCollectionName , String key , Boolean waitForSync )
4893
4895
throws ArangoException {
4894
- return graphDriver
4895
- . deleteEdge ( getDefaultDatabase (), graphName , edgeCollectionName , key , waitForSync , null , null );
4896
+ return graphDriver . deleteEdge ( getDefaultDatabase (), graphName , edgeCollectionName , key , waitForSync , null ,
4897
+ null );
4896
4898
}
4897
4899
4898
4900
/**
@@ -5434,8 +5436,6 @@ public TransactionResultEntity executeTransaction(TransactionEntity transactionE
5434
5436
/**
5435
5437
* Create an edge in an edge collection.
5436
5438
*
5437
- * @param graphName
5438
- * the graph name
5439
5439
* @param collectionName
5440
5440
* name of the edge collection
5441
5441
* @param object
@@ -5452,15 +5452,15 @@ public TransactionResultEntity executeTransaction(TransactionEntity transactionE
5452
5452
* @throws ArangoException
5453
5453
*/
5454
5454
public <T > EdgeEntity <T > createEdge (
5455
- String graphName ,
5456
5455
String collectionName ,
5457
5456
T object ,
5458
5457
String from ,
5459
5458
String to ,
5460
5459
Boolean createCollection ,
5461
5460
Boolean waitForSync ) throws ArangoException {
5462
5461
5463
- return this .edgeDriver .createEdge (graphName , collectionName , object , from , to , createCollection , waitForSync );
5462
+ return this .edgeDriver .createEdge (getDefaultDatabase (), collectionName , object , from , to , createCollection ,
5463
+ waitForSync );
5464
5464
}
5465
5465
5466
5466
/**
0 commit comments