public class InternalGraphDriverImpl extends BaseArangoDriver implements InternalGraphDriver
| Modifier and Type | Field and Description |
|---|---|
protected AnnotationHandler |
annotationHandler |
protected static String |
COLLECTION |
protected ArangoConfigure |
configure |
protected InternalCursorDriver |
cursorDriver |
protected HttpManager |
httpManager |
| Modifier and Type | Method and Description |
|---|---|
<T> EdgeEntity<T> |
createEdge(String database,
String graphName,
String edgeCollectionName,
String key,
String fromHandle,
String toHandle,
T value,
Boolean waitForSync) |
GraphEntity |
createEdgeDefinition(String databaseName,
String graphName,
EdgeDefinitionEntity edgeDefinition)
Adds a new edge definition to an existing graph.
|
GraphEntity |
createGraph(String databaseName,
String graphName,
Boolean waitForSync)
Creates an empty graph.
|
GraphEntity |
createGraph(String databaseName,
String graphName,
List<EdgeDefinitionEntity> edgeDefinitions,
List<String> orphanCollections,
Boolean waitForSync)
Creates a graph.
|
<T> VertexEntity<T> |
createVertex(String database,
String graphName,
String collectionName,
String key,
T vertex,
Boolean waitForSync)
Stores a new vertex with the information contained within the document
into the given collection.
|
<T> VertexEntity<T> |
createVertex(String database,
String graphName,
String collectionName,
T vertex,
Boolean waitForSync)
Stores a new vertex with the information contained within the document
into the given collection.
|
GraphEntity |
createVertexCollection(String databaseName,
String graphName,
String collectionName) |
DeletedEntity |
deleteEdge(String database,
String graphName,
String edgeCollectionName,
String key,
Boolean waitForSync,
Long ifMatchRevision,
Long ifNoneMatchRevision)
Deletes an edge with the given id, if it is contained within the graph.
|
GraphEntity |
deleteEdgeDefinition(String databaseName,
String graphName,
String edgeName,
Boolean dropCollection)
Removes an existing edge definition from this graph.
|
DeletedEntity |
deleteGraph(String databaseName,
String graphName,
Boolean dropCollections)
Delete a graph by its name.
|
DeletedEntity |
deleteVertex(String databaseName,
String graphName,
String collectionName,
String key,
Boolean waitForSync,
Long ifMatchRevision,
Long ifNoneMatchRevision)
Deletes a vertex with the given key, if it is contained within the graph.
|
DeletedEntity |
deleteVertexCollection(String databaseName,
String graphName,
String collectionName,
Boolean dropCollection)
Removes a vertex collection from the graph and optionally deletes the
collection, if it is not used in any other graph.
|
<T> EdgeEntity<T> |
getEdge(String database,
String graphName,
String edgeCollectionName,
String key,
Class<T> clazz,
Long ifMatchRevision,
Long ifNoneMatchRevision)
Loads an edge with the given key if it is contained within your graph.
|
List<String> |
getEdgeCollections(String databaseName,
String graphName)
Returns a list of names of all edge collections of a graph that are
defined in the graphs edgeDefinitions
|
GraphEntity |
getGraph(String databaseName,
String graphName)
Get graph object by name, including its edge definitions and vertex
collections.
|
List<String> |
getGraphList(String databaseName)
Creates a list of the names of all available graphs.
|
GraphsEntity |
getGraphs(String databaseName)
Returns a GraphsEntity containing all graph as GraphEntity object.
|
HttpManager |
getHttpManager() |
<T> VertexEntity<T> |
getVertex(String databaseName,
String graphName,
String collectionName,
String key,
Class<T> clazz,
Long ifMatchRevision,
Long ifNoneMatchRevision)
Gets a vertex with the given key if it is contained within your graph.
|
List<String> |
getVertexCollections(String databaseName,
String graphName,
boolean excludeOrphan)
Returns a list of names of all vertex collections of a graph, defined in
the graphs edgeDefinitions (in "from", "to", and "orphanCollections")
|
<T> EdgeEntity<T> |
replaceEdge(String database,
String graphName,
String edgeCollectionName,
String key,
String fromHandle,
String toHandle,
T value,
Boolean waitForSync,
Long ifMatchRevision,
Long ifNoneMatchRevision)
Replaces an edge with the given key by the content in the body.
|
GraphEntity |
replaceEdgeDefinition(String databaseName,
String graphName,
String edgeName,
EdgeDefinitionEntity edgeDefinition)
Replaces an existing edge definition to an existing graph.
|
<T> VertexEntity<T> |
replaceVertex(String databaseName,
String graphName,
String collectionName,
String key,
T vertex,
Boolean waitForSync,
Long ifMatchRevision,
Long ifNoneMatchRevision)
Replaces a vertex with the given key by the content in the body.
|
void |
setHttpManager(HttpManager httpManager) |
<T> EdgeEntity<T> |
updateEdge(String database,
String graphName,
String edgeCollectionName,
String key,
String fromHandle,
String toHandle,
T value,
Boolean waitForSync,
Boolean keepNull,
Long ifMatchRevision,
Long ifNoneMatchRevision)
Updates an edge with the given key by adding the content in the body.
|
<T> VertexEntity<T> |
updateVertex(String databaseName,
String graphName,
String collectionName,
String key,
T vertex,
Boolean keepNull,
Boolean waitForSync,
Long ifMatchRevision,
Long ifNoneMatchRevision)
Updates a vertex with the given key by adding the content in the body.
|
createDocumentEndpointUrl, createDocumentHandle, createDocumentHandle, createEndpointUrl, createEndpointUrl, createEntity, createEntity, createEntity, createEntity, createEntityImpl, createGharialEndpointUrl, createIndexEndpointUrl, createJobEndpointUrl, createUserEndpointUrl, getJSONResponseText, setKeyValueHeader, setStatusCode, toReplicationDumpHeader, validate, validateCollectionName, validateDatabaseName, validateDocumentHandleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHttpManager, setHttpManagerprotected InternalCursorDriver cursorDriver
protected static final String COLLECTION
protected ArangoConfigure configure
protected HttpManager httpManager
protected AnnotationHandler annotationHandler
public GraphEntity createGraph(String databaseName, String graphName, Boolean waitForSync) throws ArangoException
InternalGraphDrivercreateGraph in interface InternalGraphDriverArangoExceptionpublic GraphEntity createGraph(String databaseName, String graphName, List<EdgeDefinitionEntity> edgeDefinitions, List<String> orphanCollections, Boolean waitForSync) throws ArangoException
InternalGraphDrivercreateGraph in interface InternalGraphDriverArangoExceptionpublic GraphsEntity getGraphs(String databaseName) throws ArangoException
InternalGraphDrivergetGraphs in interface InternalGraphDriverArangoExceptionpublic List<String> getGraphList(String databaseName) throws ArangoException
InternalGraphDrivergetGraphList in interface InternalGraphDriverArangoExceptionpublic GraphEntity getGraph(String databaseName, String graphName) throws ArangoException
InternalGraphDrivergetGraph in interface InternalGraphDriverArangoExceptionpublic DeletedEntity deleteGraph(String databaseName, String graphName, Boolean dropCollections) throws ArangoException
InternalGraphDriverdeleteGraph in interface InternalGraphDriverArangoExceptionpublic List<String> getVertexCollections(String databaseName, String graphName, boolean excludeOrphan) throws ArangoException
InternalGraphDrivergetVertexCollections in interface InternalGraphDriverArangoExceptionpublic DeletedEntity deleteVertexCollection(String databaseName, String graphName, String collectionName, Boolean dropCollection) throws ArangoException
deleteVertexCollection in interface InternalGraphDriverdatabaseName - graphName - collectionName - dropCollection - ArangoExceptionpublic GraphEntity createVertexCollection(String databaseName, String graphName, String collectionName) throws ArangoException
createVertexCollection in interface InternalGraphDriverArangoExceptionpublic List<String> getEdgeCollections(String databaseName, String graphName) throws ArangoException
InternalGraphDrivergetEdgeCollections in interface InternalGraphDriverArangoExceptionpublic GraphEntity createEdgeDefinition(String databaseName, String graphName, EdgeDefinitionEntity edgeDefinition) throws ArangoException
InternalGraphDrivercreateEdgeDefinition in interface InternalGraphDriverArangoExceptionpublic GraphEntity replaceEdgeDefinition(String databaseName, String graphName, String edgeName, EdgeDefinitionEntity edgeDefinition) throws ArangoException
InternalGraphDriverreplaceEdgeDefinition in interface InternalGraphDriverArangoExceptionpublic GraphEntity deleteEdgeDefinition(String databaseName, String graphName, String edgeName, Boolean dropCollection) throws ArangoException
InternalGraphDriverdeleteEdgeDefinition in interface InternalGraphDriverArangoExceptionpublic <T> VertexEntity<T> createVertex(String database, String graphName, String collectionName, T vertex, Boolean waitForSync) throws ArangoException
InternalGraphDrivercreateVertex in interface InternalGraphDriverArangoExceptionpublic <T> VertexEntity<T> createVertex(String database, String graphName, String collectionName, String key, T vertex, Boolean waitForSync) throws ArangoException
InternalGraphDrivercreateVertex in interface InternalGraphDriverArangoExceptionpublic <T> VertexEntity<T> getVertex(String databaseName, String graphName, String collectionName, String key, Class<T> clazz, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
InternalGraphDrivergetVertex in interface InternalGraphDriverArangoExceptionpublic <T> VertexEntity<T> replaceVertex(String databaseName, String graphName, String collectionName, String key, T vertex, Boolean waitForSync, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
InternalGraphDriverreplaceVertex in interface InternalGraphDriverArangoExceptionpublic <T> VertexEntity<T> updateVertex(String databaseName, String graphName, String collectionName, String key, T vertex, Boolean keepNull, Boolean waitForSync, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
InternalGraphDriverupdateVertex in interface InternalGraphDriverArangoExceptionpublic DeletedEntity deleteVertex(String databaseName, String graphName, String collectionName, String key, Boolean waitForSync, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
InternalGraphDriverdeleteVertex in interface InternalGraphDriverArangoExceptionpublic <T> EdgeEntity<T> createEdge(String database, String graphName, String edgeCollectionName, String key, String fromHandle, String toHandle, T value, Boolean waitForSync) throws ArangoException
createEdge in interface InternalGraphDriverArangoExceptionpublic <T> EdgeEntity<T> getEdge(String database, String graphName, String edgeCollectionName, String key, Class<T> clazz, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
InternalGraphDrivergetEdge in interface InternalGraphDriverArangoExceptionpublic DeletedEntity deleteEdge(String database, String graphName, String edgeCollectionName, String key, Boolean waitForSync, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
InternalGraphDriverdeleteEdge in interface InternalGraphDriverArangoExceptionpublic <T> EdgeEntity<T> replaceEdge(String database, String graphName, String edgeCollectionName, String key, String fromHandle, String toHandle, T value, Boolean waitForSync, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
InternalGraphDriverreplaceEdge in interface InternalGraphDriverArangoExceptionpublic <T> EdgeEntity<T> updateEdge(String database, String graphName, String edgeCollectionName, String key, String fromHandle, String toHandle, T value, Boolean waitForSync, Boolean keepNull, Long ifMatchRevision, Long ifNoneMatchRevision) throws ArangoException
InternalGraphDriverupdateEdge in interface InternalGraphDriverArangoExceptionpublic HttpManager getHttpManager()
getHttpManager in interface BaseDriverInterfacepublic void setHttpManager(HttpManager httpManager)
setHttpManager in interface BaseDriverInterfaceCopyright © 2012–2016 ArangoDB GmbH. All rights reserved.