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, validateDocumentHandlepublic ArangoDriver(ArangoConfigure configure)
configure - public ArangoDriver(ArangoConfigure configure, String database)
configure - database - public void startBatchMode()
throws ArangoException
ArangoExceptionpublic void startAsyncMode(boolean fireAndForget)
throws ArangoException
ArangoExceptionpublic void stopAsyncMode()
throws ArangoException
ArangoExceptionpublic String getLastJobId()
public List<String> getJobs(JobsEntity.JobState jobState, int count) throws ArangoException
ArangoExceptionpublic List<String> getJobs(JobsEntity.JobState jobState) throws ArangoException
ArangoExceptionpublic void deleteAllJobs()
throws ArangoException
ArangoExceptionpublic void deleteJobById(String JobId) throws ArangoException
ArangoExceptionpublic void deleteExpiredJobs(int timeStamp)
throws ArangoException
ArangoExceptionpublic <T> T getJobResult(String jobId) throws ArangoException
ArangoExceptionpublic DefaultEntity executeBatch() throws ArangoException
ArangoExceptionpublic <T> T getBatchResponseByRequestId(String requestId) throws ArangoException
ArangoExceptionpublic void cancelBatchMode()
throws ArangoException
ArangoExceptionpublic String getDefaultDatabase()
public void setDefaultDatabase(String database)
public CollectionEntity createCollection(String name) throws ArangoException
ArangoExceptionpublic CollectionEntity createCollection(String name, CollectionOptions collectionOptions) throws ArangoException
ArangoExceptionpublic CollectionEntity getCollection(long id) throws ArangoException
ArangoExceptionpublic CollectionEntity getCollection(String name) throws ArangoException
ArangoExceptionpublic CollectionEntity getCollectionProperties(long id) throws ArangoException
ArangoExceptionpublic CollectionEntity getCollectionProperties(String name) throws ArangoException
ArangoExceptionpublic CollectionEntity getCollectionRevision(long id) throws ArangoException
ArangoExceptionpublic CollectionEntity getCollectionRevision(String name) throws ArangoException
ArangoExceptionpublic CollectionEntity getCollectionCount(long id) throws ArangoException
ArangoExceptionpublic CollectionEntity getCollectionCount(String name) throws ArangoException
ArangoExceptionpublic CollectionEntity getCollectionFigures(long id) throws ArangoException
ArangoExceptionpublic CollectionEntity getCollectionFigures(String name) throws ArangoException
ArangoExceptionpublic CollectionEntity getCollectionChecksum(String name, Boolean withRevisions, Boolean withData) throws ArangoException
ArangoExceptionpublic CollectionsEntity getCollections() throws ArangoException
ArangoExceptionpublic CollectionsEntity getCollections(Boolean excludeSystem) throws ArangoException
ArangoExceptionpublic CollectionEntity loadCollection(long id) throws ArangoException
ArangoExceptionpublic CollectionEntity loadCollection(String name) throws ArangoException
ArangoExceptionpublic CollectionEntity loadCollection(long id, Boolean count) throws ArangoException
ArangoExceptionpublic CollectionEntity loadCollection(String name, Boolean count) throws ArangoException
ArangoExceptionpublic CollectionEntity unloadCollection(long id) throws ArangoException
ArangoExceptionpublic CollectionEntity unloadCollection(String name) throws ArangoException
ArangoExceptionpublic CollectionEntity truncateCollection(long id) throws ArangoException
ArangoExceptionpublic CollectionEntity truncateCollection(String name) throws ArangoException
ArangoExceptionpublic CollectionEntity setCollectionProperties(long id, Boolean newWaitForSync, Long journalSize) throws ArangoException
ArangoExceptionpublic CollectionEntity setCollectionProperties(String name, Boolean newWaitForSync, Long journalSize) throws ArangoException
ArangoExceptionpublic CollectionEntity renameCollection(long id, String newName) throws ArangoException
ArangoExceptionpublic CollectionEntity renameCollection(String name, String newName) throws ArangoException
ArangoExceptionpublic CollectionEntity deleteCollection(long id) throws ArangoException
ArangoExceptionpublic CollectionEntity deleteCollection(String name) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> createDocument(long collectionId, Object value) throws ArangoException
ArangoExceptionpublic <T> DocumentEntity<T> createDocument(String collectionName, Object value) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> createDocument(long collectionId, String documentKey, Object value) throws ArangoException
ArangoExceptionpublic <T> DocumentEntity<T> createDocument(String collectionName, String documentKey, Object value) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> createDocument(long collectionId, Object value, Boolean createCollection, Boolean waitForSync) throws ArangoException
ArangoExceptionpublic <T> DocumentEntity<T> createDocument(String collectionName, Object value, Boolean createCollection, Boolean waitForSync) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> createDocument(long collectionId, String documentKey, Object value, Boolean createCollection, Boolean waitForSync) throws ArangoException
ArangoExceptionpublic <T> DocumentEntity<T> createDocument(String collectionName, String documentKey, Object value, Boolean createCollection, Boolean waitForSync) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> replaceDocument(long collectionId, long documentId, Object value) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> replaceDocument(String collectionName, long documentId, Object value) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> replaceDocument(long collectionId, String documentKey, Object value) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> replaceDocument(String collectionName, String documentKey, Object value) throws ArangoException
ArangoExceptionpublic <T> DocumentEntity<T> replaceDocument(String documentHandle, Object value) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> replaceDocument(long collectionId, long documentId, Object value, Long rev, Policy policy, Boolean waitForSync) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> replaceDocument(String collectionName, long documentId, Object value, Long rev, Policy policy, Boolean waitForSync) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> replaceDocument(long collectionId, String documentKey, Object value, Long rev, Policy policy, Boolean waitForSync) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> replaceDocument(String collectionName, String documentKey, Object value, Long rev, Policy policy, Boolean waitForSync) throws ArangoException
ArangoExceptionpublic <T> DocumentEntity<T> replaceDocument(String documentHandle, Object value, Long rev, Policy policy, Boolean waitForSync) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> updateDocument(long collectionId, long documentId, Object value) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> updateDocument(String collectionName, long documentId, Object value) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> updateDocument(long collectionId, String documentKey, Object value) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> updateDocument(String collectionName, String documentKey, Object value) throws ArangoException
ArangoExceptionpublic <T> DocumentEntity<T> updateDocument(String documentHandle, Object value) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> updateDocument(long collectionId, long documentId, Object value, Boolean keepNull) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> updateDocument(String collectionName, long documentId, Object value, Boolean keepNull) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> updateDocument(long collectionId, String documentKey, Object value, Boolean keepNull) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> updateDocument(String collectionName, String documentKey, Object value, Boolean keepNull) throws ArangoException
ArangoExceptionpublic <T> DocumentEntity<T> updateDocument(String documentHandle, Object value, Boolean keepNull) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> updateDocument(long collectionId, long documentId, Object value, Long rev, Policy policy, Boolean waitForSync, Boolean keepNull) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> updateDocument(String collectionName, long documentId, Object value, Long rev, Policy policy, Boolean waitForSync, Boolean keepNull) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> updateDocument(long collectionId, String documentKey, Object value, Long rev, Policy policy, Boolean waitForSync, Boolean keepNull) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> updateDocument(String collectionName, String documentKey, Object value, Long rev, Policy policy, Boolean waitForSync, Boolean keepNull) throws ArangoException
ArangoExceptionpublic <T> DocumentEntity<T> updateDocument(String documentHandle, Object value, Long rev, Policy policy, Boolean waitForSync, Boolean keepNull) throws ArangoException
ArangoExceptionpublic List<String> getDocuments(long collectionId) throws ArangoException
ArangoExceptionpublic List<String> getDocuments(String collectionName) throws ArangoException
ArangoExceptionpublic List<String> getDocuments(long collectionId, boolean handleConvert) throws ArangoException
ArangoExceptionpublic List<String> getDocuments(String collectionName, boolean handleConvert) throws ArangoException
ArangoExceptionpublic long checkDocument(long collectionId,
long documentId)
throws ArangoException
ArangoExceptionpublic long checkDocument(String collectionName, long documentId) throws ArangoException
ArangoExceptionpublic long checkDocument(long collectionId,
String documentKey)
throws ArangoException
ArangoExceptionpublic long checkDocument(String collectionName, String documentKey) throws ArangoException
ArangoExceptionpublic long checkDocument(String documentHandle) throws ArangoException
ArangoExceptionpublic <T> DocumentEntity<T> getDocument(long collectionId, long documentId, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> DocumentEntity<T> getDocument(String collectionName, long documentId, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> DocumentEntity<T> getDocument(long collectionId, String documentKey, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> DocumentEntity<T> getDocument(String collectionName, String documentKey, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> DocumentEntity<T> getDocument(String documentHandle, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> DocumentEntity<T> getDocument(String documentHandle, Class<?> clazz, Long ifNoneMatchRevision, Long ifMatchRevision) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> deleteDocument(long collectionId, long documentId) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> deleteDocument(String collectionName, long documentId) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> deleteDocument(long collectionId, String documentKey) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> deleteDocument(String collectionName, String documentKey) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> deleteDocument(String documentHandle) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> deleteDocument(long collectionId, long documentId, Long rev, Policy policy) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> deleteDocument(String collectionName, long documentId, Long rev, Policy policy) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> deleteDocument(long collectionId, String documentKey, Long rev, Policy policy) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> deleteDocument(String collectionName, String documentKey, Long rev, Policy policy) throws ArangoException
ArangoExceptionpublic DocumentEntity<?> deleteDocument(String documentHandle, Long rev, Policy policy) throws ArangoException
ArangoExceptionpublic CursorEntity<?> validateQuery(String query) throws ArangoException
ArangoExceptionpublic <T> CursorEntity<T> executeQuery(String query, Map<String,Object> bindVars, Class<T> clazz, Boolean calcCount, Integer batchSize) throws ArangoException
ArangoExceptionpublic <T> CursorEntity<T> continueQuery(long cursorId, Class<?>... clazz) throws ArangoException
ArangoExceptionpublic DefaultEntity finishQuery(long cursorId) throws ArangoException
ArangoExceptionpublic <T> CursorResultSet<T> executeQueryWithResultSet(String query, Map<String,Object> bindVars, Class<T> clazz, Boolean calcCount, Integer batchSize) throws ArangoException
ArangoExceptionpublic IndexEntity createIndex(long collectionId, IndexType type, boolean unique, String... fields) throws ArangoException
ArangoExceptionpublic IndexEntity createIndex(String collectionName, IndexType type, boolean unique, String... fields) throws ArangoException
ArangoExceptionpublic IndexEntity createHashIndex(String collectionName, boolean unique, String... fields) throws ArangoException
ArangoExceptionpublic IndexEntity createGeoIndex(String collectionName, boolean unique, String... fields) throws ArangoException
ArangoExceptionpublic IndexEntity createSkipListIndex(String collectionName, boolean unique, String... fields) throws ArangoException
ArangoExceptionpublic IndexEntity createCappedIndex(long collectionId, int size) throws ArangoException
ArangoExceptionpublic IndexEntity createCappedIndex(String collectionName, int size) throws ArangoException
ArangoExceptionpublic IndexEntity createFulltextIndex(long collectionId, String... fields) throws ArangoException
ArangoExceptionpublic IndexEntity createFulltextIndex(String collectionName, String... fields) throws ArangoException
ArangoExceptionpublic IndexEntity createFulltextIndex(long collectionId, Integer minLength, String... fields) throws ArangoException
ArangoExceptionpublic IndexEntity createFulltextIndex(String collectionName, Integer minLength, String... fields) throws ArangoException
ArangoExceptionpublic IndexEntity deleteIndex(String indexHandle) throws ArangoException
ArangoExceptionpublic IndexEntity getIndex(String indexHandle) throws ArangoException
ArangoExceptionpublic IndexesEntity getIndexes(long collectionId) throws ArangoException
ArangoExceptionpublic IndexesEntity getIndexes(String collectionName) throws ArangoException
ArangoExceptionpublic AdminLogEntity getServerLog(Integer logLevel, Boolean logLevelUpTo, Integer start, Integer size, Integer offset, Boolean sortAsc, String text) throws ArangoException
ArangoExceptionpublic StatisticsEntity getStatistics() throws ArangoException
ArangoExceptionpublic StatisticsDescriptionEntity getStatisticsDescription() throws ArangoException
ArangoExceptionpublic ArangoVersion getVersion() throws ArangoException
ArangoExceptionpublic ArangoUnixTime getTime() throws ArangoException
ArangoExceptionpublic DefaultEntity reloadRouting() throws ArangoException
ArangoExceptionpublic DefaultEntity executeScript(String jsCode) throws ArangoException
ArangoExceptionpublic <T> CursorEntity<T> executeSimpleByExample(String collectionName, Map<String,Object> example, int skip, int limit, Class<T> clazz) throws ArangoException
ArangoExceptionpublic <T> CursorResultSet<T> executeSimpleByExampleWithResusltSet(String collectionName, Map<String,Object> example, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> CursorEntity<DocumentEntity<T>> executeSimpleByExampleWithDocument(String collectionName, Map<String,Object> example, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> CursorResultSet<DocumentEntity<T>> executeSimpleByExampleWithDocumentResusltSet(String collectionName, Map<String,Object> example, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> CursorEntity<T> executeSimpleAll(String collectionName, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> CursorResultSet<T> executeSimpleAllWithResultSet(String collectionName, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> CursorEntity<DocumentEntity<T>> executeSimpleAllWithDocument(String collectionName, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> CursorResultSet<DocumentEntity<T>> executeSimpleAllWithDocumentResultSet(String collectionName, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> ScalarExampleEntity<T> executeSimpleFirstExample(String collectionName, Map<String,Object> example, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> ScalarExampleEntity<T> executeSimpleAny(String collectionName, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> CursorEntity<T> executeSimpleRange(String collectionName, String attribute, Object left, Object right, Boolean closed, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> CursorResultSet<T> executeSimpleRangeWithResultSet(String collectionName, String attribute, Object left, Object right, Boolean closed, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> CursorEntity<DocumentEntity<T>> executeSimpleRangeWithDocument(String collectionName, String attribute, Object left, Object right, Boolean closed, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> CursorResultSet<DocumentEntity<T>> executeSimpleRangeWithDocumentResultSet(String collectionName, String attribute, Object left, Object right, Boolean closed, int skip, int limit, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> CursorEntity<T> executeSimpleFulltext(String collectionName, String attribute, String query, int skip, int limit, String index, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> CursorResultSet<T> executeSimpleFulltextWithResultSet(String collectionName, String attribute, String query, int skip, int limit, String index, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> CursorEntity<DocumentEntity<T>> executeSimpleFulltextWithDocument(String collectionName, String attribute, String query, int skip, int limit, String index, Class<?> clazz) throws ArangoException
ArangoExceptionpublic <T> CursorResultSet<DocumentEntity<T>> executeSimpleFulltextWithDocumentResultSet(String collectionName, String attribute, String query, int skip, int limit, String index, Class<?> clazz) throws ArangoException
ArangoExceptionpublic SimpleByResultEntity executeSimpleRemoveByExample(String collectionName, Map<String,Object> example, Boolean waitForSync, Integer limit) throws ArangoException
ArangoExceptionpublic SimpleByResultEntity executeSimpleReplaceByExample(String collectionName, Map<String,Object> example, Map<String,Object> newValue, Boolean waitForSync, Integer limit) throws ArangoException
ArangoExceptionpublic SimpleByResultEntity executeSimpleUpdateByExample(String collectionName, Map<String,Object> example, Map<String,Object> newValue, Boolean keepNull, Boolean waitForSync, Integer limit) throws ArangoException
ArangoExceptionpublic <T> DocumentResultEntity<T> executeSimpleFirst(String collectionName, Integer count, Class<?> clazz) throws ArangoException
collectionName - count - clazz - ArangoExceptionpublic <T> DocumentResultEntity<T> executeSimpleLast(String collectionName, Integer count, Class<?> clazz) throws ArangoException
collectionName - count - clazz - ArangoExceptionpublic DefaultEntity createUser(String username, String passwd, Boolean active, Map<String,Object> extra) throws ArangoException
ArangoExceptionpublic DefaultEntity replaceUser(String username, String passwd, Boolean active, Map<String,Object> extra) throws ArangoException
ArangoExceptionpublic DefaultEntity updateUser(String username, String passwd, Boolean active, Map<String,Object> extra) throws ArangoException
ArangoExceptionpublic DefaultEntity deleteUser(String username) throws ArangoException
ArangoExceptionpublic UserEntity getUser(String username) throws ArangoException
ArangoExceptionpublic List<DocumentEntity<UserEntity>> getUsersDocument() throws ArangoException
ArangoExceptionpublic List<UserEntity> getUsers() throws ArangoException
ArangoExceptionpublic ImportResultEntity importDocuments(String collection, Boolean createCollection, Collection<?> values) throws ArangoException
ArangoExceptionpublic ImportResultEntity importDocumentsByHeaderValues(String collection, Boolean createCollection, Collection<? extends Collection<?>> headerValues) throws ArangoException
ArangoExceptionpublic DatabaseEntity getCurrentDatabase() throws ArangoException
ArangoExceptionHttpDatabaseCurrentpublic StringsResultEntity getDatabases() throws ArangoException
ArangoException://www.arangodb.com/manuals/current/HttpDatabase.html#HttpDatabaseList2public StringsResultEntity getDatabases(boolean currentUserAccessableOnly) throws ArangoException
currentUserAccessableOnly - ArangoException://www.arangodb.com/manuals/current/HttpDatabase.html#HttpDatabaseListpublic StringsResultEntity getDatabases(String username, String password) throws ArangoException
username - password - ArangoExceptionpublic BooleanResultEntity createDatabase(String database, UserEntity... users) throws ArangoException
database - users - ArangoException://www.arangodb.com/manuals/current/HttpDatabase.html#HttpDatabaseCreatepublic BooleanResultEntity deleteDatabase(String database) throws ArangoException
database - ArangoException://www.arangodb.com/manuals/current/HttpDatabase.html#HttpDatabaseDeletepublic BooleanResultEntity createEndpoint(String endpoint, String... databases) throws ArangoException
endpoint - databases - ArangoExceptionpublic List<Endpoint> getEndpoints() throws ArangoException
ArangoExceptionpublic BooleanResultEntity deleteEndpoint(String endpoint) throws ArangoException
endpoint - ArangoExceptionpublic ReplicationInventoryEntity getReplicationInventory() throws ArangoException
ArangoExceptionpublic ReplicationInventoryEntity getReplicationInventory(boolean includeSystem) throws ArangoException
includeSystem - ArangoExceptionpublic <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 - ArangoExceptionpublic ReplicationSyncEntity syncReplication(String endpoint, String database, String username, String password, RestrictType restrictType, String... restrictCollections) throws ArangoException
endpoint - database - username - password - restrictType - restrictCollections - ArangoExceptionpublic String getReplicationServerId() throws ArangoException
ArangoExceptionpublic boolean startReplicationLogger()
throws ArangoException
ArangoExceptionpublic boolean stopReplicationLogger()
throws ArangoException
ArangoExceptionpublic ReplicationLoggerStateEntity getReplicationLoggerState() throws ArangoException
ArangoExceptionpublic ReplicationLoggerConfigEntity getReplicationLoggerConfig() throws ArangoException
ArangoExceptionpublic ReplicationLoggerConfigEntity setReplicationLoggerConfig(Boolean autoStart, Boolean logRemoteChanges, Long maxEvents, Long maxEventsSize) throws ArangoException
autoStart - logRemoteChanges - maxEvents - maxEventsSize - ArangoExceptionpublic ReplicationApplierConfigEntity getReplicationApplierConfig() throws ArangoException
ArangoExceptionpublic 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 - ArangoExceptionpublic ReplicationApplierConfigEntity setReplicationApplierConfig(ReplicationApplierConfigEntity param) throws ArangoException
param - ArangoExceptionpublic ReplicationApplierStateEntity startReplicationApplier(Long from) throws ArangoException
from - ArangoExceptionpublic ReplicationApplierStateEntity stopReplicationApplier() throws ArangoException
ArangoExceptionpublic ReplicationApplierStateEntity getReplicationApplierState() throws ArangoException
ArangoExceptionpublic GraphsEntity getGraphs() throws ArangoException
ArangoExceptionpublic List<String> getGraphList() throws ArangoException
ArangoExceptionpublic GraphEntity createGraph(String graphName, List<EdgeDefinitionEntity> edgeDefinitions, List<String> orphanCollections, Boolean waitForSync) throws ArangoException
graphName - edgeDefinitions - orphanCollections - waitForSync - ArangoExceptionpublic GraphEntity createGraph(String graphName, Boolean waitForSync) throws ArangoException
graphName - waitForSync - ArangoExceptionpublic GraphEntity getGraph(String graphName) throws ArangoException
graphName - ArangoExceptionpublic DeletedEntity deleteGraph(String graphName) throws ArangoException
graphName - ArangoExceptionpublic void deleteGraph(String graphName, Boolean dropCollections) throws ArangoException
graphName - dropCollections - ArangoExceptionpublic List<String> graphGetVertexCollections(String graphName) throws ArangoException
graphName - ArangoExceptionpublic DeletedEntity graphDeleteVertexCollection(String graphName, String collectionName, Boolean dropCollection) throws ArangoException
graphName - collectionName - dropCollection - ArangoExceptionpublic GraphEntity graphCreateVertexCollection(String graphName, String collectionName) throws ArangoException
graphName - collectionName - ArangoExceptionpublic List<String> graphGetEdgeCollections(String graphName) throws ArangoException
graphName - ArangoExceptionpublic GraphEntity graphCreateEdgeDefinition(String graphName, EdgeDefinitionEntity edgeDefinition) throws ArangoException
graphName - edgeDefinition - ArangoExceptionpublic GraphEntity graphReplaceEdgeDefinition(String graphName, String edgeCollectionName, EdgeDefinitionEntity edgeDefinition) throws ArangoException
graphName - edgeCollectionName - edgeDefinition - ArangoExceptionpublic GraphEntity graphDeleteEdgeDefinition(String graphName, String edgeCollectionName, Boolean dropCollection) throws ArangoException
graphName - edgeCollectionName - ArangoExceptionpublic <T> DocumentEntity<T> graphCreateVertex(String graphName, String collectionName, T vertex, Boolean waitForSync) throws ArangoException
graphName - vertex - waitForSync - ArangoExceptionpublic <T> DocumentEntity<T> graphGetVertex(String graphName, String collectionName, String key, Class<?> clazz) throws ArangoException
graphName - collectionName - key - clazz - ArangoExceptionpublic <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 - ArangoExceptionpublic DeletedEntity graphDeleteVertex(String graphName, String collectionName, String key) throws ArangoException
graphName - collectionName - key - ArangoExceptionpublic DeletedEntity graphDeleteVertex(String graphName, String collectionName, String key, Boolean waitForSync) throws ArangoException
graphName - collectionName - key - waitForSync - ArangoExceptionpublic DeletedEntity graphDeleteVertex(String graphName, String collectionName, String key, Boolean waitForSync, Long rev, Long ifMatchRevision) throws ArangoException
graphName - collectionName - key - waitForSync - rev - ifMatchRevision - ArangoExceptionpublic <T> DocumentEntity<T> graphReplaceVertex(String graphName, String collectionName, String key, Object vertex) throws ArangoException
graphName - collectionName - key - vertex - ArangoExceptionpublic <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 - ArangoExceptionpublic <T> DocumentEntity<T> graphUpdateVertex(String graphName, String collectionName, String key, Object vertex, Boolean keepNull) throws ArangoException
graphName - collectionName - key - vertex - keepNull - ArangoExceptionpublic <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 - ArangoExceptionpublic <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 - ArangoExceptionpublic <T> EdgeEntity<T> graphCreateEdge(String graphName, String edgeCollectionName, String key, String fromHandle, String toHandle) throws ArangoException
graphName - edgeCollectionName - key - fromHandle - toHandle - ArangoExceptionpublic <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 - ArangoExceptionpublic <T> EdgeEntity<T> graphGetEdge(String graphName, String edgeCollectionName, String key, Class<?> clazz) throws ArangoException
graphName - edgeCollectionName - key - clazz - ArangoExceptionpublic DeletedEntity graphDeleteEdge(String graphName, String edgeCollectionName, String key) throws ArangoException
graphName - edgeCollectionName - key - ArangoExceptionpublic DeletedEntity graphDeleteEdge(String graphName, String edgeCollectionName, String key, Boolean waitForSync) throws ArangoException
graphName - edgeCollectionName - key - waitForSync - ArangoExceptionpublic DeletedEntity graphDeleteEdge(String graphName, String edgeCollectionName, String key, Boolean waitForSync, Long rev, Long ifMatchRevision) throws ArangoException
graphName - edgeCollectionName - key - waitForSync - rev - ifMatchRevision - ArangoExceptionpublic <T> EdgeEntity<T> graphReplaceEdge(String graphName, String edgeCollectionName, String key, Object value) throws ArangoException
graphName - edgeCollectionName - key - value - ArangoExceptionpublic <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 - ArangoExceptionpublic <T> EdgeEntity<T> graphUpdateEdge(String graphName, String edgeCollectionName, String key, Object value, Boolean keepNull) throws ArangoException
graphName - edgeCollectionName - key - value - keepNull - ArangoExceptionpublic <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 - ArangoExceptionpublic CursorEntity<PlainEdgeEntity> graphGetEdges(String graphName) throws ArangoException
graphName - ArangoExceptionpublic <T> CursorEntity<T> graphGetEdges(String graphName, Class<T> clazz, String vertexDocumentHandle) throws ArangoException
graphName - clazz - vertexDocumentHandle - ArangoExceptionpublic <T,S> CursorEntity<T> graphGetEdgesByExampleObject(String graphName, Class<T> clazzT, S vertexExample) throws ArangoException
graphName - clazzT - vertexExample - ArangoExceptionpublic <T> CursorEntity<T> graphGetEdgesByExampleMap(String graphName, Class<T> clazzT, Map<String,Object> vertexExample) throws ArangoException
graphName - clazzT - vertexExample - ArangoExceptionpublic DefaultEntity createAqlFunction(String name, String code) throws ArangoException
ArangoExceptionpublic AqlFunctionsEntity getAqlFunctions(String namespace) throws ArangoException
ArangoExceptionpublic DefaultEntity deleteAqlFunction(String name, boolean isNameSpace) throws ArangoException
ArangoExceptionpublic TransactionEntity createTransaction(String action)
public <T> T executeTransaction(TransactionEntity transactionEntity, Class<T> clazz) throws ArangoException
ArangoExceptionCopyright © 2012–2014 ArangoDB GmbH. All rights reserved.