@@ -3881,6 +3881,8 @@ public GraphEntity graphDeleteEdgeDefinition(String graphName, String edgeCollec
3881
3881
*
3882
3882
* @param graphName
3883
3883
* The name of the graph.
3884
+ * @param collectionName
3885
+ * The name of the collection, where the vertex will be created.
3884
3886
* @param vertex
3885
3887
* The vertex object to be stored
3886
3888
* @param waitForSync
@@ -4173,13 +4175,55 @@ public <T> DocumentEntity<T> graphUpdateVertex(
4173
4175
* given collection.
4174
4176
*
4175
4177
* @param graphName
4178
+ * The name of the graph.
4176
4179
* @param edgeCollectionName
4180
+ * The name of the collection where the edge will be created.
4181
+ * @param fromHandle
4182
+ * Document handle of vertex, where the edge comes from.
4183
+ * @param toHandle
4184
+ * Document handle of vertex, where the edge goes to.
4185
+ * @param value
4186
+ * Object to be stored with edge.
4187
+ * @param waitForSync
4188
+ * Wait for sync.
4189
+ * @return <T> EdgeEntity<T>
4190
+ * @throws ArangoException
4191
+ */
4192
+ public <T > EdgeEntity <T > graphCreateEdge (
4193
+ String graphName ,
4194
+ String edgeCollectionName ,
4195
+ String fromHandle ,
4196
+ String toHandle ,
4197
+ Object value ,
4198
+ Boolean waitForSync ) throws ArangoException {
4199
+ return graphDriver .createEdge (
4200
+ getDefaultDatabase (),
4201
+ graphName ,
4202
+ edgeCollectionName ,
4203
+ fromHandle ,
4204
+ toHandle ,
4205
+ value ,
4206
+ waitForSync );
4207
+ }
4208
+
4209
+ /**
4210
+ * Stores a new edge with the information contained within the body into the
4211
+ * given collection.
4212
+ *
4213
+ * @param graphName
4214
+ * The name of the graph.
4215
+ * @param edgeCollectionName
4216
+ * The name of the collection where the edge will be created.
4177
4217
* @param key
4218
+ * The key of the edge to create (has to be unique).
4178
4219
* @param fromHandle
4220
+ * Document handle of vertex, where the edge comes from.
4179
4221
* @param toHandle
4222
+ * Document handle of vertex, where the edge goes to.
4180
4223
* @param value
4181
- * @param label
4224
+ * Object to be stored with edge.
4182
4225
* @param waitForSync
4226
+ * Wait for sync.
4183
4227
* @return <T> EdgeEntity<T>
4184
4228
* @throws ArangoException
4185
4229
*/
@@ -4207,10 +4251,15 @@ public <T> EdgeEntity<T> graphCreateEdge(
4207
4251
* given collection.
4208
4252
*
4209
4253
* @param graphName
4254
+ * The name of the graph.
4210
4255
* @param edgeCollectionName
4256
+ * The name of the collection where the edge will be created.
4211
4257
* @param key
4258
+ * The key of the edge to create (has to be unique).
4212
4259
* @param fromHandle
4260
+ * Document handle of vertex, where the edge comes from.
4213
4261
* @param toHandle
4262
+ * Document handle of vertex, where the edge goes to.
4214
4263
* @return <T> EdgeEntity<T>
4215
4264
* @throws ArangoException
4216
4265
*/
@@ -4235,12 +4284,19 @@ public <T> EdgeEntity<T> graphCreateEdge(
4235
4284
* Loads an edge with the given key if it is contained within your graph.
4236
4285
*
4237
4286
* @param graphName
4287
+ * The name of the graph.
4238
4288
* @param edgeCollectionName
4289
+ * The name of the collection containing edge to get.
4239
4290
* @param key
4291
+ * The key of the edge to get.
4240
4292
* @param clazz
4241
- * @param rev
4242
- * @param ifNoneMatchRevision
4293
+ * The class of the edge to get.
4243
4294
* @param ifMatchRevision
4295
+ * If not null the revision of the vertex in the database has to be
4296
+ * equal to load the edge.
4297
+ * @param ifNoneMatchRevision
4298
+ * If not null the revision of the vertex in the database has to be
4299
+ * different to load the edge.
4244
4300
* @return <T> EdgeEntity<T>
4245
4301
* @throws ArangoException
4246
4302
*/
@@ -4249,42 +4305,47 @@ public <T> EdgeEntity<T> graphGetEdge(
4249
4305
String edgeCollectionName ,
4250
4306
String key ,
4251
4307
Class <?> clazz ,
4252
- Long rev ,
4253
- Long ifNoneMatchRevision ,
4254
- Long ifMatchRevision ) throws ArangoException {
4308
+ Long ifMatchRevision ,
4309
+ Long ifNoneMatchRevision ) throws ArangoException {
4255
4310
return graphDriver .getEdge (
4256
4311
getDefaultDatabase (),
4257
4312
graphName ,
4258
4313
edgeCollectionName ,
4259
4314
key ,
4260
4315
clazz ,
4261
- rev ,
4262
- ifNoneMatchRevision ,
4263
- ifMatchRevision );
4316
+ ifMatchRevision ,
4317
+ ifNoneMatchRevision );
4264
4318
}
4265
4319
4266
4320
/**
4267
4321
* Loads an edge with the given key if it is contained within your graph.
4268
4322
*
4269
4323
* @param graphName
4324
+ * The name of the graph.
4270
4325
* @param edgeCollectionName
4326
+ * The name of the collection containing edge to get.
4271
4327
* @param key
4328
+ * The key of the edge to get.
4272
4329
* @param clazz
4330
+ * The class of the edge to get.
4273
4331
* @return <T> EdgeEntity<T>
4274
4332
* @throws ArangoException
4275
4333
*/
4276
4334
public <T > EdgeEntity <T > graphGetEdge (String graphName , String edgeCollectionName , String key , Class <?> clazz )
4277
4335
throws ArangoException {
4278
- return graphDriver .getEdge (getDefaultDatabase (), graphName , edgeCollectionName , key , clazz , null , null , null );
4336
+ return graphDriver .getEdge (getDefaultDatabase (), graphName , edgeCollectionName , key , clazz , null , null );
4279
4337
}
4280
4338
4281
4339
/**
4282
4340
* Deletes an edge with the given id, if it is contained within the graph.
4283
4341
*
4284
4342
* @param graphName
4343
+ * The name of the graph.
4285
4344
* @param edgeCollectionName
4345
+ * The name of the collection containing edge to delete.
4286
4346
* @param key
4287
- * @return
4347
+ * The key of the edge to delete.
4348
+ * @return DeletedEntity
4288
4349
* @throws ArangoException
4289
4350
*/
4290
4351
public DeletedEntity graphDeleteEdge (String graphName , String edgeCollectionName , String key ) throws ArangoException {
@@ -4295,9 +4356,13 @@ public DeletedEntity graphDeleteEdge(String graphName, String edgeCollectionName
4295
4356
* Deletes an edge with the given id, if it is contained within the graph.
4296
4357
*
4297
4358
* @param graphName
4359
+ * The name of the graph.
4298
4360
* @param edgeCollectionName
4361
+ * The name of the collection containing edge to delete.
4299
4362
* @param key
4363
+ * The key of the edge to delete.
4300
4364
* @param waitForSync
4365
+ * Wait for sync.
4301
4366
* @return
4302
4367
* @throws ArangoException
4303
4368
*/
@@ -4310,39 +4375,51 @@ public DeletedEntity graphDeleteEdge(String graphName, String edgeCollectionName
4310
4375
* Deletes an edge with the given id, if it is contained within the graph.
4311
4376
*
4312
4377
* @param graphName
4378
+ * The name of the graph.
4313
4379
* @param edgeCollectionName
4380
+ * The name of the collection containing edge to delete.
4314
4381
* @param key
4382
+ * The key of the edge to delete.
4315
4383
* @param waitForSync
4316
- * @param rev
4384
+ * Wait for sync.
4317
4385
* @param ifMatchRevision
4318
- * @return
4386
+ * If not null the revision of the vertex in the database has to be
4387
+ * equal to delete the edge.
4388
+ * @param ifNoneMatchRevision
4389
+ * If not null the revision of the vertex in the database has to be
4390
+ * different to delete the edge.
4391
+ * @return DeletedEntity
4319
4392
* @throws ArangoException
4320
4393
*/
4321
4394
public DeletedEntity graphDeleteEdge (
4322
4395
String graphName ,
4323
4396
String edgeCollectionName ,
4324
4397
String key ,
4325
4398
Boolean waitForSync ,
4326
- Long rev ,
4327
- Long ifMatchRevision ) throws ArangoException {
4399
+ Long ifMatchRevision ,
4400
+ Long ifNoneMatchRevision ) throws ArangoException {
4328
4401
return graphDriver .deleteEdge (
4329
4402
getDefaultDatabase (),
4330
4403
graphName ,
4331
4404
edgeCollectionName ,
4332
4405
key ,
4333
4406
waitForSync ,
4334
- rev ,
4335
- ifMatchRevision );
4407
+ ifMatchRevision ,
4408
+ ifNoneMatchRevision );
4336
4409
}
4337
4410
4338
4411
/**
4339
4412
* Replaces an edge with the given key by the content in the body. This will
4340
4413
* only run successfully if the edge is contained within the graph.
4341
4414
*
4342
4415
* @param graphName
4416
+ * The name of the graph.
4343
4417
* @param edgeCollectionName
4418
+ * The name of the collection containing edge to replace.
4344
4419
* @param key
4420
+ * The key of the edge to replace.
4345
4421
* @param value
4422
+ * The object to replace the existing edge.
4346
4423
* @return
4347
4424
* @throws ArangoException
4348
4425
*/
@@ -4356,13 +4433,22 @@ public <T> EdgeEntity<T> graphReplaceEdge(String graphName, String edgeCollectio
4356
4433
* only run successfully if the edge is contained within the graph.
4357
4434
*
4358
4435
* @param graphName
4436
+ * The name of the graph.
4359
4437
* @param edgeCollectionName
4438
+ * The name of the collection containing edge to replace.
4360
4439
* @param key
4440
+ * The key of the edge to replace.
4361
4441
* @param value
4442
+ * The object to replace the existing edge.
4362
4443
* @param waitForSync
4363
- * @param rev
4444
+ * Wait for sync.
4364
4445
* @param ifMatchRevision
4365
- * @return
4446
+ * If not null the revision of the vertex in the database has to be
4447
+ * equal to replace the edge.
4448
+ * @param ifNoneMatchRevision
4449
+ * If not null the revision of the vertex in the database has to be
4450
+ * different to replace the edge.
4451
+ * @return EdgeEntity<T>
4366
4452
* @throws ArangoException
4367
4453
*/
4368
4454
public <T > EdgeEntity <T > graphReplaceEdge (
@@ -4371,29 +4457,33 @@ public <T> EdgeEntity<T> graphReplaceEdge(
4371
4457
String key ,
4372
4458
Object value ,
4373
4459
Boolean waitForSync ,
4374
- Long rev ,
4375
- Long ifMatchRevision ) throws ArangoException {
4460
+ Long ifMatchRevision ,
4461
+ Long ifNoneMatchRevision ) throws ArangoException {
4376
4462
return graphDriver .replaceEdge (
4377
4463
getDefaultDatabase (),
4378
4464
graphName ,
4379
4465
edgeCollectionName ,
4380
4466
key ,
4381
4467
value ,
4382
4468
waitForSync ,
4383
- rev ,
4384
- ifMatchRevision );
4469
+ ifMatchRevision ,
4470
+ ifNoneMatchRevision );
4385
4471
}
4386
4472
4387
4473
/**
4388
4474
* Updates an edge with the given key by adding the content in the body. This
4389
4475
* will only run successfully if the edge is contained within the graph.
4390
4476
*
4391
4477
* @param graphName
4478
+ * The name of the graph.
4392
4479
* @param edgeCollectionName
4480
+ * The name of the collection containing edge to update.
4393
4481
* @param key
4482
+ * The key of the edge to update.
4394
4483
* @param value
4484
+ * The object to update the existing edge.
4395
4485
* @param keepNull
4396
- * @return
4486
+ * @return EdgeEntity<T>
4397
4487
* @throws ArangoException
4398
4488
*/
4399
4489
public <T > EdgeEntity <T > graphUpdateEdge (
@@ -4419,13 +4509,22 @@ public <T> EdgeEntity<T> graphUpdateEdge(
4419
4509
* will only run successfully if the edge is contained within the graph.
4420
4510
*
4421
4511
* @param graphName
4512
+ * The name of the graph.
4422
4513
* @param edgeCollectionName
4514
+ * The name of the collection containing edge to update.
4423
4515
* @param key
4516
+ * The key of the edge to update.
4424
4517
* @param value
4518
+ * The object to update the existing edge.
4425
4519
* @param waitForSync
4520
+ * Wait for sync.
4426
4521
* @param keepNull
4427
- * @param rev
4428
4522
* @param ifMatchRevision
4523
+ * If not null the revision of the vertex in the database has to be
4524
+ * equal to update the edge.
4525
+ * @param ifNoneMatchRevision
4526
+ * If not null the revision of the vertex in the database has to be
4527
+ * different to update the edge.
4429
4528
* @return
4430
4529
* @throws ArangoException
4431
4530
*/
@@ -4436,8 +4535,8 @@ public <T> EdgeEntity<T> graphUpdateEdge(
4436
4535
Object value ,
4437
4536
Boolean waitForSync ,
4438
4537
Boolean keepNull ,
4439
- Long rev ,
4440
- Long ifMatchRevision ) throws ArangoException {
4538
+ Long ifMatchRevision ,
4539
+ Long ifNoneMatchRevision ) throws ArangoException {
4441
4540
return graphDriver .updateEdge (
4442
4541
getDefaultDatabase (),
4443
4542
graphName ,
@@ -4446,8 +4545,8 @@ public <T> EdgeEntity<T> graphUpdateEdge(
4446
4545
value ,
4447
4546
waitForSync ,
4448
4547
keepNull ,
4449
- rev ,
4450
- ifMatchRevision );
4548
+ ifMatchRevision ,
4549
+ ifNoneMatchRevision );
4451
4550
}
4452
4551
4453
4552
// Some methods not using the graph api
0 commit comments