public class ArangoEdgeCollection extends com.arangodb.internal.InternalArangoEdgeCollection<ArangoDB,ArangoDatabase,ArangoGraph,com.arangodb.internal.ArangoExecutorSync,Response,com.arangodb.internal.velocystream.internal.ConnectionSync>
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.
|
deleteEdgeRequest, getEdgeRequest, getEdgeResponseDeserializer, graph, insertEdgeRequest, insertEdgeResponseDeserializer, name, replaceEdgeRequest, replaceEdgeResponseDeserializer, updateEdgeRequest, updateEdgeResponseDeserializer
protected 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)ArangoDBException
public <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
public <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
public <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
public <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
public <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
public <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
public <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
public void deleteEdge(String key) throws ArangoDBException
key
- The key of the edgeArangoDBException
public 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.