Package com.arangodb.internal
Class ArangoVertexCollectionImpl
java.lang.Object
com.arangodb.internal.ArangoExecuteable
com.arangodb.internal.InternalArangoVertexCollection
com.arangodb.internal.ArangoVertexCollectionImpl
- All Implemented Interfaces:
ArangoSerdeAccessor
,ArangoVertexCollection
public class ArangoVertexCollectionImpl
extends InternalArangoVertexCollection
implements ArangoVertexCollection
- Author:
- Mark Vollmary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ArangoVertexCollectionImpl
(ArangoGraphImpl graph, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteVertex
(String key) Deletes the vertex with the givenkey
from the collection.void
deleteVertex
(String key, VertexDeleteOptions options) Deletes the vertex with the givenkey
from the collection.void
drop()
Deprecated.void
drop
(VertexCollectionDropOptions options) Deprecated.<T> T
Retrieves the vertex document with the givenkey
from the collection.<T> T
getVertex
(String key, Class<T> type, GraphDocumentReadOptions options) Retrieves the vertex document with the givenkey
from the collection.graph()
The handler of the named graph the edge collection is withininsertVertex
(Object value) Creates a new vertex in the collectioninsertVertex
(Object value, VertexCreateOptions options) Creates a new vertex in the collectionvoid
remove()
Remove a vertex collection form the graph.void
remove
(VertexCollectionRemoveOptions options) Remove a vertex collection form the graph.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 violatedreplaceVertex
(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 violatedupdateVertex
(String key, Object value) Partially updates the vertex identified by document-key.updateVertex
(String key, Object value, VertexUpdateOptions options) Partially updates the vertex identified by document-key.Methods inherited from class com.arangodb.internal.InternalArangoVertexCollection
deleteVertexRequest, dropRequest, getVertexRequest, getVertexResponseDeserializer, insertVertexRequest, insertVertexResponseDeserializer, name, removeVertexCollectionRequest, replaceVertexRequest, replaceVertexResponseDeserializer, updateVertexRequest, updateVertexResponseDeserializer
Methods inherited from class com.arangodb.internal.ArangoExecuteable
createPath, executorAsync, executorSync, getSerde, request
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.arangodb.ArangoSerdeAccessor
getSerde
Methods inherited from interface com.arangodb.ArangoVertexCollection
name
-
Constructor Details
-
ArangoVertexCollectionImpl
-
-
Method Details
-
graph
Description copied from interface:ArangoVertexCollection
The handler of the named graph the edge collection is within- Specified by:
graph
in interfaceArangoVertexCollection
- Returns:
- graph handler
-
drop
Deprecated.Description copied from interface:ArangoVertexCollection
Remove a vertex collection form the graph.- Specified by:
drop
in interfaceArangoVertexCollection
- See Also:
-
drop
Deprecated.Description copied from interface:ArangoVertexCollection
Remove a vertex collection form the graph.- Specified by:
drop
in interfaceArangoVertexCollection
- Parameters:
options
- options- See Also:
-
remove
public void remove()Description copied from interface:ArangoVertexCollection
Remove a vertex collection form the graph.- Specified by:
remove
in interfaceArangoVertexCollection
- See Also:
-
remove
Description copied from interface:ArangoVertexCollection
Remove a vertex collection form the graph.- Specified by:
remove
in interfaceArangoVertexCollection
- Parameters:
options
- options- See Also:
-
insertVertex
Description copied from interface:ArangoVertexCollection
Creates a new vertex in the collection- Specified by:
insertVertex
in interfaceArangoVertexCollection
- Parameters:
value
- A representation of a single vertex (POJO orRawData
)- Returns:
- information about the vertex
- See Also:
-
insertVertex
Description copied from interface:ArangoVertexCollection
Creates a new vertex in the collection- Specified by:
insertVertex
in interfaceArangoVertexCollection
- Parameters:
value
- A representation of a single vertex (POJO orRawData
)options
- Additional options, can be null- Returns:
- information about the vertex
- See Also:
-
getVertex
Description copied from interface:ArangoVertexCollection
Retrieves the vertex document with the givenkey
from the collection.- Specified by:
getVertex
in interfaceArangoVertexCollection
- Parameters:
key
- The key of the vertextype
- The type of the vertex-document (POJO orRawData
)- Returns:
- the vertex identified by the key
- See Also:
-
getVertex
Description copied from interface:ArangoVertexCollection
Retrieves the vertex document with the givenkey
from the collection.- Specified by:
getVertex
in interfaceArangoVertexCollection
- Parameters:
key
- The key of the vertextype
- The type of the vertex-document (POJO orRawData
)options
- Additional options, can be null- Returns:
- the vertex identified by the key
- See Also:
-
replaceVertex
Description copied from interface:ArangoVertexCollection
Replaces the vertex with key with the one in the body, provided there is such a vertex and no precondition is violated- Specified by:
replaceVertex
in interfaceArangoVertexCollection
- Parameters:
key
- The key of the vertexvalue
- A representation of a single vertex (POJO orRawData
)- Returns:
- information about the vertex
- See Also:
-
replaceVertex
Description copied from interface:ArangoVertexCollection
Replaces the vertex with key with the one in the body, provided there is such a vertex and no precondition is violated- Specified by:
replaceVertex
in interfaceArangoVertexCollection
- Parameters:
key
- The key of the vertexvalue
- A representation of a single vertex (POJO orRawData
)options
- Additional options, can be null- Returns:
- information about the vertex
- See Also:
-
updateVertex
Description copied from interface:ArangoVertexCollection
Partially updates the vertex identified by document-key. The value must contain a document with the attributes to patch (the patch document). All attributes from the patch document will be added to the existing document if they do not yet exist, and overwritten in the existing document if they do exist there.- Specified by:
updateVertex
in interfaceArangoVertexCollection
- Parameters:
key
- The key of the vertexvalue
- A representation of a single vertex (POJO orRawData
)- Returns:
- information about the vertex
- See Also:
-
updateVertex
Description copied from interface:ArangoVertexCollection
Partially updates the vertex identified by document-key. The value must contain a document with the attributes to patch (the patch document). All attributes from the patch document will be added to the existing document if they do not yet exist, and overwritten in the existing document if they do exist there.- Specified by:
updateVertex
in interfaceArangoVertexCollection
- Parameters:
key
- The key of the vertexvalue
- A representation of a single vertex (POJO orRawData
)options
- Additional options, can be null- Returns:
- information about the vertex
- See Also:
-
deleteVertex
Description copied from interface:ArangoVertexCollection
Deletes the vertex with the givenkey
from the collection.- Specified by:
deleteVertex
in interfaceArangoVertexCollection
- Parameters:
key
- The key of the vertex- See Also:
-
deleteVertex
Description copied from interface:ArangoVertexCollection
Deletes the vertex with the givenkey
from the collection.- Specified by:
deleteVertex
in interfaceArangoVertexCollection
- Parameters:
key
- The key of the vertexoptions
- Additional options, can be null- See Also:
-