public abstract class ArangoExecutor<R,C extends Connection> extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ArangoExecutor.ResponseDeserializer<T> |
Modifier and Type | Field and Description |
---|---|
protected static String |
REGEX_ID |
protected static String |
REGEX_KEY |
Modifier | Constructor and Description |
---|---|
protected |
ArangoExecutor(Communication<R,C> communication,
ArangoUtil util,
DocumentCache documentCache,
CollectionCache collectionCache) |
Modifier and Type | Method and Description |
---|---|
protected CollectionCache |
collectionCache() |
Communication<R,C> |
communication() |
String |
createDocumentHandle(String collection,
String key) |
protected String |
createPath(String... params) |
protected <T> T |
createResult(Type type,
Response response) |
protected <T> T |
deserialize(com.arangodb.velocypack.VPackSlice vpack,
Type type) |
DocumentCache |
documentCache() |
protected com.arangodb.velocypack.VPackSlice |
serialize(Object entity) |
protected com.arangodb.velocypack.VPackSlice |
serialize(Object entity,
boolean serializeNullValues) |
protected com.arangodb.velocypack.VPackSlice |
serialize(Object entity,
Type type) |
protected com.arangodb.velocypack.VPackSlice |
serialize(Object entity,
Type type,
boolean serializeNullValues) |
protected com.arangodb.velocypack.VPackSlice |
serialize(Object entity,
Type type,
Map<String,Object> additionalFields) |
protected ArangoUtil |
util() |
void |
validateDocumentId(String id) |
void |
validateDocumentKey(String key) |
void |
validateIndexId(String id) |
protected void |
validateName(String type,
String regex,
CharSequence name) |
protected static final String REGEX_KEY
protected static final String REGEX_ID
protected ArangoExecutor(Communication<R,C> communication, ArangoUtil util, DocumentCache documentCache, CollectionCache collectionCache)
public Communication<R,C> communication()
public DocumentCache documentCache()
protected CollectionCache collectionCache()
protected ArangoUtil util()
public void validateIndexId(String id)
public void validateDocumentKey(String key) throws ArangoDBException
ArangoDBException
public void validateDocumentId(String id) throws ArangoDBException
ArangoDBException
protected void validateName(String type, String regex, CharSequence name) throws ArangoDBException
ArangoDBException
protected <T> T deserialize(com.arangodb.velocypack.VPackSlice vpack, Type type) throws ArangoDBException
ArangoDBException
protected com.arangodb.velocypack.VPackSlice serialize(Object entity) throws ArangoDBException
ArangoDBException
protected com.arangodb.velocypack.VPackSlice serialize(Object entity, boolean serializeNullValues) throws ArangoDBException
ArangoDBException
protected com.arangodb.velocypack.VPackSlice serialize(Object entity, Type type) throws ArangoDBException
ArangoDBException
protected com.arangodb.velocypack.VPackSlice serialize(Object entity, Type type, boolean serializeNullValues) throws ArangoDBException
ArangoDBException
protected com.arangodb.velocypack.VPackSlice serialize(Object entity, Type type, Map<String,Object> additionalFields) throws ArangoDBException
ArangoDBException
Copyright © 2016–2017 ArangoDB GmbH. All rights reserved.