@ThreadSafe public interface ArangoEdgeCollection extends ArangoSerdeAccessor
| Modifier and Type | Method and Description |
|---|---|
void |
deleteEdge(String key)
Removes a edge
|
void |
deleteEdge(String key,
EdgeDeleteOptions options)
Removes a edge
|
<T> T |
getEdge(String key,
Class<T> type)
Fetches an existing edge
|
<T> T |
getEdge(String key,
Class<T> type,
GraphDocumentReadOptions options)
Fetches an existing edge
|
ArangoGraph |
graph()
The the handler of the named graph the edge collection is within
|
EdgeEntity |
insertEdge(Object value)
Creates a new edge in the collection
|
EdgeEntity |
insertEdge(Object value,
EdgeCreateOptions options)
Creates a new edge in the collection
|
String |
name()
The name of the edge collection
|
EdgeUpdateEntity |
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
violated
|
EdgeUpdateEntity |
replaceEdge(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
violated
|
EdgeUpdateEntity |
updateEdge(String key,
Object value)
Partially updates the edge identified by document-key.
|
EdgeUpdateEntity |
updateEdge(String key,
Object value,
EdgeUpdateOptions options)
Partially updates the edge identified by document-key.
|
getSerdeArangoGraph graph()
String name()
EdgeEntity insertEdge(Object value)
value - A representation of a single edge (POJO or RawData)EdgeEntity insertEdge(Object value, EdgeCreateOptions options)
value - A representation of a single edge (POJO or RawData)options - Additional options, can be null<T> T getEdge(String key, Class<T> type)
key - The key of the edgetype - The type of the edge-document (POJO or RawData)<T> T getEdge(String key, Class<T> type, GraphDocumentReadOptions options)
key - The key of the edgetype - The type of the edge-document (POJO or RawData)options - Additional options, can be nullEdgeUpdateEntity replaceEdge(String key, Object value)
key - The key of the edgevalue - A representation of a single edge (POJO or RawData)EdgeUpdateEntity replaceEdge(String key, Object value, EdgeReplaceOptions options)
key - The key of the edgevalue - A representation of a single edge (POJO or RawData)options - Additional options, can be nullEdgeUpdateEntity updateEdge(String key, Object value)
key - The key of the edgevalue - A representation of a single edge (POJO or RawData)EdgeUpdateEntity updateEdge(String key, Object value, EdgeUpdateOptions options)
key - The key of the edgevalue - A representation of a single edge (POJO or RawData)options - Additional options, can be nullvoid deleteEdge(String key)
key - The key of the edgevoid deleteEdge(String key, EdgeDeleteOptions options)
key - The key of the edgeoptions - Additional options, can be nullCopyright © 2016–2023 ArangoDB GmbH. All rights reserved.