@@ -2335,7 +2335,7 @@ public ReplicationApplierStateEntity getReplicationApplierState() throws ArangoE
2335
2335
* Returns a GraphsEntity containing all graph as GraphEntity object of the
2336
2336
* default database.
2337
2337
*
2338
- * @return GraphsEntity
2338
+ * @return GraphsEntity Object containing all graphs of the database.
2339
2339
* @throws ArangoException
2340
2340
*/
2341
2341
public GraphsEntity getGraphs () throws ArangoException {
@@ -2346,7 +2346,7 @@ public GraphsEntity getGraphs() throws ArangoException {
2346
2346
* Creates a list of the names of all available graphs of the default
2347
2347
* database.
2348
2348
*
2349
- * @return List<String>
2349
+ * @return List<String> All graph names of the database.
2350
2350
* @throws ArangoException
2351
2351
*/
2352
2352
public List <String > getGraphList () throws ArangoException {
@@ -2357,10 +2357,14 @@ public List<String> getGraphList() throws ArangoException {
2357
2357
* Creates a graph.
2358
2358
*
2359
2359
* @param graphName
2360
+ * The name of the graph to be created.
2360
2361
* @param edgeDefinitions
2362
+ * List of the graphs edge definitions.
2361
2363
* @param orphanCollections
2364
+ * List of the graphs orphan collections.
2362
2365
* @param waitForSync
2363
- * @return GraphEntity
2366
+ * Wait for sync.
2367
+ * @return GraphEntity The new graph.
2364
2368
* @throws ArangoException
2365
2369
*/
2366
2370
public GraphEntity createGraph (
@@ -2375,8 +2379,10 @@ public GraphEntity createGraph(
2375
2379
* Creates an empty graph.
2376
2380
*
2377
2381
* @param graphName
2382
+ * The name of the graph to be created.
2378
2383
* @param waitForSync
2379
- * @return GraphEntity
2384
+ * Wait for sync.
2385
+ * @return GraphEntity The new graph.
2380
2386
* @throws ArangoException
2381
2387
*/
2382
2388
public GraphEntity createGraph (String graphName , Boolean waitForSync ) throws ArangoException {
@@ -2388,7 +2394,8 @@ public GraphEntity createGraph(String graphName, Boolean waitForSync) throws Ara
2388
2394
* collections.
2389
2395
*
2390
2396
* @param graphName
2391
- * @return GraphEntity
2397
+ * The name of the graph.
2398
+ * @return GraphEntity The graph.
2392
2399
* @throws ArangoException
2393
2400
*/
2394
2401
public GraphEntity getGraph (String graphName ) throws ArangoException {
@@ -2400,6 +2407,8 @@ public GraphEntity getGraph(String graphName) throws ArangoException {
2400
2407
* dropped.
2401
2408
*
2402
2409
* @param graphName
2410
+ * Name of the graph to be deleted.
2411
+ * @return DeletedEntity
2403
2412
* @throws ArangoException
2404
2413
*/
2405
2414
public DeletedEntity deleteGraph (String graphName ) throws ArangoException {
@@ -2411,7 +2420,9 @@ public DeletedEntity deleteGraph(String graphName) throws ArangoException {
2411
2420
* the graph will be dropped, if they are not used in another graph.
2412
2421
*
2413
2422
* @param graphName
2423
+ * Name of the graph to be deleted.
2414
2424
* @param dropCollections
2425
+ * Indicates if the collections of the graph will be dropped
2415
2426
* @throws ArangoException
2416
2427
*/
2417
2428
public void deleteGraph (String graphName , Boolean dropCollections ) throws ArangoException {
@@ -2423,7 +2434,8 @@ public void deleteGraph(String graphName, Boolean dropCollections) throws Arango
2423
2434
* graphs edgeDefinitions (in "from", "to", and "orphanCollections")
2424
2435
*
2425
2436
* @param graphName
2426
- * @return List<String>
2437
+ * The graph name.
2438
+ * @return List<String> List of the names of the vertex collections
2427
2439
* @throws ArangoException
2428
2440
*/
2429
2441
public List <String > graphGetVertexCollections (String graphName ) throws ArangoException {
@@ -2435,8 +2447,11 @@ public List<String> graphGetVertexCollections(String graphName) throws ArangoExc
2435
2447
* collection, if it is not used in any other graph.
2436
2448
*
2437
2449
* @param graphName
2450
+ * The graph name.
2438
2451
* @param collectionName
2452
+ * The name of the vertex collection to be removed from the graph.
2439
2453
* @param dropCollection
2454
+ * Indicates if the collection will be dropped
2440
2455
* @throws ArangoException
2441
2456
*/
2442
2457
public DeletedEntity graphDeleteVertexCollection (String graphName , String collectionName , Boolean dropCollection )
@@ -2448,8 +2463,10 @@ public DeletedEntity graphDeleteVertexCollection(String graphName, String collec
2448
2463
* Creates a vertex collection
2449
2464
*
2450
2465
* @param graphName
2466
+ * The graph name.
2451
2467
* @param collectionName
2452
- * @return GraphEntity
2468
+ * The name of the collection to be created.
2469
+ * @return GraphEntity The graph, including the new collection.
2453
2470
* @throws ArangoException
2454
2471
*/
2455
2472
public GraphEntity graphCreateVertexCollection (String graphName , String collectionName ) throws ArangoException {
@@ -2461,7 +2478,9 @@ public GraphEntity graphCreateVertexCollection(String graphName, String collecti
2461
2478
* graphs edgeDefinitions
2462
2479
*
2463
2480
* @param graphName
2464
- * @return List<String>
2481
+ * The graph name.
2482
+ * @return List<String> List of the names of all edge collections of the
2483
+ * graph.
2465
2484
* @throws ArangoException
2466
2485
*/
2467
2486
public List <String > graphGetEdgeCollections (String graphName ) throws ArangoException {
@@ -2472,8 +2491,10 @@ public List<String> graphGetEdgeCollections(String graphName) throws ArangoExcep
2472
2491
* Adds a new edge definition to an existing graph
2473
2492
*
2474
2493
* @param graphName
2494
+ * The graph name.
2475
2495
* @param edgeDefinition
2476
- * @return GraphEntity
2496
+ * The edge definition to be added.
2497
+ * @return GraphEntity The graph, including the new edge definition.
2477
2498
* @throws ArangoException
2478
2499
*/
2479
2500
public GraphEntity graphCreateEdgeDefinition (String graphName , EdgeDefinitionEntity edgeDefinition )
@@ -2487,9 +2508,13 @@ public GraphEntity graphCreateEdgeDefinition(String graphName, EdgeDefinitionEnt
2487
2508
* well.
2488
2509
*
2489
2510
* @param graphName
2511
+ * The name of the graph.
2490
2512
* @param edgeCollectionName
2513
+ * The name of the edge collection of the edge definition that has to
2514
+ * be replaced.
2491
2515
* @param edgeDefinition
2492
- * @return GraphEntity
2516
+ * The new edge definition.
2517
+ * @return GraphEntity The graph, including the changed edge definition.
2493
2518
* @throws ArangoException
2494
2519
*/
2495
2520
public GraphEntity graphReplaceEdgeDefinition (
@@ -2504,8 +2529,11 @@ public GraphEntity graphReplaceEdgeDefinition(
2504
2529
* collections is dropped as well as long as it is not used in other graphs.
2505
2530
*
2506
2531
* @param graphName
2532
+ * The name of the graph.
2507
2533
* @param edgeCollectionName
2508
- * @return
2534
+ * The name of edge collection of the edge definition which has to be
2535
+ * deleted.
2536
+ * @return The graph, excluding the deleted edge definition.
2509
2537
*/
2510
2538
public GraphEntity graphDeleteEdgeDefinition (String graphName , String edgeCollectionName , Boolean dropCollection )
2511
2539
throws ArangoException {
@@ -2517,9 +2545,13 @@ public GraphEntity graphDeleteEdgeDefinition(String graphName, String edgeCollec
2517
2545
* the given collection.
2518
2546
*
2519
2547
* @param graphName
2548
+ * The name of the graph.
2520
2549
* @param vertex
2550
+ * The vertex object to be stored
2521
2551
* @param waitForSync
2522
- * @return <T> DocumentEntity<T>
2552
+ * Wait for sync.
2553
+ * @return <T> DocumentEntity<T> The resulting DocumentEntity containing the
2554
+ * vertex document.
2523
2555
* @throws ArangoException
2524
2556
*/
2525
2557
public <T > DocumentEntity <T >
@@ -3122,21 +3154,22 @@ public <T> CursorEntity<T> graphGetEdgesByExampleMap(
3122
3154
return result ;
3123
3155
}
3124
3156
3125
- public <T , S > CursorEntity <EdgeEntity <T >> graphGetEdgesByExampleObject1 (
3126
- String graphName ,
3127
- Class <T > clazzT ,
3128
- S vertexExample ) throws ArangoException {
3129
- validateCollectionName (graphName );
3130
- String query = "for i in graph_edges(@graphName, @vertexExample) return i" ;
3131
-
3132
- Map <String , Object > bindVars = new MapBuilder ().put ("graphName" , graphName ).put ("vertexExample" , vertexExample )
3133
- .get ();
3134
-
3135
- // CursorEntity<EdgeEntity<T>> result = this.executeQuery(query, bindVars,
3136
- // clazzT, true, 20);
3137
-
3138
- return null ;
3139
- }
3157
+ // public <T, S> CursorEntity<EdgeEntity<T>> graphGetEdgesByExampleObject1(
3158
+ // String graphName,
3159
+ // Class<T> clazzT,
3160
+ // S vertexExample) throws ArangoException {
3161
+ // validateCollectionName(graphName);
3162
+ // String query = "for i in graph_edges(@graphName, @vertexExample) return i";
3163
+ //
3164
+ // Map<String, Object> bindVars = new MapBuilder().put("graphName",
3165
+ // graphName).put("vertexExample", vertexExample)
3166
+ // .get();
3167
+ //
3168
+ // CursorEntity<EdgeEntity<T>> result = this.executeQuery(query, bindVars,
3169
+ // EdgeEntity<T>.class, true, 20);
3170
+ //
3171
+ // return null;
3172
+ // }
3140
3173
3141
3174
// public <T> CursorEntity<EdgeEntity<T>> graphGetEdgesWithData(
3142
3175
// String graphName,
0 commit comments