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 |
---|---|
String |
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,
String rev) |
<T> DocumentEntity<T> |
getDocument(String database,
String documentHandle,
Class<T> clazz,
String ifNoneMatchRevision,
String ifMatchRevision) |
String |
getDocumentRaw(String database,
String documentHandle,
String ifNoneMatchRevision,
String ifMatchRevision) |
List<String> |
getDocuments(String database,
String collectionName) |
HttpManager |
getHttpManager() |
<T> DocumentEntity<T> |
replaceDocument(String database,
String documentHandle,
T value,
String rev,
Boolean waitForSync) |
DocumentEntity<String> |
replaceDocumentRaw(String database,
String documentHandle,
String rawJsonString,
String rev,
Boolean waitForSync) |
void |
setHttpManager(HttpManager httpManager) |
<T> DocumentEntity<T> |
updateDocument(String database,
String documentHandle,
T value,
String rev,
Boolean waitForSync,
Boolean keepNull) |
DocumentEntity<String> |
updateDocumentRaw(String database,
String documentHandle,
String rawJsonString,
String 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, validateDocumentHandle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getHttpManager, setHttpManager
protected 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 InternalDocumentDriver
ArangoException
public DocumentEntity<String> createDocumentRaw(String database, String collectionName, String rawJsonObjectString, Boolean waitForSync) throws ArangoException
createDocumentRaw
in interface InternalDocumentDriver
ArangoException
public <T> DocumentEntity<T> replaceDocument(String database, String documentHandle, T value, String rev, Boolean waitForSync) throws ArangoException
replaceDocument
in interface InternalDocumentDriver
ArangoException
public DocumentEntity<String> replaceDocumentRaw(String database, String documentHandle, String rawJsonString, String rev, Boolean waitForSync) throws ArangoException
replaceDocumentRaw
in interface InternalDocumentDriver
ArangoException
public <T> DocumentEntity<T> updateDocument(String database, String documentHandle, T value, String rev, Boolean waitForSync, Boolean keepNull) throws ArangoException
updateDocument
in interface InternalDocumentDriver
ArangoException
public DocumentEntity<String> updateDocumentRaw(String database, String documentHandle, String rawJsonString, String rev, Boolean waitForSync, Boolean keepNull) throws ArangoException
updateDocumentRaw
in interface InternalDocumentDriver
ArangoException
public List<String> getDocuments(String database, String collectionName) throws ArangoException
getDocuments
in interface InternalDocumentDriver
ArangoException
public String checkDocument(String database, String documentHandle) throws ArangoException
checkDocument
in interface InternalDocumentDriver
ArangoException
public <T> DocumentEntity<T> getDocument(String database, String documentHandle, Class<T> clazz, String ifNoneMatchRevision, String ifMatchRevision) throws ArangoException
getDocument
in interface InternalDocumentDriver
ArangoException
public String getDocumentRaw(String database, String documentHandle, String ifNoneMatchRevision, String ifMatchRevision) throws ArangoException
getDocumentRaw
in interface InternalDocumentDriver
ArangoException
public DocumentEntity<?> deleteDocument(String database, String documentHandle, String rev) throws ArangoException
deleteDocument
in interface InternalDocumentDriver
ArangoException
public <T> EdgeEntity<T> createEdge(String database, String collectionName, String documentKey, T value, String fromHandle, String toHandle, Boolean waitForSync) throws ArangoException
createEdge
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.