public interface ArangoEdgeCollection extends ArangoSerializationAccessor
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,
DocumentReadOptions options)
Fetches an existing edge
|
ArangoGraph |
graph()
The the handler of the named graph the edge collection is within
|
<T> EdgeEntity |
insertEdge(T value)
Creates a new edge in the collection
|
<T> EdgeEntity |
insertEdge(T value,
EdgeCreateOptions options)
Creates a new edge in the collection
|
String |
name()
The name of the edge collection
|
<T> EdgeUpdateEntity |
replaceEdge(String key,
T value)
Replaces the edge with key with the one in the body, provided there is such a edge and no precondition is
violated
|
<T> EdgeUpdateEntity |
replaceEdge(String key,
T 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
|
<T> EdgeUpdateEntity |
updateEdge(String key,
T value)
Partially updates the edge identified by document-key.
|
<T> EdgeUpdateEntity |
updateEdge(String key,
T value,
EdgeUpdateOptions options)
Partially updates the edge identified by document-key.
|
util, util
ArangoGraph graph()
String name()
<T> EdgeEntity insertEdge(T value) throws ArangoDBException
value
- A representation of a single edge (POJO, VPackSlice or String for Json)ArangoDBException
<T> EdgeEntity insertEdge(T value, EdgeCreateOptions options) throws ArangoDBException
value
- A representation of a single edge (POJO, VPackSlice or String for Json)options
- Additional options, can be nullArangoDBException
<T> T getEdge(String key, Class<T> type) throws ArangoDBException
key
- The key of the edgetype
- The type of the edge-document (POJO class, VPackSlice or String for Json)ArangoDBException
<T> T getEdge(String key, Class<T> type, DocumentReadOptions options) throws ArangoDBException
key
- The key of the edgetype
- The type of the edge-document (POJO class, VPackSlice or String for Json)options
- Additional options, can be nullArangoDBException
<T> EdgeUpdateEntity replaceEdge(String key, T value) throws ArangoDBException
key
- The key of the edgetype
- The type of the edge-document (POJO class, VPackSlice or String for Json)ArangoDBException
<T> EdgeUpdateEntity replaceEdge(String key, T value, EdgeReplaceOptions options) throws ArangoDBException
key
- The key of the edgetype
- The type of the edge-document (POJO class, VPackSlice or String for Json)options
- Additional options, can be nullArangoDBException
<T> EdgeUpdateEntity updateEdge(String key, T value) throws ArangoDBException
key
- The key of the edgetype
- The type of the edge-document (POJO class, VPackSlice or String for Json)ArangoDBException
<T> EdgeUpdateEntity updateEdge(String key, T value, EdgeUpdateOptions options) throws ArangoDBException
key
- The key of the edgetype
- The type of the edge-document (POJO class, VPackSlice or String for Json)options
- Additional options, can be nullArangoDBException
void deleteEdge(String key) throws ArangoDBException
key
- The key of the edgeArangoDBException
void deleteEdge(String key, EdgeDeleteOptions options) throws ArangoDBException
key
- The key of the edgeoptions
- Additional options, can be nullArangoDBException
Copyright © 2016–2018 ArangoDB GmbH. All rights reserved.