@@ -3505,6 +3505,8 @@ public GraphEntity graphDeleteEdgeDefinition(String graphName, String edgeCollec
3505
3505
*
3506
3506
* @param graphName
3507
3507
* The name of the graph.
3508
+ * @param collectionName
3509
+ * The name of the collection, where the vertex will be created.
3508
3510
* @param vertex
3509
3511
* The vertex object to be stored
3510
3512
* @param waitForSync
@@ -3797,13 +3799,55 @@ public <T> DocumentEntity<T> graphUpdateVertex(
3797
3799
* given collection.
3798
3800
*
3799
3801
* @param graphName
3802
+ * The name of the graph.
3800
3803
* @param edgeCollectionName
3804
+ * The name of the collection where the edge will be created.
3805
+ * @param fromHandle
3806
+ * Document handle of vertex, where the edge comes from.
3807
+ * @param toHandle
3808
+ * Document handle of vertex, where the edge goes to.
3809
+ * @param value
3810
+ * Object to be stored with edge.
3811
+ * @param waitForSync
3812
+ * Wait for sync.
3813
+ * @return <T> EdgeEntity<T>
3814
+ * @throws ArangoException
3815
+ */
3816
+ public <T > EdgeEntity <T > graphCreateEdge (
3817
+ String graphName ,
3818
+ String edgeCollectionName ,
3819
+ String fromHandle ,
3820
+ String toHandle ,
3821
+ Object value ,
3822
+ Boolean waitForSync ) throws ArangoException {
3823
+ return graphDriver .createEdge (
3824
+ getDefaultDatabase (),
3825
+ graphName ,
3826
+ edgeCollectionName ,
3827
+ fromHandle ,
3828
+ toHandle ,
3829
+ value ,
3830
+ waitForSync );
3831
+ }
3832
+
3833
+ /**
3834
+ * Stores a new edge with the information contained within the body into the
3835
+ * given collection.
3836
+ *
3837
+ * @param graphName
3838
+ * The name of the graph.
3839
+ * @param edgeCollectionName
3840
+ * The name of the collection where the edge will be created.
3801
3841
* @param key
3842
+ * The key of the edge to create (has to be unique).
3802
3843
* @param fromHandle
3844
+ * Document handle of vertex, where the edge comes from.
3803
3845
* @param toHandle
3846
+ * Document handle of vertex, where the edge goes to.
3804
3847
* @param value
3805
- * @param label
3848
+ * Object to be stored with edge.
3806
3849
* @param waitForSync
3850
+ * Wait for sync.
3807
3851
* @return <T> EdgeEntity<T>
3808
3852
* @throws ArangoException
3809
3853
*/
@@ -3831,10 +3875,15 @@ public <T> EdgeEntity<T> graphCreateEdge(
3831
3875
* given collection.
3832
3876
*
3833
3877
* @param graphName
3878
+ * The name of the graph.
3834
3879
* @param edgeCollectionName
3880
+ * The name of the collection where the edge will be created.
3835
3881
* @param key
3882
+ * The key of the edge to create (has to be unique).
3836
3883
* @param fromHandle
3884
+ * Document handle of vertex, where the edge comes from.
3837
3885
* @param toHandle
3886
+ * Document handle of vertex, where the edge goes to.
3838
3887
* @return <T> EdgeEntity<T>
3839
3888
* @throws ArangoException
3840
3889
*/
@@ -3859,12 +3908,19 @@ public <T> EdgeEntity<T> graphCreateEdge(
3859
3908
* Loads an edge with the given key if it is contained within your graph.
3860
3909
*
3861
3910
* @param graphName
3911
+ * The name of the graph.
3862
3912
* @param edgeCollectionName
3913
+ * The name of the collection containing edge to get.
3863
3914
* @param key
3915
+ * The key of the edge to get.
3864
3916
* @param clazz
3865
- * @param rev
3866
- * @param ifNoneMatchRevision
3917
+ * The class of the edge to get.
3867
3918
* @param ifMatchRevision
3919
+ * If not null the revision of the vertex in the database has to be
3920
+ * equal to load the edge.
3921
+ * @param ifNoneMatchRevision
3922
+ * If not null the revision of the vertex in the database has to be
3923
+ * different to load the edge.
3868
3924
* @return <T> EdgeEntity<T>
3869
3925
* @throws ArangoException
3870
3926
*/
@@ -3873,42 +3929,47 @@ public <T> EdgeEntity<T> graphGetEdge(
3873
3929
String edgeCollectionName ,
3874
3930
String key ,
3875
3931
Class <?> clazz ,
3876
- Long rev ,
3877
- Long ifNoneMatchRevision ,
3878
- Long ifMatchRevision ) throws ArangoException {
3932
+ Long ifMatchRevision ,
3933
+ Long ifNoneMatchRevision ) throws ArangoException {
3879
3934
return graphDriver .getEdge (
3880
3935
getDefaultDatabase (),
3881
3936
graphName ,
3882
3937
edgeCollectionName ,
3883
3938
key ,
3884
3939
clazz ,
3885
- rev ,
3886
- ifNoneMatchRevision ,
3887
- ifMatchRevision );
3940
+ ifMatchRevision ,
3941
+ ifNoneMatchRevision );
3888
3942
}
3889
3943
3890
3944
/**
3891
3945
* Loads an edge with the given key if it is contained within your graph.
3892
3946
*
3893
3947
* @param graphName
3948
+ * The name of the graph.
3894
3949
* @param edgeCollectionName
3950
+ * The name of the collection containing edge to get.
3895
3951
* @param key
3952
+ * The key of the edge to get.
3896
3953
* @param clazz
3954
+ * The class of the edge to get.
3897
3955
* @return <T> EdgeEntity<T>
3898
3956
* @throws ArangoException
3899
3957
*/
3900
3958
public <T > EdgeEntity <T > graphGetEdge (String graphName , String edgeCollectionName , String key , Class <?> clazz )
3901
3959
throws ArangoException {
3902
- return graphDriver .getEdge (getDefaultDatabase (), graphName , edgeCollectionName , key , clazz , null , null , null );
3960
+ return graphDriver .getEdge (getDefaultDatabase (), graphName , edgeCollectionName , key , clazz , null , null );
3903
3961
}
3904
3962
3905
3963
/**
3906
3964
* Deletes an edge with the given id, if it is contained within the graph.
3907
3965
*
3908
3966
* @param graphName
3967
+ * The name of the graph.
3909
3968
* @param edgeCollectionName
3969
+ * The name of the collection containing edge to delete.
3910
3970
* @param key
3911
- * @return
3971
+ * The key of the edge to delete.
3972
+ * @return DeletedEntity
3912
3973
* @throws ArangoException
3913
3974
*/
3914
3975
public DeletedEntity graphDeleteEdge (String graphName , String edgeCollectionName , String key ) throws ArangoException {
@@ -3919,9 +3980,13 @@ public DeletedEntity graphDeleteEdge(String graphName, String edgeCollectionName
3919
3980
* Deletes an edge with the given id, if it is contained within the graph.
3920
3981
*
3921
3982
* @param graphName
3983
+ * The name of the graph.
3922
3984
* @param edgeCollectionName
3985
+ * The name of the collection containing edge to delete.
3923
3986
* @param key
3987
+ * The key of the edge to delete.
3924
3988
* @param waitForSync
3989
+ * Wait for sync.
3925
3990
* @return
3926
3991
* @throws ArangoException
3927
3992
*/
@@ -3934,39 +3999,51 @@ public DeletedEntity graphDeleteEdge(String graphName, String edgeCollectionName
3934
3999
* Deletes an edge with the given id, if it is contained within the graph.
3935
4000
*
3936
4001
* @param graphName
4002
+ * The name of the graph.
3937
4003
* @param edgeCollectionName
4004
+ * The name of the collection containing edge to delete.
3938
4005
* @param key
4006
+ * The key of the edge to delete.
3939
4007
* @param waitForSync
3940
- * @param rev
4008
+ * Wait for sync.
3941
4009
* @param ifMatchRevision
3942
- * @return
4010
+ * If not null the revision of the vertex in the database has to be
4011
+ * equal to delete the edge.
4012
+ * @param ifNoneMatchRevision
4013
+ * If not null the revision of the vertex in the database has to be
4014
+ * different to delete the edge.
4015
+ * @return DeletedEntity
3943
4016
* @throws ArangoException
3944
4017
*/
3945
4018
public DeletedEntity graphDeleteEdge (
3946
4019
String graphName ,
3947
4020
String edgeCollectionName ,
3948
4021
String key ,
3949
4022
Boolean waitForSync ,
3950
- Long rev ,
3951
- Long ifMatchRevision ) throws ArangoException {
4023
+ Long ifMatchRevision ,
4024
+ Long ifNoneMatchRevision ) throws ArangoException {
3952
4025
return graphDriver .deleteEdge (
3953
4026
getDefaultDatabase (),
3954
4027
graphName ,
3955
4028
edgeCollectionName ,
3956
4029
key ,
3957
4030
waitForSync ,
3958
- rev ,
3959
- ifMatchRevision );
4031
+ ifMatchRevision ,
4032
+ ifNoneMatchRevision );
3960
4033
}
3961
4034
3962
4035
/**
3963
4036
* Replaces an edge with the given key by the content in the body. This will
3964
4037
* only run successfully if the edge is contained within the graph.
3965
4038
*
3966
4039
* @param graphName
4040
+ * The name of the graph.
3967
4041
* @param edgeCollectionName
4042
+ * The name of the collection containing edge to replace.
3968
4043
* @param key
4044
+ * The key of the edge to replace.
3969
4045
* @param value
4046
+ * The object to replace the existing edge.
3970
4047
* @return
3971
4048
* @throws ArangoException
3972
4049
*/
@@ -3980,13 +4057,22 @@ public <T> EdgeEntity<T> graphReplaceEdge(String graphName, String edgeCollectio
3980
4057
* only run successfully if the edge is contained within the graph.
3981
4058
*
3982
4059
* @param graphName
4060
+ * The name of the graph.
3983
4061
* @param edgeCollectionName
4062
+ * The name of the collection containing edge to replace.
3984
4063
* @param key
4064
+ * The key of the edge to replace.
3985
4065
* @param value
4066
+ * The object to replace the existing edge.
3986
4067
* @param waitForSync
3987
- * @param rev
4068
+ * Wait for sync.
3988
4069
* @param ifMatchRevision
3989
- * @return
4070
+ * If not null the revision of the vertex in the database has to be
4071
+ * equal to replace the edge.
4072
+ * @param ifNoneMatchRevision
4073
+ * If not null the revision of the vertex in the database has to be
4074
+ * different to replace the edge.
4075
+ * @return EdgeEntity<T>
3990
4076
* @throws ArangoException
3991
4077
*/
3992
4078
public <T > EdgeEntity <T > graphReplaceEdge (
@@ -3995,29 +4081,33 @@ public <T> EdgeEntity<T> graphReplaceEdge(
3995
4081
String key ,
3996
4082
Object value ,
3997
4083
Boolean waitForSync ,
3998
- Long rev ,
3999
- Long ifMatchRevision ) throws ArangoException {
4084
+ Long ifMatchRevision ,
4085
+ Long ifNoneMatchRevision ) throws ArangoException {
4000
4086
return graphDriver .replaceEdge (
4001
4087
getDefaultDatabase (),
4002
4088
graphName ,
4003
4089
edgeCollectionName ,
4004
4090
key ,
4005
4091
value ,
4006
4092
waitForSync ,
4007
- rev ,
4008
- ifMatchRevision );
4093
+ ifMatchRevision ,
4094
+ ifNoneMatchRevision );
4009
4095
}
4010
4096
4011
4097
/**
4012
4098
* Updates an edge with the given key by adding the content in the body. This
4013
4099
* will only run successfully if the edge is contained within the graph.
4014
4100
*
4015
4101
* @param graphName
4102
+ * The name of the graph.
4016
4103
* @param edgeCollectionName
4104
+ * The name of the collection containing edge to update.
4017
4105
* @param key
4106
+ * The key of the edge to update.
4018
4107
* @param value
4108
+ * The object to update the existing edge.
4019
4109
* @param keepNull
4020
- * @return
4110
+ * @return EdgeEntity<T>
4021
4111
* @throws ArangoException
4022
4112
*/
4023
4113
public <T > EdgeEntity <T > graphUpdateEdge (
@@ -4043,13 +4133,22 @@ public <T> EdgeEntity<T> graphUpdateEdge(
4043
4133
* will only run successfully if the edge is contained within the graph.
4044
4134
*
4045
4135
* @param graphName
4136
+ * The name of the graph.
4046
4137
* @param edgeCollectionName
4138
+ * The name of the collection containing edge to update.
4047
4139
* @param key
4140
+ * The key of the edge to update.
4048
4141
* @param value
4142
+ * The object to update the existing edge.
4049
4143
* @param waitForSync
4144
+ * Wait for sync.
4050
4145
* @param keepNull
4051
- * @param rev
4052
4146
* @param ifMatchRevision
4147
+ * If not null the revision of the vertex in the database has to be
4148
+ * equal to update the edge.
4149
+ * @param ifNoneMatchRevision
4150
+ * If not null the revision of the vertex in the database has to be
4151
+ * different to update the edge.
4053
4152
* @return
4054
4153
* @throws ArangoException
4055
4154
*/
@@ -4060,8 +4159,8 @@ public <T> EdgeEntity<T> graphUpdateEdge(
4060
4159
Object value ,
4061
4160
Boolean waitForSync ,
4062
4161
Boolean keepNull ,
4063
- Long rev ,
4064
- Long ifMatchRevision ) throws ArangoException {
4162
+ Long ifMatchRevision ,
4163
+ Long ifNoneMatchRevision ) throws ArangoException {
4065
4164
return graphDriver .updateEdge (
4066
4165
getDefaultDatabase (),
4067
4166
graphName ,
@@ -4070,8 +4169,8 @@ public <T> EdgeEntity<T> graphUpdateEdge(
4070
4169
value ,
4071
4170
waitForSync ,
4072
4171
keepNull ,
4073
- rev ,
4074
- ifMatchRevision );
4172
+ ifMatchRevision ,
4173
+ ifNoneMatchRevision );
4075
4174
}
4076
4175
4077
4176
// Some methods not using the graph api
0 commit comments