public abstract class BaseArangoDriver extends Object
| Constructor and Description |
|---|
BaseArangoDriver() |
| Modifier and Type | Method and Description |
|---|---|
protected String |
createDocumentHandle(long collectionId,
String documentKey) |
protected String |
createDocumentHandle(String collectionName,
String documentKey) |
protected String |
createEndpointUrl(String database,
Object... paths) |
protected <T extends BaseEntity> |
createEntity(HttpResponseEntity res,
Class<T> clazz) |
protected <T extends BaseEntity> |
createEntity(HttpResponseEntity res,
Class<T> clazz,
Class<?>... pclazz) |
protected <T extends BaseEntity> |
createEntity(HttpResponseEntity res,
Class<T> clazz,
Class<?>[] pclazz,
boolean validate)
Creates an entity object
|
protected <T> T |
createEntity(String str,
Class<T> clazz,
Class<?>... pclazz) |
protected <T> T |
createEntityImpl(HttpResponseEntity res,
Class<T> type) |
protected void |
setKeyValueHeader(HttpResponseEntity res,
KeyValueEntity entity) |
protected void |
setStatusCode(HttpResponseEntity res,
BaseEntity entity) |
protected ReplicationDumpHeader |
toReplicationDumpHeader(HttpResponseEntity res) |
protected void |
validate(HttpResponseEntity res,
BaseEntity entity) |
protected void |
validateCollectionName(String name) |
protected void |
validateDatabaseName(String database,
boolean allowNull) |
protected void |
validateDocumentHandle(String documentHandle) |
protected String createDocumentHandle(String collectionName, String documentKey) throws ArangoException
ArangoExceptionprotected void validateCollectionName(String name) throws ArangoException
ArangoExceptionprotected void validateDocumentHandle(String documentHandle) throws ArangoException
ArangoExceptionprotected void validateDatabaseName(String database, boolean allowNull) throws ArangoException
database - allowNull - ArangoExceptionprotected void setKeyValueHeader(HttpResponseEntity res, KeyValueEntity entity) throws ArangoException
ArangoExceptionprotected ReplicationDumpHeader toReplicationDumpHeader(HttpResponseEntity res)
protected <T extends BaseEntity> T createEntity(HttpResponseEntity res, Class<T> clazz, Class<?>[] pclazz, boolean validate) throws ArangoException
res - the response of the databaseclazz - the class of the entity objectpclazz - the class of the object wrapped in the entity objectvalidate - true for validationArangoExceptionprotected <T> T createEntity(String str, Class<T> clazz, Class<?>... pclazz) throws ArangoException
ArangoExceptionprotected <T extends BaseEntity> T createEntity(HttpResponseEntity res, Class<T> clazz) throws ArangoException
ArangoExceptionprotected <T extends BaseEntity> T createEntity(HttpResponseEntity res, Class<T> clazz, Class<?>... pclazz) throws ArangoException
ArangoExceptionprotected void setStatusCode(HttpResponseEntity res, BaseEntity entity) throws ArangoException
ArangoExceptionprotected void validate(HttpResponseEntity res, BaseEntity entity) throws ArangoException
ArangoExceptionprotected <T> T createEntityImpl(HttpResponseEntity res, Class<T> type) throws ArangoException
ArangoExceptionprotected String createEndpointUrl(String database, Object... paths) throws ArangoException
ArangoExceptionCopyright © 2012–2015 ArangoDB GmbH. All rights reserved.