Package com.arangodb.internal
Class ArangoEdgeCollectionImpl
java.lang.Object
com.arangodb.internal.ArangoExecuteable
com.arangodb.internal.InternalArangoEdgeCollection
com.arangodb.internal.ArangoEdgeCollectionImpl
- All Implemented Interfaces:
ArangoEdgeCollection
,ArangoSerdeAccessor
public class ArangoEdgeCollectionImpl
extends InternalArangoEdgeCollection
implements ArangoEdgeCollection
- Author:
- Mark Vollmary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ArangoEdgeCollectionImpl
(ArangoGraphImpl graph, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteEdge
(String key) Removes a edgevoid
deleteEdge
(String key, EdgeDeleteOptions options) Removes a edgevoid
drop()
Deprecated.void
drop
(EdgeCollectionDropOptions options) Deprecated.<T> T
Fetches an existing edge<T> T
getEdge
(String key, Class<T> type, GraphDocumentReadOptions options) Fetches an existing edgegraph()
The the handler of the named graph the edge collection is withininsertEdge
(Object value) Creates a new edge in the collectioninsertEdge
(Object value, EdgeCreateOptions options) Creates a new edge in the collectionvoid
remove()
Remove one edge definition from the graph.void
remove
(EdgeCollectionRemoveOptions options) Remove one edge definition from the graph.replaceEdge
(String key, Object value) Replaces the edge with key with the one in the body, provided there is such a edge and no precondition is violatedreplaceEdge
(String key, Object value, EdgeReplaceOptions options) Replaces the edge with key with the one in the body, provided there is such a edge and no precondition is violatedupdateEdge
(String key, Object value) Partially updates the edge identified by document-key.updateEdge
(String key, Object value, EdgeUpdateOptions options) Partially updates the edge identified by document-key.Methods inherited from class com.arangodb.internal.InternalArangoEdgeCollection
deleteEdgeRequest, getEdgeRequest, getEdgeResponseDeserializer, insertEdgeRequest, insertEdgeResponseDeserializer, name, removeEdgeDefinitionRequest, removeEdgeDefinitionRequest, replaceEdgeRequest, replaceEdgeResponseDeserializer, updateEdgeRequest, updateEdgeResponseDeserializer
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.ArangoEdgeCollection
name
Methods inherited from interface com.arangodb.ArangoSerdeAccessor
getSerde
-
Constructor Details
-
ArangoEdgeCollectionImpl
-
-
Method Details
-
graph
Description copied from interface:ArangoEdgeCollection
The the handler of the named graph the edge collection is within- Specified by:
graph
in interfaceArangoEdgeCollection
- Returns:
- graph handler
-
drop
Deprecated.Description copied from interface:ArangoEdgeCollection
Remove one edge definition from the graph.- Specified by:
drop
in interfaceArangoEdgeCollection
- See Also:
-
drop
Deprecated.Description copied from interface:ArangoEdgeCollection
Remove one edge definition from the graph.- Specified by:
drop
in interfaceArangoEdgeCollection
- Parameters:
options
- options- See Also:
-
remove
public void remove()Description copied from interface:ArangoEdgeCollection
Remove one edge definition from the graph.- Specified by:
remove
in interfaceArangoEdgeCollection
- See Also:
-
remove
Description copied from interface:ArangoEdgeCollection
Remove one edge definition from the graph.- Specified by:
remove
in interfaceArangoEdgeCollection
- Parameters:
options
- options- See Also:
-
insertEdge
Description copied from interface:ArangoEdgeCollection
Creates a new edge in the collection- Specified by:
insertEdge
in interfaceArangoEdgeCollection
- Parameters:
value
- A representation of a single edge (POJO orRawData
)- Returns:
- information about the edge
- See Also:
-
insertEdge
Description copied from interface:ArangoEdgeCollection
Creates a new edge in the collection- Specified by:
insertEdge
in interfaceArangoEdgeCollection
- Parameters:
value
- A representation of a single edge (POJO orRawData
)options
- Additional options, can be null- Returns:
- information about the edge
- See Also:
-
getEdge
Description copied from interface:ArangoEdgeCollection
Fetches an existing edge- Specified by:
getEdge
in interfaceArangoEdgeCollection
- Parameters:
key
- The key of the edgetype
- The type of the edge-document (POJO orRawData
)- Returns:
- the edge identified by the key
- See Also:
-
getEdge
Description copied from interface:ArangoEdgeCollection
Fetches an existing edge- Specified by:
getEdge
in interfaceArangoEdgeCollection
- Parameters:
key
- The key of the edgetype
- The type of the edge-document (POJO orRawData
)options
- Additional options, can be null- Returns:
- the edge identified by the key
- See Also:
-
replaceEdge
Description copied from interface:ArangoEdgeCollection
Replaces the edge with key with the one in the body, provided there is such a edge and no precondition is violated- Specified by:
replaceEdge
in interfaceArangoEdgeCollection
- Parameters:
key
- The key of the edgevalue
- A representation of a single edge (POJO orRawData
)- Returns:
- information about the edge
- See Also:
-
replaceEdge
Description copied from interface:ArangoEdgeCollection
Replaces the edge with key with the one in the body, provided there is such a edge and no precondition is violated- Specified by:
replaceEdge
in interfaceArangoEdgeCollection
- Parameters:
key
- The key of the edgevalue
- A representation of a single edge (POJO orRawData
)options
- Additional options, can be null- Returns:
- information about the edge
- See Also:
-
updateEdge
Description copied from interface:ArangoEdgeCollection
Partially updates the edge 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:
updateEdge
in interfaceArangoEdgeCollection
- Parameters:
key
- The key of the edgevalue
- A representation of a single edge (POJO orRawData
)- Returns:
- information about the edge
- See Also:
-
updateEdge
Description copied from interface:ArangoEdgeCollection
Partially updates the edge 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:
updateEdge
in interfaceArangoEdgeCollection
- Parameters:
key
- The key of the edgevalue
- A representation of a single edge (POJO orRawData
)options
- Additional options, can be null- Returns:
- information about the edge
- See Also:
-
deleteEdge
Description copied from interface:ArangoEdgeCollection
Removes a edge- Specified by:
deleteEdge
in interfaceArangoEdgeCollection
- Parameters:
key
- The key of the edge- See Also:
-
deleteEdge
Description copied from interface:ArangoEdgeCollection
Removes a edge- Specified by:
deleteEdge
in interfaceArangoEdgeCollection
- Parameters:
key
- The key of the edgeoptions
- Additional options, can be null- See Also:
-