public class ArangoDriver extends BaseArangoDriver
Constructor and Description |
---|
ArangoDriver(ArangoConfigure configure)
Constructor
|
ArangoDriver(ArangoConfigure configure,
String database)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
cancelBatchMode() |
long |
checkDocument(long collectionId,
long documentId) |
long |
checkDocument(long collectionId,
String documentKey) |
long |
checkDocument(String documentHandle) |
long |
checkDocument(String collectionName,
long documentId) |
long |
checkDocument(String collectionName,
String documentKey) |
<T> CursorEntity<T> |
continueQuery(long cursorId,
Class<?>... clazz) |
DefaultEntity |
createAqlFunction(String name,
String code) |
IndexEntity |
createCappedIndex(long collectionId,
int size) |
IndexEntity |
createCappedIndex(String collectionName,
int size) |
CollectionEntity |
createCollection(String name) |
CollectionEntity |
createCollection(String name,
CollectionOptions collectionOptions) |
BooleanResultEntity |
createDatabase(String database,
UserEntity... users) |
DocumentEntity<?> |
createDocument(long collectionId,
Object value) |
DocumentEntity<?> |
createDocument(long collectionId,
Object value,
Boolean createCollection,
Boolean waitForSync) |
DocumentEntity<?> |
createDocument(long collectionId,
String documentKey,
Object value) |
DocumentEntity<?> |
createDocument(long collectionId,
String documentKey,
Object value,
Boolean createCollection,
Boolean waitForSync) |
<T> DocumentEntity<T> |
createDocument(String collectionName,
Object value) |
<T> DocumentEntity<T> |
createDocument(String collectionName,
Object value,
Boolean createCollection,
Boolean waitForSync) |
<T> DocumentEntity<T> |
createDocument(String collectionName,
String documentKey,
Object value) |
<T> DocumentEntity<T> |
createDocument(String collectionName,
String documentKey,
Object value,
Boolean createCollection,
Boolean waitForSync) |
BooleanResultEntity |
createEndpoint(String endpoint,
String... databases) |
IndexEntity |
createFulltextIndex(long collectionId,
Integer minLength,
String... fields) |
IndexEntity |
createFulltextIndex(long collectionId,
String... fields) |
IndexEntity |
createFulltextIndex(String collectionName,
Integer minLength,
String... fields) |
IndexEntity |
createFulltextIndex(String collectionName,
String... fields) |
IndexEntity |
createGeoIndex(String collectionName,
boolean unique,
String... fields) |
GraphEntity |
createGraph(String graphName,
Boolean waitForSync)
Creates an empty graph.
|
GraphEntity |
createGraph(String graphName,
List<EdgeDefinitionEntity> edgeDefinitions,
List<String> orphanCollections,
Boolean waitForSync)
Creates a graph.
|
IndexEntity |
createHashIndex(String collectionName,
boolean unique,
String... fields) |
IndexEntity |
createIndex(long collectionId,
IndexType type,
boolean unique,
String... fields) |
IndexEntity |
createIndex(String collectionName,
IndexType type,
boolean unique,
String... fields) |
IndexEntity |
createSkipListIndex(String collectionName,
boolean unique,
String... fields) |
TransactionEntity |
createTransaction(String action) |
DefaultEntity |
createUser(String username,
String passwd,
Boolean active,
Map<String,Object> extra) |
void |
deleteAllJobs() |
DefaultEntity |
deleteAqlFunction(String name,
boolean isNameSpace) |
CollectionEntity |
deleteCollection(long id) |
CollectionEntity |
deleteCollection(String name) |
BooleanResultEntity |
deleteDatabase(String database) |
DocumentEntity<?> |
deleteDocument(long collectionId,
long documentId) |
DocumentEntity<?> |
deleteDocument(long collectionId,
long documentId,
Long rev,
Policy policy) |
DocumentEntity<?> |
deleteDocument(long collectionId,
String documentKey) |
DocumentEntity<?> |
deleteDocument(long collectionId,
String documentKey,
Long rev,
Policy policy) |
DocumentEntity<?> |
deleteDocument(String documentHandle) |
DocumentEntity<?> |
deleteDocument(String collectionName,
long documentId) |
DocumentEntity<?> |
deleteDocument(String collectionName,
long documentId,
Long rev,
Policy policy) |
DocumentEntity<?> |
deleteDocument(String documentHandle,
Long rev,
Policy policy) |
DocumentEntity<?> |
deleteDocument(String collectionName,
String documentKey) |
DocumentEntity<?> |
deleteDocument(String collectionName,
String documentKey,
Long rev,
Policy policy) |
BooleanResultEntity |
deleteEndpoint(String endpoint) |
void |
deleteExpiredJobs(int timeStamp) |
DeletedEntity |
deleteGraph(String graphName)
Delete a graph by its name.
|
void |
deleteGraph(String graphName,
Boolean dropCollections)
Delete a graph by its name.
|
IndexEntity |
deleteIndex(String indexHandle) |
void |
deleteJobById(String JobId) |
DefaultEntity |
deleteUser(String username) |
DefaultEntity |
executeBatch() |
<T> CursorEntity<T> |
executeQuery(String query,
Map<String,Object> bindVars,
Class<T> clazz,
Boolean calcCount,
Integer batchSize) |
<T> CursorResultSet<T> |
executeQueryWithResultSet(String query,
Map<String,Object> bindVars,
Class<T> clazz,
Boolean calcCount,
Integer batchSize) |
DefaultEntity |
executeScript(String jsCode) |
<T> CursorEntity<T> |
executeSimpleAll(String collectionName,
int skip,
int limit,
Class<?> clazz) |
<T> CursorEntity<DocumentEntity<T>> |
executeSimpleAllWithDocument(String collectionName,
int skip,
int limit,
Class<?> clazz) |
<T> CursorResultSet<DocumentEntity<T>> |
executeSimpleAllWithDocumentResultSet(String collectionName,
int skip,
int limit,
Class<?> clazz) |
<T> CursorResultSet<T> |
executeSimpleAllWithResultSet(String collectionName,
int skip,
int limit,
Class<?> clazz) |
<T> ScalarExampleEntity<T> |
executeSimpleAny(String collectionName,
Class<?> clazz) |
<T> CursorEntity<T> |
executeSimpleByExample(String collectionName,
Map<String,Object> example,
int skip,
int limit,
Class<T> clazz) |
<T> CursorEntity<DocumentEntity<T>> |
executeSimpleByExampleWithDocument(String collectionName,
Map<String,Object> example,
int skip,
int limit,
Class<?> clazz) |
<T> CursorResultSet<DocumentEntity<T>> |
executeSimpleByExampleWithDocumentResusltSet(String collectionName,
Map<String,Object> example,
int skip,
int limit,
Class<?> clazz) |
<T> CursorResultSet<T> |
executeSimpleByExampleWithResusltSet(String collectionName,
Map<String,Object> example,
int skip,
int limit,
Class<?> clazz) |
<T> DocumentResultEntity<T> |
executeSimpleFirst(String collectionName,
Integer count,
Class<?> clazz) |
<T> ScalarExampleEntity<T> |
executeSimpleFirstExample(String collectionName,
Map<String,Object> example,
Class<?> clazz) |
<T> CursorEntity<T> |
executeSimpleFulltext(String collectionName,
String attribute,
String query,
int skip,
int limit,
String index,
Class<?> clazz) |
<T> CursorEntity<DocumentEntity<T>> |
executeSimpleFulltextWithDocument(String collectionName,
String attribute,
String query,
int skip,
int limit,
String index,
Class<?> clazz) |
<T> CursorResultSet<DocumentEntity<T>> |
executeSimpleFulltextWithDocumentResultSet(String collectionName,
String attribute,
String query,
int skip,
int limit,
String index,
Class<?> clazz) |
<T> CursorResultSet<T> |
executeSimpleFulltextWithResultSet(String collectionName,
String attribute,
String query,
int skip,
int limit,
String index,
Class<?> clazz) |
<T> DocumentResultEntity<T> |
executeSimpleLast(String collectionName,
Integer count,
Class<?> clazz) |
<T> CursorEntity<T> |
executeSimpleRange(String collectionName,
String attribute,
Object left,
Object right,
Boolean closed,
int skip,
int limit,
Class<?> clazz) |
<T> CursorEntity<DocumentEntity<T>> |
executeSimpleRangeWithDocument(String collectionName,
String attribute,
Object left,
Object right,
Boolean closed,
int skip,
int limit,
Class<?> clazz) |
<T> CursorResultSet<DocumentEntity<T>> |
executeSimpleRangeWithDocumentResultSet(String collectionName,
String attribute,
Object left,
Object right,
Boolean closed,
int skip,
int limit,
Class<?> clazz) |
<T> CursorResultSet<T> |
executeSimpleRangeWithResultSet(String collectionName,
String attribute,
Object left,
Object right,
Boolean closed,
int skip,
int limit,
Class<?> clazz) |
SimpleByResultEntity |
executeSimpleRemoveByExample(String collectionName,
Map<String,Object> example,
Boolean waitForSync,
Integer limit) |
SimpleByResultEntity |
executeSimpleReplaceByExample(String collectionName,
Map<String,Object> example,
Map<String,Object> newValue,
Boolean waitForSync,
Integer limit) |
SimpleByResultEntity |
executeSimpleUpdateByExample(String collectionName,
Map<String,Object> example,
Map<String,Object> newValue,
Boolean keepNull,
Boolean waitForSync,
Integer limit) |
<T> T |
executeTransaction(TransactionEntity transactionEntity,
Class<T> clazz) |
DefaultEntity |
finishQuery(long cursorId) |
AqlFunctionsEntity |
getAqlFunctions(String namespace) |
<T> T |
getBatchResponseByRequestId(String requestId) |
CollectionEntity |
getCollection(long id) |
CollectionEntity |
getCollection(String name) |
CollectionEntity |
getCollectionChecksum(String name,
Boolean withRevisions,
Boolean withData) |
CollectionEntity |
getCollectionCount(long id) |
CollectionEntity |
getCollectionCount(String name) |
CollectionEntity |
getCollectionFigures(long id) |
CollectionEntity |
getCollectionFigures(String name) |
CollectionEntity |
getCollectionProperties(long id) |
CollectionEntity |
getCollectionProperties(String name) |
CollectionEntity |
getCollectionRevision(long id) |
CollectionEntity |
getCollectionRevision(String name) |
CollectionsEntity |
getCollections() |
CollectionsEntity |
getCollections(Boolean excludeSystem) |
DatabaseEntity |
getCurrentDatabase() |
StringsResultEntity |
getDatabases() |
StringsResultEntity |
getDatabases(boolean currentUserAccessableOnly) |
StringsResultEntity |
getDatabases(String username,
String password) |
String |
getDefaultDatabase() |
<T> DocumentEntity<T> |
getDocument(long collectionId,
long documentId,
Class<?> clazz) |
<T> DocumentEntity<T> |
getDocument(long collectionId,
String documentKey,
Class<?> clazz) |
<T> DocumentEntity<T> |
getDocument(String documentHandle,
Class<?> clazz) |
<T> DocumentEntity<T> |
getDocument(String documentHandle,
Class<?> clazz,
Long ifNoneMatchRevision,
Long ifMatchRevision) |
<T> DocumentEntity<T> |
getDocument(String collectionName,
long documentId,
Class<?> clazz) |
<T> DocumentEntity<T> |
getDocument(String collectionName,
String documentKey,
Class<?> clazz) |
List<String> |
getDocuments(long collectionId) |
List<String> |
getDocuments(long collectionId,
boolean handleConvert) |
List<String> |
getDocuments(String collectionName) |
List<String> |
getDocuments(String collectionName,
boolean handleConvert) |
List<Endpoint> |
getEndpoints() |
GraphEntity |
getGraph(String graphName)
Get graph object by name, including its edge definitions and vertex
collections.
|
List<String> |
getGraphList()
Creates a list of the names of all available graphs of the default
database.
|
GraphsEntity |
getGraphs()
Returns a GraphsEntity containing all graph as GraphEntity object of the
default database.
|
IndexEntity |
getIndex(String indexHandle) |
IndexesEntity |
getIndexes(long collectionId) |
IndexesEntity |
getIndexes(String collectionName) |
List<String> |
getJobIds() |
<T> T |
getJobResult(String jobId) |
List<String> |
getJobs(JobsEntity.JobState jobState) |
List<String> |
getJobs(JobsEntity.JobState jobState,
int count) |
String |
getLastJobId() |
ReplicationApplierConfigEntity |
getReplicationApplierConfig() |
ReplicationApplierStateEntity |
getReplicationApplierState() |
<T> void |
getReplicationDump(String collectionName,
Long from,
Long to,
Integer chunkSize,
Boolean ticks,
Class<T> clazz,
DumpHandler<T> handler) |
ReplicationInventoryEntity |
getReplicationInventory() |
ReplicationInventoryEntity |
getReplicationInventory(boolean includeSystem) |
ReplicationLoggerConfigEntity |
getReplicationLoggerConfig() |
ReplicationLoggerStateEntity |
getReplicationLoggerState() |
String |
getReplicationServerId() |
AdminLogEntity |
getServerLog(Integer logLevel,
Boolean logLevelUpTo,
Integer start,
Integer size,
Integer offset,
Boolean sortAsc,
String text) |
StatisticsEntity |
getStatistics() |
StatisticsDescriptionEntity |
getStatisticsDescription() |
ArangoUnixTime |
getTime() |
UserEntity |
getUser(String username) |
List<UserEntity> |
getUsers() |
List<DocumentEntity<UserEntity>> |
getUsersDocument() |
ArangoVersion |
getVersion() |
<T> EdgeEntity<T> |
graphCreateEdge(String graphName,
String edgeCollectionName,
String key,
String fromHandle,
String toHandle)
Stores a new edge with the information contained within the body into the
given collection.
|
<T> EdgeEntity<T> |
graphCreateEdge(String graphName,
String edgeCollectionName,
String key,
String fromHandle,
String toHandle,
Object value,
Boolean waitForSync)
Stores a new edge with the information contained within the body into the
given collection.
|
GraphEntity |
graphCreateEdgeDefinition(String graphName,
EdgeDefinitionEntity edgeDefinition)
Adds a new edge definition to an existing graph
|
<T> DocumentEntity<T> |
graphCreateVertex(String graphName,
String collectionName,
T vertex,
Boolean waitForSync)
Stores a new vertex with the information contained within the document into
the given collection.
|
GraphEntity |
graphCreateVertexCollection(String graphName,
String collectionName)
Creates a vertex collection
|
DeletedEntity |
graphDeleteEdge(String graphName,
String edgeCollectionName,
String key)
Deletes an edge with the given id, if it is contained within the graph.
|
DeletedEntity |
graphDeleteEdge(String graphName,
String edgeCollectionName,
String key,
Boolean waitForSync)
Deletes an edge with the given id, if it is contained within the graph.
|
DeletedEntity |
graphDeleteEdge(String graphName,
String edgeCollectionName,
String key,
Boolean waitForSync,
Long rev,
Long ifMatchRevision)
Deletes an edge with the given id, if it is contained within the graph.
|
GraphEntity |
graphDeleteEdgeDefinition(String graphName,
String edgeCollectionName,
Boolean dropCollection)
Removes an existing edge definition from this graph.
|
DeletedEntity |
graphDeleteVertex(String graphName,
String collectionName,
String key)
Deletes a vertex with the given key, if it is contained within the graph.
|
DeletedEntity |
graphDeleteVertex(String graphName,
String collectionName,
String key,
Boolean waitForSync)
Deletes a vertex with the given key, if it is contained within the graph.
|
DeletedEntity |
graphDeleteVertex(String graphName,
String collectionName,
String key,
Boolean waitForSync,
Long rev,
Long ifMatchRevision)
Deletes a vertex with the given key, if it is contained within the graph.
|
DeletedEntity |
graphDeleteVertexCollection(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> |
graphGetEdge(String graphName,
String edgeCollectionName,
String key,
Class<?> clazz)
Loads an edge with the given key if it is contained within your graph.
|
<T> EdgeEntity<T> |
graphGetEdge(String graphName,
String edgeCollectionName,
String key,
Class<?> clazz,
Long rev,
Long ifNoneMatchRevision,
Long ifMatchRevision)
Loads an edge with the given key if it is contained within your graph.
|
List<String> |
graphGetEdgeCollections(String graphName)
Returns a list of all edge collection of a graph that are defined in the
graphs edgeDefinitions
|
CursorEntity<PlainEdgeEntity> |
graphGetEdges(String graphName)
Returns all Edges of a graph, each edge as a PlainEdgeEntity.
|
<T> CursorEntity<T> |
graphGetEdges(String graphName,
Class<T> clazz,
String vertexDocumentHandle)
Returns all Edges of a given vertex.
|
<T> CursorEntity<T> |
graphGetEdgesByExampleMap(String graphName,
Class<T> clazzT,
Map<String,Object> vertexExample)
Returns all Edges of vertices matching the map.
|
<T,S> CursorEntity<T> |
graphGetEdgesByExampleObject(String graphName,
Class<T> clazzT,
S vertexExample)
Returns all Edges of vertices matching the example object (non-primitive
set to null will not be used for comparing).
|
<T> DocumentEntity<T> |
graphGetVertex(String graphName,
String collectionName,
String key,
Class<?> clazz)
Gets a vertex with the given key if it is contained within your graph.
|
<T> DocumentEntity<T> |
graphGetVertex(String graphName,
String collectionName,
String key,
Class<?> clazz,
Long rev,
Long ifNoneMatchRevision,
Long ifMatchRevision)
Gets a vertex with the given key if it is contained within your graph.
|
List<String> |
graphGetVertexCollections(String graphName)
Returns a list of all vertex collection of a graph that are defined in the
graphs edgeDefinitions (in "from", "to", and "orphanCollections")
|
<T> EdgeEntity<T> |
graphReplaceEdge(String graphName,
String edgeCollectionName,
String key,
Object value)
Replaces an edge with the given key by the content in the body.
|
<T> EdgeEntity<T> |
graphReplaceEdge(String graphName,
String edgeCollectionName,
String key,
Object value,
Boolean waitForSync,
Long rev,
Long ifMatchRevision)
Replaces an edge with the given key by the content in the body.
|
GraphEntity |
graphReplaceEdgeDefinition(String graphName,
String edgeCollectionName,
EdgeDefinitionEntity edgeDefinition)
Replaces an existing edge definition to an existing graph.
|
<T> DocumentEntity<T> |
graphReplaceVertex(String graphName,
String collectionName,
String key,
Object vertex)
Replaces a vertex with the given key by the content in the body.
|
<T> DocumentEntity<T> |
graphReplaceVertex(String graphName,
String collectionName,
String key,
Object vertex,
Boolean waitForSync,
Long rev,
Long ifMatchRevision)
Replaces a vertex with the given key by the content in the body.
|
<T> EdgeEntity<T> |
graphUpdateEdge(String graphName,
String edgeCollectionName,
String key,
Object value,
Boolean keepNull)
Updates an edge with the given key by adding the content in the body.
|
<T> EdgeEntity<T> |
graphUpdateEdge(String graphName,
String edgeCollectionName,
String key,
Object value,
Boolean waitForSync,
Boolean keepNull,
Long rev,
Long ifMatchRevision)
Updates an edge with the given key by adding the content in the body.
|
<T> DocumentEntity<T> |
graphUpdateVertex(String graphName,
String collectionName,
String key,
Object vertex,
Boolean keepNull)
Updates a vertex with the given key by adding the content in the body.
|
<T> DocumentEntity<T> |
graphUpdateVertex(String graphName,
String collectionName,
String key,
Object vertex,
Boolean keepNull,
Boolean waitForSync,
Long rev,
Long ifMatchRevision)
Updates a vertex with the given key by adding the content in the body.
|
ImportResultEntity |
importDocuments(String collection,
Boolean createCollection,
Collection<?> values) |
ImportResultEntity |
importDocumentsByHeaderValues(String collection,
Boolean createCollection,
Collection<? extends Collection<?>> headerValues) |
CollectionEntity |
loadCollection(long id) |
CollectionEntity |
loadCollection(long id,
Boolean count) |
CollectionEntity |
loadCollection(String name) |
CollectionEntity |
loadCollection(String name,
Boolean count) |
DefaultEntity |
reloadRouting() |
CollectionEntity |
renameCollection(long id,
String newName) |
CollectionEntity |
renameCollection(String name,
String newName) |
DocumentEntity<?> |
replaceDocument(long collectionId,
long documentId,
Object value) |
DocumentEntity<?> |
replaceDocument(long collectionId,
long documentId,
Object value,
Long rev,
Policy policy,
Boolean waitForSync) |
DocumentEntity<?> |
replaceDocument(long collectionId,
String documentKey,
Object value) |
DocumentEntity<?> |
replaceDocument(long collectionId,
String documentKey,
Object value,
Long rev,
Policy policy,
Boolean waitForSync) |
DocumentEntity<?> |
replaceDocument(String collectionName,
long documentId,
Object value) |
DocumentEntity<?> |
replaceDocument(String collectionName,
long documentId,
Object value,
Long rev,
Policy policy,
Boolean waitForSync) |
<T> DocumentEntity<T> |
replaceDocument(String documentHandle,
Object value) |
<T> DocumentEntity<T> |
replaceDocument(String documentHandle,
Object value,
Long rev,
Policy policy,
Boolean waitForSync) |
DocumentEntity<?> |
replaceDocument(String collectionName,
String documentKey,
Object value) |
DocumentEntity<?> |
replaceDocument(String collectionName,
String documentKey,
Object value,
Long rev,
Policy policy,
Boolean waitForSync) |
DefaultEntity |
replaceUser(String username,
String passwd,
Boolean active,
Map<String,Object> extra) |
CollectionEntity |
setCollectionProperties(long id,
Boolean newWaitForSync,
Long journalSize) |
CollectionEntity |
setCollectionProperties(String name,
Boolean newWaitForSync,
Long journalSize) |
void |
setDefaultDatabase(String database) |
ReplicationApplierConfigEntity |
setReplicationApplierConfig(ReplicationApplierConfigEntity param) |
ReplicationApplierConfigEntity |
setReplicationApplierConfig(String endpoint,
String database,
String username,
String password,
Integer maxConnectRetries,
Integer connectTimeout,
Integer requestTimeout,
Integer chunkSize,
Boolean autoStart,
Boolean adaptivePolling) |
ReplicationLoggerConfigEntity |
setReplicationLoggerConfig(Boolean autoStart,
Boolean logRemoteChanges,
Long maxEvents,
Long maxEventsSize) |
void |
startAsyncMode(boolean fireAndForget) |
void |
startBatchMode() |
ReplicationApplierStateEntity |
startReplicationApplier(Long from) |
boolean |
startReplicationLogger() |
void |
stopAsyncMode() |
ReplicationApplierStateEntity |
stopReplicationApplier() |
boolean |
stopReplicationLogger() |
ReplicationSyncEntity |
syncReplication(String endpoint,
String database,
String username,
String password,
RestrictType restrictType,
String... restrictCollections) |
CollectionEntity |
truncateCollection(long id) |
CollectionEntity |
truncateCollection(String name) |
CollectionEntity |
unloadCollection(long id) |
CollectionEntity |
unloadCollection(String name) |
DocumentEntity<?> |
updateDocument(long collectionId,
long documentId,
Object value) |
DocumentEntity<?> |
updateDocument(long collectionId,
long documentId,
Object value,
Boolean keepNull) |
DocumentEntity<?> |
updateDocument(long collectionId,
long documentId,
Object value,
Long rev,
Policy policy,
Boolean waitForSync,
Boolean keepNull) |
DocumentEntity<?> |
updateDocument(long collectionId,
String documentKey,
Object value) |
DocumentEntity<?> |
updateDocument(long collectionId,
String documentKey,
Object value,
Boolean keepNull) |
DocumentEntity<?> |
updateDocument(long collectionId,
String documentKey,
Object value,
Long rev,
Policy policy,
Boolean waitForSync,
Boolean keepNull) |
DocumentEntity<?> |
updateDocument(String collectionName,
long documentId,
Object value) |
DocumentEntity<?> |
updateDocument(String collectionName,
long documentId,
Object value,
Boolean keepNull) |
DocumentEntity<?> |
updateDocument(String collectionName,
long documentId,
Object value,
Long rev,
Policy policy,
Boolean waitForSync,
Boolean keepNull) |
<T> DocumentEntity<T> |
updateDocument(String documentHandle,
Object value) |
<T> DocumentEntity<T> |
updateDocument(String documentHandle,
Object value,
Boolean keepNull) |
<T> DocumentEntity<T> |
updateDocument(String documentHandle,
Object value,
Long rev,
Policy policy,
Boolean waitForSync,
Boolean keepNull) |
DocumentEntity<?> |
updateDocument(String collectionName,
String documentKey,
Object value) |
DocumentEntity<?> |
updateDocument(String collectionName,
String documentKey,
Object value,
Boolean keepNull) |
DocumentEntity<?> |
updateDocument(String collectionName,
String documentKey,
Object value,
Long rev,
Policy policy,
Boolean waitForSync,
Boolean keepNull) |
DefaultEntity |
updateUser(String username,
String passwd,
Boolean active,
Map<String,Object> extra) |
CursorEntity<?> |
validateQuery(String query) |
createDocumentHandle, createDocumentHandle, createEndpointUrl, createEntity, createEntity, createEntity, createEntity, createEntityImpl, setKeyValueHeader, setStatusCode, toReplicationDumpHeader, validate, validateCollectionName, validateDatabaseName, validateDocumentHandle
public ArangoDriver(ArangoConfigure configure)
configure
- public ArangoDriver(ArangoConfigure configure, String database)
configure
- database
- public void startBatchMode() throws ArangoException
ArangoException
public void startAsyncMode(boolean fireAndForget) throws ArangoException
ArangoException
public void stopAsyncMode() throws ArangoException
ArangoException
public String getLastJobId()
public List<String> getJobs(JobsEntity.JobState jobState, int count) throws ArangoException
ArangoException
public List<String> getJobs(JobsEntity.JobState jobState) throws ArangoException
ArangoException
public void deleteAllJobs() throws ArangoException
ArangoException
public void deleteJobById(String JobId) throws ArangoException
ArangoException
public void deleteExpiredJobs(int timeStamp) throws ArangoException
ArangoException
public <T> T getJobResult(String jobId) throws ArangoException
ArangoException
public DefaultEntity executeBatch() throws ArangoException
ArangoException
public <T> T getBatchResponseByRequestId(String requestId) throws ArangoException
ArangoException
public void cancelBatchMode() throws ArangoException
ArangoException
public String getDefaultDatabase()
public void setDefaultDatabase(String database)
public CollectionEntity createCollection(String name) throws ArangoException
ArangoException
public CollectionEntity createCollection(String name, CollectionOptions collectionOptions) throws ArangoException
ArangoException
public CollectionEntity getCollection(long id) throws ArangoException
ArangoException
public CollectionEntity getCollection(String name) throws ArangoException
ArangoException
public CollectionEntity getCollectionProperties(long id) throws ArangoException
ArangoException
public CollectionEntity getCollectionProperties(String name) throws ArangoException
ArangoException
public CollectionEntity getCollectionRevision(long id) throws ArangoException
ArangoException
public CollectionEntity getCollectionRevision(String name) throws ArangoException
ArangoException
public CollectionEntity getCollectionCount(long id) throws ArangoException
ArangoException
public CollectionEntity getCollectionCount(String name) throws ArangoException
ArangoException
public CollectionEntity getCollectionFigures(long id) throws ArangoException
ArangoException
public CollectionEntity getCollectionFigures(String name) throws ArangoException
ArangoException
public CollectionEntity getCollectionChecksum(String name, Boolean withRevisions, Boolean withData) throws ArangoException
ArangoException
public CollectionsEntity getCollections() throws ArangoException
ArangoException
public CollectionsEntity getCollections(Boolean excludeSystem) throws ArangoException
ArangoException
public CollectionEntity loadCollection(long id) throws ArangoException
ArangoException
public CollectionEntity loadCollection(String name) throws ArangoException
ArangoException
public CollectionEntity loadCollection(long id, Boolean count) throws ArangoException
ArangoException
public CollectionEntity loadCollection(String name, Boolean count) throws ArangoException
ArangoException
public CollectionEntity unloadCollection(long id) throws ArangoException
ArangoException
public CollectionEntity unloadCollection(String name) throws ArangoException
ArangoException
public CollectionEntity truncateCollection(long id) throws ArangoException
ArangoException
public CollectionEntity truncateCollection(String name) throws ArangoException
ArangoException
public CollectionEntity setCollectionProperties(long id, Boolean newWaitForSync, Long journalSize) throws ArangoException
ArangoException
public CollectionEntity setCollectionProperties(String name, Boolean newWaitForSync, Long journalSize) throws ArangoException
ArangoException
public CollectionEntity renameCollection(long id, String newName) throws ArangoException
ArangoException
public CollectionEntity renameCollection(String name, String newName) throws ArangoException
ArangoException
public CollectionEntity deleteCollection(long id) throws ArangoException
ArangoException
public CollectionEntity deleteCollection(String name) throws ArangoException
ArangoException
public DocumentEntity<?> createDocument(long collectionId, Object value) throws ArangoException
ArangoException
public <T> DocumentEntity<T> createDocument(String collectionName, Object value) throws ArangoException
ArangoException
public DocumentEntity<?> createDocument(long collectionId, String documentKey, Object value) throws ArangoException
ArangoException
public <T> DocumentEntity<T> createDocument(String collectionName, String documentKey, Object value) throws ArangoException
ArangoException
public DocumentEntity<?> createDocument(long collectionId, Object value, Boolean createCollection, Boolean waitForSync) throws ArangoException
ArangoException
public <T> DocumentEntity<T> createDocument(String collectionName, Object value, Boolean createCollection, Boolean waitForSync) throws ArangoException
ArangoException
public DocumentEntity<?> createDocument(long collectionId, String documentKey, Object value, Boolean createCollection, Boolean waitForSync) throws ArangoException
ArangoException
public <T> DocumentEntity<T> createDocument(String collectionName, String documentKey, Object value, Boolean createCollection, Boolean waitForSync) throws ArangoException
ArangoException
public DocumentEntity<?> replaceDocument(long collectionId, long documentId, Object value) throws ArangoException
ArangoException
public DocumentEntity<?> replaceDocument(String collectionName, long documentId, Object value) throws ArangoException
ArangoException
public DocumentEntity<?> replaceDocument(long collectionId, String documentKey, Object value) throws ArangoException
ArangoException
public DocumentEntity<?> replaceDocument(String collectionName, String documentKey, Object value) throws ArangoException
ArangoException
public <T> DocumentEntity<T> replaceDocument(String documentHandle, Object value) throws ArangoException
ArangoException
public DocumentEntity<?> replaceDocument(long collectionId, long documentId, Object value, Long rev, Policy policy, Boolean waitForSync) throws ArangoException
ArangoException
public DocumentEntity<?> replaceDocument(String collectionName, long documentId, Object value, Long rev, Policy policy, Boolean waitForSync) throws ArangoException
ArangoException
public DocumentEntity<?> replaceDocument(long collectionId, String documentKey, Object value, Long rev, Policy policy, Boolean waitForSync) throws ArangoException
ArangoException
public DocumentEntity<?> replaceDocument(String collectionName, String documentKey, Object value, Long rev, Policy policy, Boolean waitForSync) throws ArangoException
ArangoException
public <T> DocumentEntity<T> replaceDocument(String documentHandle, Object value, Long rev, Policy policy, Boolean waitForSync) throws ArangoException
ArangoException
public DocumentEntity<?> updateDocument(long collectionId, long documentId, Object value) throws ArangoException
ArangoException
public DocumentEntity<?> updateDocument(String collectionName, long documentId, Object value) throws ArangoException
ArangoException
public DocumentEntity<?> updateDocument(long collectionId, String documentKey, Object value) throws ArangoException
ArangoException
public DocumentEntity<?> updateDocument(String collectionName, String documentKey, Object value) throws ArangoException
ArangoException
public <T> DocumentEntity<T> updateDocument(String documentHandle, Object value) throws ArangoException
ArangoException
public DocumentEntity<?> updateDocument(long collectionId, long documentId, Object value, Boolean keepNull) throws ArangoException
ArangoException
public DocumentEntity<?> updateDocument(String collectionName, long documentId, Object value, Boolean keepNull) throws ArangoException
ArangoException
public DocumentEntity<?> updateDocument(long collectionId, String documentKey, Object value, Boolean keepNull) throws ArangoException
ArangoException
public DocumentEntity<?> updateDocument(String collectionName, String documentKey, Object value, Boolean keepNull) throws ArangoException
ArangoException
public <T> DocumentEntity<T> updateDocument(String documentHandle, Object value, Boolean keepNull) throws ArangoException
ArangoException
public DocumentEntity<?> updateDocument(long collectionId, long documentId, Object value, Long rev, Policy policy, Boolean waitForSync, Boolean keepNull) throws ArangoException
ArangoException
public DocumentEntity<?> updateDocument(String collectionName, long documentId, Object value, Long rev, Policy policy, Boolean waitForSync, Boolean keepNull) throws ArangoException
ArangoException
public DocumentEntity<?> updateDocument(long collectionId, String documentKey, Object value, Long rev, Policy policy, Boolean waitForSync, Boolean keepNull) throws ArangoException
ArangoException
public DocumentEntity<?> updateDocument(String collectionName, String documentKey, Object value, Long rev, Policy policy, Boolean waitForSync, Boolean keepNull) throws ArangoException
ArangoException
public <T> DocumentEntity<T> updateDocument(String documentHandle, Object value, Long rev, Policy policy, Boolean waitForSync, Boolean keepNull) throws ArangoException
ArangoException
public List<String> getDocuments(long collectionId) throws ArangoException
ArangoException
public List<String> getDocuments(String collectionName) throws ArangoException
ArangoException
public List<String> getDocuments(long collectionId, boolean handleConvert) throws ArangoException
ArangoException
public List<String> getDocuments(String collectionName, boolean handleConvert) throws ArangoException
ArangoException
public long checkDocument(long collectionId, long documentId) throws ArangoException
ArangoException
public long checkDocument(String collectionName, long documentId) throws ArangoException
ArangoException
public long checkDocument(long collectionId, String documentKey) throws ArangoException
ArangoException
public long checkDocument(String collectionName, String documentKey) throws ArangoException
ArangoException
public long checkDocument(String documentHandle) throws ArangoException
ArangoException
public <T> DocumentEntity<T> getDocument(long collectionId, long documentId, Class<?> clazz) throws ArangoException
ArangoException
public <T> DocumentEntity<T> getDocument(String collectionName, long documentId, Class<?> clazz) throws ArangoException
ArangoException
public <T> DocumentEntity<T> getDocument(long collectionId, String documentKey, Class<?> clazz) throws ArangoException
ArangoException
public <T> DocumentEntity<T> getDocument(String collectionName, String documentKey, Class<?> clazz) throws ArangoException
ArangoException
public <T> DocumentEntity<T> getDocument(String documentHandle, Class<?> clazz) throws ArangoException
ArangoException
public <T> DocumentEntity<T> getDocument(String documentHandle, Class<?> clazz, Long ifNoneMatchRevision, Long ifMatchRevision) throws ArangoException
ArangoException
public DocumentEntity<?> deleteDocument(long collectionId, long documentId) throws ArangoException
ArangoException
public DocumentEntity<?> deleteDocument(String collectionName, long documentId) throws ArangoException
ArangoException
public DocumentEntity<?> deleteDocument(long collectionId, String documentKey) throws ArangoException
ArangoException
public DocumentEntity<?> deleteDocument(String collectionName, String documentKey) throws ArangoException
ArangoException
public DocumentEntity<?> deleteDocument(String documentHandle) throws ArangoException
ArangoException
public DocumentEntity<?> deleteDocument(long collectionId, long documentId, Long rev, Policy policy) throws ArangoException
ArangoException
public DocumentEntity<?> deleteDocument(String collectionName, long documentId, Long rev, Policy policy) throws ArangoException
ArangoException
public DocumentEntity<?> deleteDocument(long collectionId, String documentKey, Long rev, Policy policy) throws ArangoException
ArangoException
public DocumentEntity<?> deleteDocument(String collectionName, String documentKey, Long rev, Policy policy) throws ArangoException
ArangoException
public DocumentEntity<?> deleteDocument(String documentHandle, Long rev, Policy policy) throws ArangoException
ArangoException
public CursorEntity<?> validateQuery(String query) throws ArangoException
ArangoException
public <T> CursorEntity<T> executeQuery(String query, Map<String,Object> bindVars, Class<T> clazz, Boolean calcCount, Integer batchSize) throws ArangoException
ArangoException
public <T> CursorEntity<T> continueQuery(long cursorId, Class<?>... clazz) throws ArangoException
ArangoException
public DefaultEntity finishQuery(long cursorId) throws ArangoException
ArangoException
public <T> CursorResultSet<T> executeQueryWithResultSet(String query, Map<String,Object> bindVars, Class<T> clazz, Boolean calcCount, Integer batchSize) throws ArangoException
ArangoException
public IndexEntity createIndex(long collectionId, IndexType type, boolean unique, String... fields) throws ArangoException
ArangoException
public IndexEntity createIndex(String collectionName, IndexType type, boolean unique, String... fields) throws ArangoException
ArangoException
public IndexEntity createHashIndex(String collectionName, boolean unique, String... fields) throws ArangoException
ArangoException
public IndexEntity createGeoIndex(String collectionName, boolean unique, String... fields) throws ArangoException
ArangoException
public IndexEntity createSkipListIndex(String collectionName, boolean unique, String... fields) throws ArangoException
ArangoException
public IndexEntity createCappedIndex(long collectionId, int size) throws ArangoException
ArangoException
public IndexEntity createCappedIndex(String collectionName, int size) throws ArangoException
ArangoException
public IndexEntity createFulltextIndex(long collectionId, String... fields) throws ArangoException
ArangoException
public IndexEntity createFulltextIndex(String collectionName, String... fields) throws ArangoException
ArangoException
public IndexEntity createFulltextIndex(long collectionId, Integer minLength, String... fields) throws ArangoException
ArangoException
public IndexEntity createFulltextIndex(String collectionName, Integer minLength, String... fields) throws ArangoException
ArangoException
public IndexEntity deleteIndex(String indexHandle) throws ArangoException
ArangoException
public IndexEntity getIndex(String indexHandle) throws ArangoException
ArangoException
public IndexesEntity getIndexes(long collectionId) throws ArangoException
ArangoException
public IndexesEntity getIndexes(String collectionName) throws ArangoException
ArangoException
public AdminLogEntity getServerLog(Integer logLevel, Boolean logLevelUpTo, Integer start, Integer size, Integer offset, Boolean sortAsc, String text) throws ArangoException
ArangoException
public StatisticsEntity getStatistics() throws ArangoException
ArangoException
public StatisticsDescriptionEntity getStatisticsDescription() throws ArangoException
ArangoException
public ArangoVersion getVersion() throws ArangoException
ArangoException
public ArangoUnixTime getTime() throws ArangoException
ArangoException
public DefaultEntity reloadRouting() throws ArangoException
ArangoException
public DefaultEntity executeScript(String jsCode) throws ArangoException
ArangoException
public <T> CursorEntity<T> executeSimpleByExample(String collectionName, Map<String,Object> example, int skip, int limit, Class<T> clazz) throws ArangoException
ArangoException
public <T> CursorResultSet<T> executeSimpleByExampleWithResusltSet(String collectionName, Map<String,Object> example, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoException
public <T> CursorEntity<DocumentEntity<T>> executeSimpleByExampleWithDocument(String collectionName, Map<String,Object> example, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoException
public <T> CursorResultSet<DocumentEntity<T>> executeSimpleByExampleWithDocumentResusltSet(String collectionName, Map<String,Object> example, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoException
public <T> CursorEntity<T> executeSimpleAll(String collectionName, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoException
public <T> CursorResultSet<T> executeSimpleAllWithResultSet(String collectionName, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoException
public <T> CursorEntity<DocumentEntity<T>> executeSimpleAllWithDocument(String collectionName, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoException
public <T> CursorResultSet<DocumentEntity<T>> executeSimpleAllWithDocumentResultSet(String collectionName, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoException
public <T> ScalarExampleEntity<T> executeSimpleFirstExample(String collectionName, Map<String,Object> example, Class<?> clazz) throws ArangoException
ArangoException
public <T> ScalarExampleEntity<T> executeSimpleAny(String collectionName, Class<?> clazz) throws ArangoException
ArangoException
public <T> CursorEntity<T> executeSimpleRange(String collectionName, String attribute, Object left, Object right, Boolean closed, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoException
public <T> CursorResultSet<T> executeSimpleRangeWithResultSet(String collectionName, String attribute, Object left, Object right, Boolean closed, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoException
public <T> CursorEntity<DocumentEntity<T>> executeSimpleRangeWithDocument(String collectionName, String attribute, Object left, Object right, Boolean closed, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoException
public <T> CursorResultSet<DocumentEntity<T>> executeSimpleRangeWithDocumentResultSet(String collectionName, String attribute, Object left, Object right, Boolean closed, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoException
public <T> CursorEntity<T> executeSimpleFulltext(String collectionName, String attribute, String query, int skip, int limit, String index, Class<?> clazz) throws ArangoException
ArangoException
public <T> CursorResultSet<T> executeSimpleFulltextWithResultSet(String collectionName, String attribute, String query, int skip, int limit, String index, Class<?> clazz) throws ArangoException
ArangoException
public <T> CursorEntity<DocumentEntity<T>> executeSimpleFulltextWithDocument(String collectionName, String attribute, String query, int skip, int limit, String index, Class<?> clazz) throws ArangoException
ArangoException
public <T> CursorResultSet<DocumentEntity<T>> executeSimpleFulltextWithDocumentResultSet(String collectionName, String attribute, String query, int skip, int limit, String index, Class<?> clazz) throws ArangoException
ArangoException
public SimpleByResultEntity executeSimpleRemoveByExample(String collectionName, Map<String,Object> example, Boolean waitForSync, Integer limit) throws ArangoException
ArangoException
public SimpleByResultEntity executeSimpleReplaceByExample(String collectionName, Map<String,Object> example, Map<String,Object> newValue, Boolean waitForSync, Integer limit) throws ArangoException
ArangoException
public SimpleByResultEntity executeSimpleUpdateByExample(String collectionName, Map<String,Object> example, Map<String,Object> newValue, Boolean keepNull, Boolean waitForSync, Integer limit) throws ArangoException
ArangoException
public <T> DocumentResultEntity<T> executeSimpleFirst(String collectionName, Integer count, Class<?> clazz) throws ArangoException
collectionName
- count
- clazz
- ArangoException
public <T> DocumentResultEntity<T> executeSimpleLast(String collectionName, Integer count, Class<?> clazz) throws ArangoException
collectionName
- count
- clazz
- ArangoException
public DefaultEntity createUser(String username, String passwd, Boolean active, Map<String,Object> extra) throws ArangoException
ArangoException
public DefaultEntity replaceUser(String username, String passwd, Boolean active, Map<String,Object> extra) throws ArangoException
ArangoException
public DefaultEntity updateUser(String username, String passwd, Boolean active, Map<String,Object> extra) throws ArangoException
ArangoException
public DefaultEntity deleteUser(String username) throws ArangoException
ArangoException
public UserEntity getUser(String username) throws ArangoException
ArangoException
public List<DocumentEntity<UserEntity>> getUsersDocument() throws ArangoException
ArangoException
public List<UserEntity> getUsers() throws ArangoException
ArangoException
public ImportResultEntity importDocuments(String collection, Boolean createCollection, Collection<?> values) throws ArangoException
ArangoException
public ImportResultEntity importDocumentsByHeaderValues(String collection, Boolean createCollection, Collection<? extends Collection<?>> headerValues) throws ArangoException
ArangoException
public DatabaseEntity getCurrentDatabase() throws ArangoException
ArangoException
HttpDatabaseCurrent
public StringsResultEntity getDatabases() throws ArangoException
ArangoException
://www.arangodb.com/manuals/current/HttpDatabase.html#HttpDatabaseList2
public StringsResultEntity getDatabases(boolean currentUserAccessableOnly) throws ArangoException
currentUserAccessableOnly
- ArangoException
://www.arangodb.com/manuals/current/HttpDatabase.html#HttpDatabaseList
public StringsResultEntity getDatabases(String username, String password) throws ArangoException
username
- password
- ArangoException
public BooleanResultEntity createDatabase(String database, UserEntity... users) throws ArangoException
database
- users
- ArangoException
://www.arangodb.com/manuals/current/HttpDatabase.html#HttpDatabaseCreate
public BooleanResultEntity deleteDatabase(String database) throws ArangoException
database
- ArangoException
://www.arangodb.com/manuals/current/HttpDatabase.html#HttpDatabaseDelete
public BooleanResultEntity createEndpoint(String endpoint, String... databases) throws ArangoException
endpoint
- databases
- ArangoException
public List<Endpoint> getEndpoints() throws ArangoException
ArangoException
public BooleanResultEntity deleteEndpoint(String endpoint) throws ArangoException
endpoint
- ArangoException
public ReplicationInventoryEntity getReplicationInventory() throws ArangoException
ArangoException
public ReplicationInventoryEntity getReplicationInventory(boolean includeSystem) throws ArangoException
includeSystem
- ArangoException
public <T> void getReplicationDump(String collectionName, Long from, Long to, Integer chunkSize, Boolean ticks, Class<T> clazz, DumpHandler<T> handler) throws ArangoException
collectionName
- from
- to
- chunkSize
- ticks
- clazz
- handler
- ArangoException
public ReplicationSyncEntity syncReplication(String endpoint, String database, String username, String password, RestrictType restrictType, String... restrictCollections) throws ArangoException
endpoint
- database
- username
- password
- restrictType
- restrictCollections
- ArangoException
public String getReplicationServerId() throws ArangoException
ArangoException
public boolean startReplicationLogger() throws ArangoException
ArangoException
public boolean stopReplicationLogger() throws ArangoException
ArangoException
public ReplicationLoggerStateEntity getReplicationLoggerState() throws ArangoException
ArangoException
public ReplicationLoggerConfigEntity getReplicationLoggerConfig() throws ArangoException
ArangoException
public ReplicationLoggerConfigEntity setReplicationLoggerConfig(Boolean autoStart, Boolean logRemoteChanges, Long maxEvents, Long maxEventsSize) throws ArangoException
autoStart
- logRemoteChanges
- maxEvents
- maxEventsSize
- ArangoException
public ReplicationApplierConfigEntity getReplicationApplierConfig() throws ArangoException
ArangoException
public ReplicationApplierConfigEntity setReplicationApplierConfig(String endpoint, String database, String username, String password, Integer maxConnectRetries, Integer connectTimeout, Integer requestTimeout, Integer chunkSize, Boolean autoStart, Boolean adaptivePolling) throws ArangoException
endpoint
- database
- username
- password
- maxConnectRetries
- connectTimeout
- requestTimeout
- chunkSize
- autoStart
- adaptivePolling
- ArangoException
public ReplicationApplierConfigEntity setReplicationApplierConfig(ReplicationApplierConfigEntity param) throws ArangoException
param
- ArangoException
public ReplicationApplierStateEntity startReplicationApplier(Long from) throws ArangoException
from
- ArangoException
public ReplicationApplierStateEntity stopReplicationApplier() throws ArangoException
ArangoException
public ReplicationApplierStateEntity getReplicationApplierState() throws ArangoException
ArangoException
public GraphsEntity getGraphs() throws ArangoException
ArangoException
public List<String> getGraphList() throws ArangoException
ArangoException
public GraphEntity createGraph(String graphName, List<EdgeDefinitionEntity> edgeDefinitions, List<String> orphanCollections, Boolean waitForSync) throws ArangoException
graphName
- edgeDefinitions
- orphanCollections
- waitForSync
- ArangoException
public GraphEntity createGraph(String graphName, Boolean waitForSync) throws ArangoException
graphName
- waitForSync
- ArangoException
public GraphEntity getGraph(String graphName) throws ArangoException
graphName
- ArangoException
public DeletedEntity deleteGraph(String graphName) throws ArangoException
graphName
- ArangoException
public void deleteGraph(String graphName, Boolean dropCollections) throws ArangoException
graphName
- dropCollections
- ArangoException
public List<String> graphGetVertexCollections(String graphName) throws ArangoException
graphName
- ArangoException
public DeletedEntity graphDeleteVertexCollection(String graphName, String collectionName, Boolean dropCollection) throws ArangoException
graphName
- collectionName
- dropCollection
- ArangoException
public GraphEntity graphCreateVertexCollection(String graphName, String collectionName) throws ArangoException
graphName
- collectionName
- ArangoException
public List<String> graphGetEdgeCollections(String graphName) throws ArangoException
graphName
- ArangoException
public GraphEntity graphCreateEdgeDefinition(String graphName, EdgeDefinitionEntity edgeDefinition) throws ArangoException
graphName
- edgeDefinition
- ArangoException
public GraphEntity graphReplaceEdgeDefinition(String graphName, String edgeCollectionName, EdgeDefinitionEntity edgeDefinition) throws ArangoException
graphName
- edgeCollectionName
- edgeDefinition
- ArangoException
public GraphEntity graphDeleteEdgeDefinition(String graphName, String edgeCollectionName, Boolean dropCollection) throws ArangoException
graphName
- edgeCollectionName
- ArangoException
public <T> DocumentEntity<T> graphCreateVertex(String graphName, String collectionName, T vertex, Boolean waitForSync) throws ArangoException
graphName
- vertex
- waitForSync
- ArangoException
public <T> DocumentEntity<T> graphGetVertex(String graphName, String collectionName, String key, Class<?> clazz) throws ArangoException
graphName
- collectionName
- key
- clazz
- ArangoException
public <T> DocumentEntity<T> graphGetVertex(String graphName, String collectionName, String key, Class<?> clazz, Long rev, Long ifNoneMatchRevision, Long ifMatchRevision) throws ArangoException
graphName
- collectionName
- key
- clazz
- rev
- ifNoneMatchRevision
- ifMatchRevision
- ArangoException
public DeletedEntity graphDeleteVertex(String graphName, String collectionName, String key) throws ArangoException
graphName
- collectionName
- key
- ArangoException
public DeletedEntity graphDeleteVertex(String graphName, String collectionName, String key, Boolean waitForSync) throws ArangoException
graphName
- collectionName
- key
- waitForSync
- ArangoException
public DeletedEntity graphDeleteVertex(String graphName, String collectionName, String key, Boolean waitForSync, Long rev, Long ifMatchRevision) throws ArangoException
graphName
- collectionName
- key
- waitForSync
- rev
- ifMatchRevision
- ArangoException
public <T> DocumentEntity<T> graphReplaceVertex(String graphName, String collectionName, String key, Object vertex) throws ArangoException
graphName
- collectionName
- key
- vertex
- ArangoException
public <T> DocumentEntity<T> graphReplaceVertex(String graphName, String collectionName, String key, Object vertex, Boolean waitForSync, Long rev, Long ifMatchRevision) throws ArangoException
graphName
- collectionName
- key
- vertex
- waitForSync
- rev
- ifMatchRevision
- ArangoException
public <T> DocumentEntity<T> graphUpdateVertex(String graphName, String collectionName, String key, Object vertex, Boolean keepNull) throws ArangoException
graphName
- collectionName
- key
- vertex
- keepNull
- ArangoException
public <T> DocumentEntity<T> graphUpdateVertex(String graphName, String collectionName, String key, Object vertex, Boolean keepNull, Boolean waitForSync, Long rev, Long ifMatchRevision) throws ArangoException
graphName
- collectionName
- key
- vertex
- keepNull
- waitForSync
- rev
- ifMatchRevision
- ArangoException
public <T> EdgeEntity<T> graphCreateEdge(String graphName, String edgeCollectionName, String key, String fromHandle, String toHandle, Object value, Boolean waitForSync) throws ArangoException
graphName
- edgeCollectionName
- key
- fromHandle
- toHandle
- value
- label
- waitForSync
- ArangoException
public <T> EdgeEntity<T> graphCreateEdge(String graphName, String edgeCollectionName, String key, String fromHandle, String toHandle) throws ArangoException
graphName
- edgeCollectionName
- key
- fromHandle
- toHandle
- ArangoException
public <T> EdgeEntity<T> graphGetEdge(String graphName, String edgeCollectionName, String key, Class<?> clazz, Long rev, Long ifNoneMatchRevision, Long ifMatchRevision) throws ArangoException
graphName
- edgeCollectionName
- key
- clazz
- rev
- ifNoneMatchRevision
- ifMatchRevision
- ArangoException
public <T> EdgeEntity<T> graphGetEdge(String graphName, String edgeCollectionName, String key, Class<?> clazz) throws ArangoException
graphName
- edgeCollectionName
- key
- clazz
- ArangoException
public DeletedEntity graphDeleteEdge(String graphName, String edgeCollectionName, String key) throws ArangoException
graphName
- edgeCollectionName
- key
- ArangoException
public DeletedEntity graphDeleteEdge(String graphName, String edgeCollectionName, String key, Boolean waitForSync) throws ArangoException
graphName
- edgeCollectionName
- key
- waitForSync
- ArangoException
public DeletedEntity graphDeleteEdge(String graphName, String edgeCollectionName, String key, Boolean waitForSync, Long rev, Long ifMatchRevision) throws ArangoException
graphName
- edgeCollectionName
- key
- waitForSync
- rev
- ifMatchRevision
- ArangoException
public <T> EdgeEntity<T> graphReplaceEdge(String graphName, String edgeCollectionName, String key, Object value) throws ArangoException
graphName
- edgeCollectionName
- key
- value
- ArangoException
public <T> EdgeEntity<T> graphReplaceEdge(String graphName, String edgeCollectionName, String key, Object value, Boolean waitForSync, Long rev, Long ifMatchRevision) throws ArangoException
graphName
- edgeCollectionName
- key
- value
- waitForSync
- rev
- ifMatchRevision
- ArangoException
public <T> EdgeEntity<T> graphUpdateEdge(String graphName, String edgeCollectionName, String key, Object value, Boolean keepNull) throws ArangoException
graphName
- edgeCollectionName
- key
- value
- keepNull
- ArangoException
public <T> EdgeEntity<T> graphUpdateEdge(String graphName, String edgeCollectionName, String key, Object value, Boolean waitForSync, Boolean keepNull, Long rev, Long ifMatchRevision) throws ArangoException
graphName
- edgeCollectionName
- key
- value
- waitForSync
- keepNull
- rev
- ifMatchRevision
- ArangoException
public CursorEntity<PlainEdgeEntity> graphGetEdges(String graphName) throws ArangoException
graphName
- ArangoException
public <T> CursorEntity<T> graphGetEdges(String graphName, Class<T> clazz, String vertexDocumentHandle) throws ArangoException
graphName
- clazz
- vertexDocumentHandle
- ArangoException
public <T,S> CursorEntity<T> graphGetEdgesByExampleObject(String graphName, Class<T> clazzT, S vertexExample) throws ArangoException
graphName
- clazzT
- vertexExample
- ArangoException
public <T> CursorEntity<T> graphGetEdgesByExampleMap(String graphName, Class<T> clazzT, Map<String,Object> vertexExample) throws ArangoException
graphName
- clazzT
- vertexExample
- ArangoException
public DefaultEntity createAqlFunction(String name, String code) throws ArangoException
ArangoException
public AqlFunctionsEntity getAqlFunctions(String namespace) throws ArangoException
ArangoException
public DefaultEntity deleteAqlFunction(String name, boolean isNameSpace) throws ArangoException
ArangoException
public TransactionEntity createTransaction(String action)
public <T> T executeTransaction(TransactionEntity transactionEntity, Class<T> clazz) throws ArangoException
ArangoException
Copyright © 2012–2014 ArangoDB GmbH. All rights reserved.