public class InternalDocumentDriverImpl extends BaseArangoDriver implements InternalDocumentDriver
Modifier and Type | Field and Description |
---|---|
protected String |
baseUrl |
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,
Object value,
Boolean createCollection,
Boolean waitForSync) |
<T> DocumentEntity<T> |
createDocumentRaw(String database,
String collectionName,
String documentKey,
String rawJsonString,
Boolean createCollection,
Boolean waitForSync) |
DocumentEntity<?> |
deleteDocument(String database,
String documentHandle,
Long rev,
Policy policy) |
<T> DocumentEntity<T> |
getDocument(String database,
String documentHandle,
Class<?> clazz,
Long ifNoneMatchRevision,
Long ifMatchRevision) |
List<String> |
getDocuments(String database,
String collectionName,
boolean handleConvert) |
HttpManager |
getHttpManager() |
<T> DocumentEntity<T> |
replaceDocument(String database,
String documentHandle,
Object value,
Long rev,
Policy policy,
Boolean waitForSync) |
void |
setHttpManager(HttpManager httpManager) |
<T> DocumentEntity<T> |
updateDocument(String database,
String documentHandle,
Object value,
Long rev,
Policy policy,
Boolean waitForSync,
Boolean keepNull) |
createDocumentHandle, createDocumentHandle, createEndpointUrl, createEntity, createEntity, createEntity, createEntity, createEntityImpl, 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 String baseUrl
public <T> DocumentEntity<T> createDocument(String database, String collectionName, String documentKey, Object value, Boolean createCollection, Boolean waitForSync) throws ArangoException
createDocument
in interface InternalDocumentDriver
ArangoException
public <T> DocumentEntity<T> createDocumentRaw(String database, String collectionName, String documentKey, String rawJsonString, Boolean createCollection, Boolean waitForSync) throws ArangoException
createDocumentRaw
in interface InternalDocumentDriver
ArangoException
public <T> DocumentEntity<T> replaceDocument(String database, String documentHandle, Object value, Long rev, Policy policy, Boolean waitForSync) throws ArangoException
replaceDocument
in interface InternalDocumentDriver
ArangoException
public <T> DocumentEntity<T> updateDocument(String database, String documentHandle, Object value, Long rev, Policy policy, Boolean waitForSync, Boolean keepNull) throws ArangoException
updateDocument
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<?> clazz, Long ifNoneMatchRevision, Long ifMatchRevision) throws ArangoException
getDocument
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–2015 ArangoDB GmbH. All rights reserved.