Package com.arangodb
Interface ArangoVertexCollection
-
- All Superinterfaces:
ArangoSerdeAccessor
@ThreadSafe public interface ArangoVertexCollection extends ArangoSerdeAccessor
Interface for operations on ArangoDB vertex collection level.- Author:
- Mark Vollmary
- See Also:
- API Documentation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
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.useremove()
insteadvoid
drop(VertexCollectionDropOptions options)
Deprecated.useremove(VertexCollectionRemoveOptions)
instead<T> T
getVertex(String key, Class<T> type)
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.ArangoGraph
graph()
The the handler of the named graph the edge collection is withinVertexEntity
insertVertex(Object value)
Creates a new vertex in the collectionVertexEntity
insertVertex(Object value, VertexCreateOptions options)
Creates a new vertex in the collectionString
name()
The name of the edge collectionvoid
remove()
Remove a vertex collection form the graph.void
remove(VertexCollectionRemoveOptions options)
Remove a vertex collection form the graph.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 violatedVertexUpdateEntity
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 violatedVertexUpdateEntity
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.-
Methods inherited from interface com.arangodb.ArangoSerdeAccessor
getSerde
-
-
-
-
Method Detail
-
graph
ArangoGraph graph()
The the handler of the named graph the edge collection is within- Returns:
- graph handler
-
name
String name()
The name of the edge collection- Returns:
- collection name
-
drop
@Deprecated void drop()
Deprecated.useremove()
insteadRemove a vertex collection form the graph.- See Also:
- API Documentation
-
drop
@Deprecated void drop(VertexCollectionDropOptions options)
Deprecated.useremove(VertexCollectionRemoveOptions)
insteadRemove a vertex collection form the graph.- Parameters:
options
- options- See Also:
- API Documentation
-
remove
void remove()
Remove a vertex collection form the graph.- See Also:
- API Documentation
-
remove
void remove(VertexCollectionRemoveOptions options)
Remove a vertex collection form the graph.- Parameters:
options
- options- See Also:
- API Documentation
-
insertVertex
VertexEntity insertVertex(Object value)
Creates a new vertex in the collection- Parameters:
value
- A representation of a single vertex (POJO orRawData
)- Returns:
- information about the vertex
- See Also:
- API Documentation
-
insertVertex
VertexEntity insertVertex(Object value, VertexCreateOptions options)
Creates a new vertex in the collection- Parameters:
value
- A representation of a single vertex (POJO orRawData
)options
- Additional options, can be null- Returns:
- information about the vertex
- See Also:
- API Documentation
-
getVertex
<T> T getVertex(String key, Class<T> type)
Retrieves the vertex document with the givenkey
from the collection.- Parameters:
key
- The key of the vertextype
- The type of the vertex-document (POJO orRawData
)- Returns:
- the vertex identified by the key
- See Also:
- API Documentation
-
getVertex
<T> T getVertex(String key, Class<T> type, GraphDocumentReadOptions options)
Retrieves the vertex document with the givenkey
from the collection.- 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:
- API Documentation
-
replaceVertex
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- Parameters:
key
- The key of the vertexvalue
- A representation of a single vertex (POJO orRawData
)- Returns:
- information about the vertex
- See Also:
- API Documentation
-
replaceVertex
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- 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:
- API Documentation
-
updateVertex
VertexUpdateEntity updateVertex(String key, Object value)
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.- Parameters:
key
- The key of the vertexvalue
- A representation of a single vertex (POJO orRawData
)- Returns:
- information about the vertex
- See Also:
- API Documentation
-
updateVertex
VertexUpdateEntity updateVertex(String key, Object value, VertexUpdateOptions options)
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.- 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:
- API Documentation
-
deleteVertex
void deleteVertex(String key)
Deletes the vertex with the givenkey
from the collection.- Parameters:
key
- The key of the vertex- See Also:
- API Documentation
-
deleteVertex
void deleteVertex(String key, VertexDeleteOptions options)
Deletes the vertex with the givenkey
from the collection.- Parameters:
key
- The key of the vertexoptions
- Additional options, can be null- See Also:
- API Documentation
-
-