public class InternalDocumentDriverImpl extends BaseArangoDriver implements InternalDocumentDriver
Modifier and Type | Field and Description |
---|---|
protected AnnotationHandler |
annotationHandler |
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 createCollection,
Boolean waitForSync) |
DocumentEntity<String> |
createDocumentRaw(String database,
String collectionName,
String rawJsonObjectString,
Boolean createCollection,
Boolean waitForSync) |
DocumentEntity<?> |
deleteDocument(String database,
String documentHandle,
Long rev,
Policy policy) |
<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,
boolean handleConvert) |
HttpManager |
getHttpManager() |
<T> DocumentEntity<T> |
replaceDocument(String database,
String documentHandle,
T value,
Long rev,
Policy policy,
Boolean waitForSync) |
DocumentEntity<String> |
replaceDocumentRaw(String database,
String documentHandle,
String rawJsonString,
Long rev,
Policy policy,
Boolean waitForSync) |
void |
setHttpManager(HttpManager httpManager) |
<T> DocumentEntity<T> |
updateDocument(String database,
String documentHandle,
T value,
Long rev,
Policy policy,
Boolean waitForSync,
Boolean keepNull) |
DocumentEntity<String> |
updateDocumentRaw(String database,
String documentHandle,
String rawJsonString,
Long rev,
Policy policy,
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, validateDocumentHandle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHttpManager, setHttpManager
protected ArangoConfigure configure
protected HttpManager httpManager
protected AnnotationHandler annotationHandler
public <T> DocumentEntity<T> createDocument(String database, String collectionName, String documentKey, T value, Boolean createCollection, Boolean waitForSync) throws ArangoException
createDocument
in interface InternalDocumentDriver
ArangoException
public DocumentEntity<String> createDocumentRaw(String database, String collectionName, String rawJsonObjectString, Boolean createCollection, Boolean waitForSync) throws ArangoException
createDocumentRaw
in interface InternalDocumentDriver
ArangoException
public <T> DocumentEntity<T> replaceDocument(String database, String documentHandle, T value, Long rev, Policy policy, Boolean waitForSync) throws ArangoException
replaceDocument
in interface InternalDocumentDriver
ArangoException
public DocumentEntity<String> replaceDocumentRaw(String database, String documentHandle, String rawJsonString, Long rev, Policy policy, Boolean waitForSync) throws ArangoException
replaceDocumentRaw
in interface InternalDocumentDriver
ArangoException
public <T> DocumentEntity<T> updateDocument(String database, String documentHandle, T value, Long rev, Policy policy, Boolean waitForSync, Boolean keepNull) throws ArangoException
updateDocument
in interface InternalDocumentDriver
ArangoException
public DocumentEntity<String> updateDocumentRaw(String database, String documentHandle, String rawJsonString, Long rev, Policy policy, Boolean waitForSync, Boolean keepNull) throws ArangoException
updateDocumentRaw
in interface InternalDocumentDriver
ArangoException
public List<String> getDocuments(String database, String collectionName, boolean handleConvert) throws ArangoException
getDocuments
in interface InternalDocumentDriver
ArangoException
public long checkDocument(String database, String documentHandle) throws ArangoException
checkDocument
in interface InternalDocumentDriver
ArangoException
public <T> DocumentEntity<T> getDocument(String database, String documentHandle, Class<T> clazz, Long ifNoneMatchRevision, Long ifMatchRevision) throws ArangoException
getDocument
in interface InternalDocumentDriver
ArangoException
public String getDocumentRaw(String database, String documentHandle, Long ifNoneMatchRevision, Long ifMatchRevision) throws ArangoException
getDocumentRaw
in interface InternalDocumentDriver
ArangoException
public DocumentEntity<?> deleteDocument(String database, String documentHandle, Long rev, Policy policy) throws ArangoException
deleteDocument
in interface InternalDocumentDriver
ArangoException
public HttpManager getHttpManager()
getHttpManager
in interface BaseDriverInterface
public void setHttpManager(HttpManager httpManager)
setHttpManager
in interface BaseDriverInterface
Copyright © 2012–2016 ArangoDB GmbH. All rights reserved.