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,
String ifMatchRevision,
String 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,
String ifMatchRevision,
String 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,
String ifMatchRevision,
String 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,
String ifMatchRevision,
String 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,
String ifMatchRevision,
String 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,
String ifMatchRevision,
String 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,
String ifMatchRevision,
String 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,
String ifMatchRevision,
String 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, validateDocumentHandle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHttpManager, setHttpManager
protected 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
InternalGraphDriver
createGraph
in interface InternalGraphDriver
ArangoException
public GraphEntity createGraph(String databaseName, String graphName, List<EdgeDefinitionEntity> edgeDefinitions, List<String> orphanCollections, Boolean waitForSync) throws ArangoException
InternalGraphDriver
createGraph
in interface InternalGraphDriver
ArangoException
public GraphsEntity getGraphs(String databaseName) throws ArangoException
InternalGraphDriver
getGraphs
in interface InternalGraphDriver
ArangoException
public List<String> getGraphList(String databaseName) throws ArangoException
InternalGraphDriver
getGraphList
in interface InternalGraphDriver
ArangoException
public GraphEntity getGraph(String databaseName, String graphName) throws ArangoException
InternalGraphDriver
getGraph
in interface InternalGraphDriver
ArangoException
public DeletedEntity deleteGraph(String databaseName, String graphName, Boolean dropCollections) throws ArangoException
InternalGraphDriver
deleteGraph
in interface InternalGraphDriver
ArangoException
public List<String> getVertexCollections(String databaseName, String graphName, boolean excludeOrphan) throws ArangoException
InternalGraphDriver
getVertexCollections
in interface InternalGraphDriver
ArangoException
public DeletedEntity deleteVertexCollection(String databaseName, String graphName, String collectionName, Boolean dropCollection) throws ArangoException
deleteVertexCollection
in interface InternalGraphDriver
databaseName
- graphName
- collectionName
- dropCollection
- ArangoException
public GraphEntity createVertexCollection(String databaseName, String graphName, String collectionName) throws ArangoException
createVertexCollection
in interface InternalGraphDriver
ArangoException
public List<String> getEdgeCollections(String databaseName, String graphName) throws ArangoException
InternalGraphDriver
getEdgeCollections
in interface InternalGraphDriver
ArangoException
public GraphEntity createEdgeDefinition(String databaseName, String graphName, EdgeDefinitionEntity edgeDefinition) throws ArangoException
InternalGraphDriver
createEdgeDefinition
in interface InternalGraphDriver
ArangoException
public GraphEntity replaceEdgeDefinition(String databaseName, String graphName, String edgeName, EdgeDefinitionEntity edgeDefinition) throws ArangoException
InternalGraphDriver
replaceEdgeDefinition
in interface InternalGraphDriver
ArangoException
public GraphEntity deleteEdgeDefinition(String databaseName, String graphName, String edgeName, Boolean dropCollection) throws ArangoException
InternalGraphDriver
deleteEdgeDefinition
in interface InternalGraphDriver
ArangoException
public <T> VertexEntity<T> createVertex(String database, String graphName, String collectionName, T vertex, Boolean waitForSync) throws ArangoException
InternalGraphDriver
createVertex
in interface InternalGraphDriver
ArangoException
public <T> VertexEntity<T> createVertex(String database, String graphName, String collectionName, String key, T vertex, Boolean waitForSync) throws ArangoException
InternalGraphDriver
createVertex
in interface InternalGraphDriver
ArangoException
public <T> VertexEntity<T> getVertex(String databaseName, String graphName, String collectionName, String key, Class<T> clazz, String ifMatchRevision, String ifNoneMatchRevision) throws ArangoException
InternalGraphDriver
getVertex
in interface InternalGraphDriver
ArangoException
public <T> VertexEntity<T> replaceVertex(String databaseName, String graphName, String collectionName, String key, T vertex, Boolean waitForSync, String ifMatchRevision, String ifNoneMatchRevision) throws ArangoException
InternalGraphDriver
replaceVertex
in interface InternalGraphDriver
ArangoException
public <T> VertexEntity<T> updateVertex(String databaseName, String graphName, String collectionName, String key, T vertex, Boolean keepNull, Boolean waitForSync, String ifMatchRevision, String ifNoneMatchRevision) throws ArangoException
InternalGraphDriver
updateVertex
in interface InternalGraphDriver
ArangoException
public DeletedEntity deleteVertex(String databaseName, String graphName, String collectionName, String key, Boolean waitForSync, String ifMatchRevision, String ifNoneMatchRevision) throws ArangoException
InternalGraphDriver
deleteVertex
in interface InternalGraphDriver
ArangoException
public <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 InternalGraphDriver
ArangoException
public <T> EdgeEntity<T> getEdge(String database, String graphName, String edgeCollectionName, String key, Class<T> clazz, String ifMatchRevision, String ifNoneMatchRevision) throws ArangoException
InternalGraphDriver
getEdge
in interface InternalGraphDriver
ArangoException
public DeletedEntity deleteEdge(String database, String graphName, String edgeCollectionName, String key, Boolean waitForSync, String ifMatchRevision, String ifNoneMatchRevision) throws ArangoException
InternalGraphDriver
deleteEdge
in interface InternalGraphDriver
ArangoException
public <T> EdgeEntity<T> replaceEdge(String database, String graphName, String edgeCollectionName, String key, String fromHandle, String toHandle, T value, Boolean waitForSync, String ifMatchRevision, String ifNoneMatchRevision) throws ArangoException
InternalGraphDriver
replaceEdge
in interface InternalGraphDriver
ArangoException
public <T> EdgeEntity<T> updateEdge(String database, String graphName, String edgeCollectionName, String key, String fromHandle, String toHandle, T value, Boolean waitForSync, Boolean keepNull, String ifMatchRevision, String ifNoneMatchRevision) throws ArangoException
InternalGraphDriver
updateEdge
in interface InternalGraphDriver
ArangoException
public HttpManager getHttpManager()
getHttpManager
in interface BaseDriverInterface
public void setHttpManager(HttpManager httpManager)
setHttpManager
in interface BaseDriverInterface
Copyright © 2012–2016 ArangoDB GmbH. All rights reserved.