Package com.arangodb
Interface ArangoEdgeCollection
- All Superinterfaces:
ArangoSerdeAccessor
- All Known Implementing Classes:
ArangoEdgeCollectionImpl
Interface for operations on ArangoDB edge collection level.
- Author:
- Mark Vollmary
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteEdge
(String key) Removes a edgevoid
deleteEdge
(String key, EdgeDeleteOptions options) Removes a edgevoid
drop()
Deprecated.void
drop
(EdgeCollectionDropOptions options) Deprecated.useremove(EdgeCollectionRemoveOptions)
instead<T> T
Fetches an existing edge<T> T
getEdge
(String key, Class<T> type, GraphDocumentReadOptions options) Fetches an existing edgegraph()
The the handler of the named graph the edge collection is withininsertEdge
(Object value) Creates a new edge in the collectioninsertEdge
(Object value, EdgeCreateOptions options) Creates a new edge in the collectionname()
The name of the edge collectionvoid
remove()
Remove one edge definition from the graph.void
remove
(EdgeCollectionRemoveOptions options) Remove one edge definition from the graph.replaceEdge
(String key, Object value) Replaces the edge with key with the one in the body, provided there is such a edge and no precondition is violatedreplaceEdge
(String key, Object value, EdgeReplaceOptions options) Replaces the edge with key with the one in the body, provided there is such a edge and no precondition is violatedupdateEdge
(String key, Object value) Partially updates the edge identified by document-key.updateEdge
(String key, Object value, EdgeUpdateOptions options) Partially updates the edge identified by document-key.Methods inherited from interface com.arangodb.ArangoSerdeAccessor
getSerde
-
Method Details
-
graph
ArangoGraph graph()The the handler of the named graph the edge collection is within- Returns:
- graph handler
-
name
String name()The name of the edge collection- Returns:
- collection name
-
drop
Deprecated.useremove()
insteadRemove one edge definition from the graph.- See Also:
-
drop
Deprecated.useremove(EdgeCollectionRemoveOptions)
insteadRemove one edge definition from the graph.- Parameters:
options
- options- See Also:
-
remove
void remove()Remove one edge definition from the graph.- See Also:
-
remove
Remove one edge definition from the graph.- Parameters:
options
- options- See Also:
-
insertEdge
Creates a new edge in the collection- Parameters:
value
- A representation of a single edge (POJO orRawData
)- Returns:
- information about the edge
- See Also:
-
insertEdge
Creates a new edge in the collection- Parameters:
value
- A representation of a single edge (POJO orRawData
)options
- Additional options, can be null- Returns:
- information about the edge
- See Also:
-
getEdge
Fetches an existing edge- Parameters:
key
- The key of the edgetype
- The type of the edge-document (POJO orRawData
)- Returns:
- the edge identified by the key
- See Also:
-
getEdge
Fetches an existing edge- Parameters:
key
- The key of the edgetype
- The type of the edge-document (POJO orRawData
)options
- Additional options, can be null- Returns:
- the edge identified by the key
- See Also:
-
replaceEdge
Replaces the edge with key with the one in the body, provided there is such a edge and no precondition is violated- Parameters:
key
- The key of the edgevalue
- A representation of a single edge (POJO orRawData
)- Returns:
- information about the edge
- See Also:
-
replaceEdge
Replaces the edge with key with the one in the body, provided there is such a edge and no precondition is violated- Parameters:
key
- The key of the edgevalue
- A representation of a single edge (POJO orRawData
)options
- Additional options, can be null- Returns:
- information about the edge
- See Also:
-
updateEdge
Partially updates the edge identified by document-key. The value must contain a document with the attributes to patch (the patch document). All attributes from the patch document will be added to the existing document if they do not yet exist, and overwritten in the existing document if they do exist there.- Parameters:
key
- The key of the edgevalue
- A representation of a single edge (POJO orRawData
)- Returns:
- information about the edge
- See Also:
-
updateEdge
Partially updates the edge identified by document-key. The value must contain a document with the attributes to patch (the patch document). All attributes from the patch document will be added to the existing document if they do not yet exist, and overwritten in the existing document if they do exist there.- Parameters:
key
- The key of the edgevalue
- A representation of a single edge (POJO orRawData
)options
- Additional options, can be null- Returns:
- information about the edge
- See Also:
-
deleteEdge
Removes a edge- Parameters:
key
- The key of the edge- See Also:
-
deleteEdge
Removes a edge- Parameters:
key
- The key of the edgeoptions
- Additional options, can be null- See Also:
-
remove()
instead