public class ArangoVertexCollection extends InternalArangoVertexCollection<ArangoExecutorSync,Response,ConnectionSync>
executor
Modifier | Constructor and Description |
---|---|
protected |
ArangoVertexCollection(ArangoGraph graph,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
deleteVertex(String key)
Removes a vertex
|
void |
deleteVertex(String key,
VertexDeleteOptions options)
Removes a vertex
|
void |
drop()
Removes a vertex collection from the graph and optionally deletes the collection, if it is not used in any other
graph
|
<T> T |
getVertex(String key,
Class<T> type)
Fetches an existing vertex
|
<T> T |
getVertex(String key,
Class<T> type,
DocumentReadOptions options)
Fetches an existing vertex
|
<T> VertexEntity |
insertVertex(T value)
Creates a new vertex in the collection
|
<T> VertexEntity |
insertVertex(T value,
VertexCreateOptions options)
Creates a new vertex in the collection
|
<T> VertexUpdateEntity |
replaceVertex(String key,
T value)
Replaces the vertex with key with the one in the body, provided there is such a vertex and no precondition is
violated
|
<T> VertexUpdateEntity |
replaceVertex(String key,
T value,
VertexReplaceOptions options)
Replaces the vertex with key with the one in the body, provided there is such a vertex and no precondition is
violated
|
<T> VertexUpdateEntity |
updateVertex(String key,
T value)
Partially updates the vertex identified by document-key.
|
<T> VertexUpdateEntity |
updateVertex(String key,
T value,
VertexUpdateOptions options)
Partially updates the vertex identified by document-key.
|
deleteVertexRequest, dropRequest, getVertexRequest, getVertexResponseDeserializer, insertVertexRequest, insertVertexResponseDeserializer, name, replaceVertexRequest, replaceVertexResponseDeserializer, updateVertexRequest, updateVertexResponseDeserializer
util
protected ArangoVertexCollection(ArangoGraph graph, String name)
public void drop() throws ArangoDBException
ArangoDBException
public <T> VertexEntity insertVertex(T value) throws ArangoDBException
value
- A representation of a single vertex (POJO, VPackSlice or String for Json)ArangoDBException
public <T> VertexEntity insertVertex(T value, VertexCreateOptions options) throws ArangoDBException
value
- A representation of a single vertex (POJO, VPackSlice or String for Json)options
- Additional options, can be nullArangoDBException
public <T> T getVertex(String key, Class<T> type) throws ArangoDBException
key
- The key of the vertextype
- The type of the vertex-document (POJO class, VPackSlice or String for Json)ArangoDBException
public <T> T getVertex(String key, Class<T> type, DocumentReadOptions options) throws ArangoDBException
key
- The key of the vertextype
- The type of the vertex-document (POJO class, VPackSlice or String for Json)options
- Additional options, can be nullArangoDBException
public <T> VertexUpdateEntity replaceVertex(String key, T value) throws ArangoDBException
key
- The key of the vertextype
- The type of the vertex-document (POJO class, VPackSlice or String for Json)ArangoDBException
public <T> VertexUpdateEntity replaceVertex(String key, T value, VertexReplaceOptions options) throws ArangoDBException
key
- The key of the vertextype
- The type of the vertex-document (POJO class, VPackSlice or String for Json)options
- Additional options, can be nullArangoDBException
public <T> VertexUpdateEntity updateVertex(String key, T value) throws ArangoDBException
key
- The key of the vertextype
- The type of the vertex-document (POJO class, VPackSlice or String for Json)ArangoDBException
public <T> VertexUpdateEntity updateVertex(String key, T value, VertexUpdateOptions options) throws ArangoDBException
key
- The key of the vertextype
- The type of the vertex-document (POJO class, VPackSlice or String for Json)options
- Additional options, can be nullArangoDBException
public void deleteVertex(String key) throws ArangoDBException
key
- The key of the vertexArangoDBException
public void deleteVertex(String key, VertexDeleteOptions options) throws ArangoDBException
key
- The key of the vertexoptions
- Additional options, can be nullArangoDBException
Copyright © 2016–2017 ArangoDB GmbH. All rights reserved.