public class InternalDocumentDriverImpl extends BaseArangoDriver implements InternalDocumentDriver
| Modifier and Type | Field and Description |
|---|---|
protected AnnotationHandler |
annotationHandler |
protected static String |
COLLECTION |
protected ArangoConfigure |
configure |
protected HttpManager |
httpManager |
| Modifier and Type | Method and Description |
|---|---|
long |
checkDocument(String database,
String documentHandle) |
<T> DocumentEntity<T> |
createDocument(String database,
String collectionName,
String documentKey,
T value,
Boolean waitForSync) |
DocumentEntity<String> |
createDocumentRaw(String database,
String collectionName,
String rawJsonObjectString,
Boolean waitForSync) |
<T> EdgeEntity<T> |
createEdge(String database,
String collectionName,
String documentKey,
T value,
String fromHandle,
String toHandle,
Boolean waitForSync) |
DocumentEntity<?> |
deleteDocument(String database,
String documentHandle,
Long rev) |
<T> DocumentEntity<T> |
getDocument(String database,
String documentHandle,
Class<T> clazz,
Long ifNoneMatchRevision,
Long ifMatchRevision) |
String |
getDocumentRaw(String database,
String documentHandle,
Long ifNoneMatchRevision,
Long ifMatchRevision) |
List<String> |
getDocuments(String database,
String collectionName) |
HttpManager |
getHttpManager() |
<T> DocumentEntity<T> |
replaceDocument(String database,
String documentHandle,
T value,
Long rev,
Boolean waitForSync) |
DocumentEntity<String> |
replaceDocumentRaw(String database,
String documentHandle,
String rawJsonString,
Long rev,
Boolean waitForSync) |
void |
setHttpManager(HttpManager httpManager) |
<T> DocumentEntity<T> |
updateDocument(String database,
String documentHandle,
T value,
Long rev,
Boolean waitForSync,
Boolean keepNull) |
DocumentEntity<String> |
updateDocumentRaw(String database,
String documentHandle,
String rawJsonString,
Long rev,
Boolean waitForSync,
Boolean keepNull) |
createDocumentEndpointUrl, createDocumentHandle, createDocumentHandle, createEndpointUrl, createEndpointUrl, createEntity, createEntity, createEntity, createEntity, createEntityImpl, createGharialEndpointUrl, createIndexEndpointUrl, createJobEndpointUrl, createUserEndpointUrl, getJSONResponseText, setKeyValueHeader, setStatusCode, toReplicationDumpHeader, validate, validateCollectionName, validateDatabaseName, validateDocumentHandleclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetHttpManager, setHttpManagerprotected static final String COLLECTION
protected ArangoConfigure configure
protected HttpManager httpManager
protected AnnotationHandler annotationHandler
public <T> DocumentEntity<T> createDocument(String database, String collectionName, String documentKey, T value, Boolean waitForSync) throws ArangoException
createDocument in interface InternalDocumentDriverArangoExceptionpublic DocumentEntity<String> createDocumentRaw(String database, String collectionName, String rawJsonObjectString, Boolean waitForSync) throws ArangoException
createDocumentRaw in interface InternalDocumentDriverArangoExceptionpublic <T> DocumentEntity<T> replaceDocument(String database, String documentHandle, T value, Long rev, Boolean waitForSync) throws ArangoException
replaceDocument in interface InternalDocumentDriverArangoExceptionpublic DocumentEntity<String> replaceDocumentRaw(String database, String documentHandle, String rawJsonString, Long rev, Boolean waitForSync) throws ArangoException
replaceDocumentRaw in interface InternalDocumentDriverArangoExceptionpublic <T> DocumentEntity<T> updateDocument(String database, String documentHandle, T value, Long rev, Boolean waitForSync, Boolean keepNull) throws ArangoException
updateDocument in interface InternalDocumentDriverArangoExceptionpublic DocumentEntity<String> updateDocumentRaw(String database, String documentHandle, String rawJsonString, Long rev, Boolean waitForSync, Boolean keepNull) throws ArangoException
updateDocumentRaw in interface InternalDocumentDriverArangoExceptionpublic List<String> getDocuments(String database, String collectionName) throws ArangoException
getDocuments in interface InternalDocumentDriverArangoExceptionpublic long checkDocument(String database, String documentHandle) throws ArangoException
checkDocument in interface InternalDocumentDriverArangoExceptionpublic <T> DocumentEntity<T> getDocument(String database, String documentHandle, Class<T> clazz, Long ifNoneMatchRevision, Long ifMatchRevision) throws ArangoException
getDocument in interface InternalDocumentDriverArangoExceptionpublic String getDocumentRaw(String database, String documentHandle, Long ifNoneMatchRevision, Long ifMatchRevision) throws ArangoException
getDocumentRaw in interface InternalDocumentDriverArangoExceptionpublic DocumentEntity<?> deleteDocument(String database, String documentHandle, Long rev) throws ArangoException
deleteDocument in interface InternalDocumentDriverArangoExceptionpublic <T> EdgeEntity<T> createEdge(String database, String collectionName, String documentKey, T value, String fromHandle, String toHandle, Boolean waitForSync) throws ArangoException
createEdge in interface InternalDocumentDriverArangoExceptionpublic HttpManager getHttpManager()
getHttpManager in interface BaseDriverInterfacepublic void setHttpManager(HttpManager httpManager)
setHttpManager in interface BaseDriverInterfaceCopyright © 2012–2016 ArangoDB GmbH. All rights reserved.