public class ArangoVertexCollectionImpl extends InternalArangoVertexCollection<ArangoDBImpl,ArangoDatabaseImpl,ArangoGraphImpl,ArangoExecutorSync> implements ArangoVertexCollection
executor, serde
Modifier | Constructor and Description |
---|---|
protected |
ArangoVertexCollectionImpl(ArangoGraphImpl graph,
String name) |
Modifier and Type | Method and Description |
---|---|
void |
deleteVertex(String key)
Deletes the vertex with the given
key from the collection. |
void |
deleteVertex(String key,
VertexDeleteOptions options)
Deletes the vertex with the given
key from the collection. |
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)
Retrieves the vertex document with the given
key from the collection. |
<T> T |
getVertex(String key,
Class<T> type,
GraphDocumentReadOptions options)
Retrieves the vertex document with the given
key from the collection. |
VertexEntity |
insertVertex(Object value)
Creates a new vertex in the collection
|
VertexEntity |
insertVertex(Object value,
VertexCreateOptions options)
Creates a new vertex in the collection
|
VertexUpdateEntity |
replaceVertex(String key,
Object value)
Replaces the vertex with key with the one in the body, provided there is such a vertex and no precondition is
violated
|
VertexUpdateEntity |
replaceVertex(String key,
Object 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
|
VertexUpdateEntity |
updateVertex(String key,
Object value)
Partially updates the vertex identified by document-key.
|
VertexUpdateEntity |
updateVertex(String key,
Object value,
VertexUpdateOptions options)
Partially updates the vertex identified by document-key.
|
deleteVertexRequest, dropRequest, getVertexRequest, getVertexResponseDeserializer, graph, insertVertexRequest, insertVertexResponseDeserializer, name, replaceVertexRequest, replaceVertexResponseDeserializer, updateVertexRequest, updateVertexResponseDeserializer
createPath, executor, getSerde, request
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
graph, name
getSerde
protected ArangoVertexCollectionImpl(ArangoGraphImpl graph, String name)
public void drop()
ArangoVertexCollection
drop
in interface ArangoVertexCollection
public VertexEntity insertVertex(Object value)
ArangoVertexCollection
insertVertex
in interface ArangoVertexCollection
value
- A representation of a single vertex (POJO or RawData
)public VertexEntity insertVertex(Object value, VertexCreateOptions options)
ArangoVertexCollection
insertVertex
in interface ArangoVertexCollection
value
- A representation of a single vertex (POJO or RawData
)options
- Additional options, can be nullpublic <T> T getVertex(String key, Class<T> type)
ArangoVertexCollection
key
from the collection.getVertex
in interface ArangoVertexCollection
key
- The key of the vertextype
- The type of the vertex-document (POJO or RawData
)public <T> T getVertex(String key, Class<T> type, GraphDocumentReadOptions options)
ArangoVertexCollection
key
from the collection.getVertex
in interface ArangoVertexCollection
key
- The key of the vertextype
- The type of the vertex-document (POJO or RawData
)options
- Additional options, can be nullpublic VertexUpdateEntity replaceVertex(String key, Object value)
ArangoVertexCollection
replaceVertex
in interface ArangoVertexCollection
key
- The key of the vertexvalue
- A representation of a single vertex (POJO or RawData
)public VertexUpdateEntity replaceVertex(String key, Object value, VertexReplaceOptions options)
ArangoVertexCollection
replaceVertex
in interface ArangoVertexCollection
key
- The key of the vertexvalue
- A representation of a single vertex (POJO or RawData
)options
- Additional options, can be nullpublic VertexUpdateEntity updateVertex(String key, Object value)
ArangoVertexCollection
updateVertex
in interface ArangoVertexCollection
key
- The key of the vertexvalue
- A representation of a single vertex (POJO or RawData
)public VertexUpdateEntity updateVertex(String key, Object value, VertexUpdateOptions options)
ArangoVertexCollection
updateVertex
in interface ArangoVertexCollection
key
- The key of the vertexvalue
- A representation of a single vertex (POJO or RawData
)options
- Additional options, can be nullpublic void deleteVertex(String key)
ArangoVertexCollection
key
from the collection.deleteVertex
in interface ArangoVertexCollection
key
- The key of the vertexpublic void deleteVertex(String key, VertexDeleteOptions options)
ArangoVertexCollection
key
from the collection.deleteVertex
in interface ArangoVertexCollection
key
- The key of the vertexoptions
- Additional options, can be nullCopyright © 2016–2023 ArangoDB GmbH. All rights reserved.