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 baseUrl,
String database,
Object... paths) |
protected <T extends BaseEntity> |
createEntity(HttpResponseEntity res,
Class<? extends BaseEntity> clazz,
Class<?>... pclazz) |
protected <T extends BaseEntity> |
createEntity(HttpResponseEntity res,
Class<? extends BaseEntity> clazz,
Class<?>[] pclazz,
boolean validate)
HTTPレスポンスから指定した型へ変換する。 レスポンスがエラーであるかを確認して、エラーの場合は例外を投げる。
|
protected <T extends BaseEntity> |
createEntity(HttpResponseEntity res,
Class<T> clazz) |
protected <T> T |
createEntity(String str,
Class<T> clazz,
Class<?>... pclazz) |
protected <T> T |
createEntityImpl(HttpResponseEntity res,
Class<?> 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
ArangoException
protected void validateCollectionName(String name) throws ArangoException
ArangoException
protected void validateDocumentHandle(String documentHandle) throws ArangoException
ArangoException
protected void validateDatabaseName(String database, boolean allowNull) throws ArangoException
database
- allowNull
- ArangoException
://www.arangodb.com/manuals/current/NamingConventions.html#DatabaseNames
protected void setKeyValueHeader(HttpResponseEntity res, KeyValueEntity entity) throws ArangoException
ArangoException
protected ReplicationDumpHeader toReplicationDumpHeader(HttpResponseEntity res)
protected <T extends BaseEntity> T createEntity(HttpResponseEntity res, Class<? extends BaseEntity> clazz, Class<?>[] pclazz, boolean validate) throws ArangoException
res
- type
- validate
- ArangoException
protected <T> T createEntity(String str, Class<T> clazz, Class<?>... pclazz) throws ArangoException
ArangoException
protected <T extends BaseEntity> T createEntity(HttpResponseEntity res, Class<T> clazz) throws ArangoException
ArangoException
protected <T extends BaseEntity> T createEntity(HttpResponseEntity res, Class<? extends BaseEntity> clazz, Class<?>... pclazz) throws ArangoException
ArangoException
protected void setStatusCode(HttpResponseEntity res, BaseEntity entity) throws ArangoException
ArangoException
protected void validate(HttpResponseEntity res, BaseEntity entity) throws ArangoException
ArangoException
protected <T> T createEntityImpl(HttpResponseEntity res, Class<?> type) throws ArangoException
ArangoException
protected String createEndpointUrl(String baseUrl, String database, Object... paths) throws ArangoException
ArangoException
Copyright © 2012–2015 ArangoDB GmbH. All rights reserved.