public class ArangoEdgeCollectionImpl extends InternalArangoEdgeCollection<ArangoDBImpl,ArangoDatabaseImpl,ArangoGraphImpl,ArangoExecutorSync> implements ArangoEdgeCollection
executor, serde
Modifier | Constructor and Description |
---|---|
protected |
ArangoEdgeCollectionImpl(ArangoGraphImpl graph,
String name) |
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
|
EdgeEntity |
insertEdge(Object value)
Creates a new edge in the collection
|
EdgeEntity |
insertEdge(Object value,
EdgeCreateOptions options)
Creates a new edge in the 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.
|
deleteEdgeRequest, getEdgeRequest, getEdgeResponseDeserializer, graph, insertEdgeRequest, insertEdgeResponseDeserializer, name, replaceEdgeRequest, replaceEdgeResponseDeserializer, updateEdgeRequest, updateEdgeResponseDeserializer
createPath, executor, getSerde, request
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
graph, name
getSerde
protected ArangoEdgeCollectionImpl(ArangoGraphImpl graph, String name)
public EdgeEntity insertEdge(Object value)
ArangoEdgeCollection
insertEdge
in interface ArangoEdgeCollection
value
- A representation of a single edge (POJO or RawData
)public EdgeEntity insertEdge(Object value, EdgeCreateOptions options)
ArangoEdgeCollection
insertEdge
in interface ArangoEdgeCollection
value
- A representation of a single edge (POJO or RawData
)options
- Additional options, can be nullpublic <T> T getEdge(String key, Class<T> type)
ArangoEdgeCollection
getEdge
in interface ArangoEdgeCollection
key
- The key of the edgetype
- The type of the edge-document (POJO or RawData
)public <T> T getEdge(String key, Class<T> type, GraphDocumentReadOptions options)
ArangoEdgeCollection
getEdge
in interface ArangoEdgeCollection
key
- The key of the edgetype
- The type of the edge-document (POJO or RawData
)options
- Additional options, can be nullpublic EdgeUpdateEntity replaceEdge(String key, Object value)
ArangoEdgeCollection
replaceEdge
in interface ArangoEdgeCollection
key
- The key of the edgevalue
- A representation of a single edge (POJO or RawData
)public EdgeUpdateEntity replaceEdge(String key, Object value, EdgeReplaceOptions options)
ArangoEdgeCollection
replaceEdge
in interface ArangoEdgeCollection
key
- The key of the edgevalue
- A representation of a single edge (POJO or RawData
)options
- Additional options, can be nullpublic EdgeUpdateEntity updateEdge(String key, Object value)
ArangoEdgeCollection
updateEdge
in interface ArangoEdgeCollection
key
- The key of the edgevalue
- A representation of a single edge (POJO or RawData
)public EdgeUpdateEntity updateEdge(String key, Object value, EdgeUpdateOptions options)
ArangoEdgeCollection
updateEdge
in interface ArangoEdgeCollection
key
- The key of the edgevalue
- A representation of a single edge (POJO or RawData
)options
- Additional options, can be nullpublic void deleteEdge(String key)
ArangoEdgeCollection
deleteEdge
in interface ArangoEdgeCollection
key
- The key of the edgepublic void deleteEdge(String key, EdgeDeleteOptions options)
ArangoEdgeCollection
deleteEdge
in interface ArangoEdgeCollection
key
- The key of the edgeoptions
- Additional options, can be nullCopyright © 2016–2023 ArangoDB GmbH. All rights reserved.