public class ArangoEdgeCollection extends InternalArangoEdgeCollection<ArangoExecutorSync,Response,ConnectionSync>
executor| Modifier | Constructor and Description |
|---|---|
protected |
ArangoEdgeCollection(ArangoGraph 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,
DocumentReadOptions options)
Fetches an existing edge
|
<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
|
<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.
|
createDocumentHandle, deleteEdgeRequest, getEdgeRequest, getEdgeResponseDeserializer, insertEdgeRequest, insertEdgeResponseDeserializer, name, replaceEdgeRequest, replaceEdgeResponseDeserializer, updateEdgeRequest, updateEdgeResponseDeserializerutilprotected ArangoEdgeCollection(ArangoGraph graph, String name)
public <T> EdgeEntity insertEdge(T value) throws ArangoDBException
value - A representation of a single edge (POJO, VPackSlice or String for Json)ArangoDBExceptionpublic <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 nullArangoDBExceptionpublic <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)ArangoDBExceptionpublic <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 nullArangoDBExceptionpublic <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)ArangoDBExceptionpublic <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 nullArangoDBExceptionpublic <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)ArangoDBExceptionpublic <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 nullArangoDBExceptionpublic void deleteEdge(String key) throws ArangoDBException
key - The key of the edgeArangoDBExceptionpublic void deleteEdge(String key, EdgeDeleteOptions options) throws ArangoDBException
key - The key of the edgeoptions - Additional options, can be nullArangoDBExceptionCopyright © 2016–2017 ArangoDB GmbH. All rights reserved.