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 CollectionCache |
collectionCache |
protected Communication<R,C> |
communication |
protected DocumentCache |
documentCache |
protected VPack |
vpacker |
protected VPack |
vpackerNull |
protected VPackParser |
vpackParser |
Modifier | Constructor and Description |
---|---|
protected |
ArangoExecutor(Communication<R,C> communication,
VPack vpacker,
VPack vpackerNull,
VPackParser vpackParser,
DocumentCache documentCache,
CollectionCache collectionCache) |
Modifier and Type | Method and Description |
---|---|
protected CollectionCache |
collectionCache() |
Communication<R,C> |
communication() |
protected String |
createPath(String... params) |
protected <T> T |
createResult(VPack vpack,
VPackParser vpackParser,
Type type,
Response response) |
protected <T> T |
deserialize(VPackSlice vpack,
Type type) |
DocumentCache |
documentCache() |
protected VPackSlice |
serialize(Object entity) |
protected VPackSlice |
serialize(Object entity,
boolean serializeNullValues) |
protected VPackSlice |
serialize(Object entity,
Type type) |
protected VPackSlice |
serialize(Object entity,
Type type,
boolean serializeNullValues) |
protected VPackSlice |
serialize(Object entity,
Type type,
Map<String,Object> additionalFields) |
protected <T> T |
unwrap(Future<T> future) |
void |
validateDocumentId(String id) |
void |
validateDocumentKey(String key) |
protected void |
validateName(String type,
String regex,
CharSequence name) |
protected VPack |
vpack() |
protected VPack |
vpackNull() |
protected VPackParser |
vpackParser() |
protected final Communication<R,C extends Connection> communication
protected final VPack vpacker
protected final VPack vpackerNull
protected final VPackParser vpackParser
protected final DocumentCache documentCache
protected final CollectionCache collectionCache
protected ArangoExecutor(Communication<R,C> communication, VPack vpacker, VPack vpackerNull, VPackParser vpackParser, DocumentCache documentCache, CollectionCache collectionCache)
public Communication<R,C> communication()
protected VPack vpack()
protected VPack vpackNull()
protected VPackParser vpackParser()
public DocumentCache documentCache()
protected CollectionCache collectionCache()
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 createResult(VPack vpack, VPackParser vpackParser, Type type, Response response)
protected <T> T deserialize(VPackSlice vpack, Type type) throws ArangoDBException
ArangoDBException
protected VPackSlice serialize(Object entity) throws ArangoDBException
ArangoDBException
protected VPackSlice serialize(Object entity, boolean serializeNullValues) throws ArangoDBException
ArangoDBException
protected VPackSlice serialize(Object entity, Type type) throws ArangoDBException
ArangoDBException
protected VPackSlice serialize(Object entity, Type type, boolean serializeNullValues) throws ArangoDBException
ArangoDBException
protected VPackSlice serialize(Object entity, Type type, Map<String,Object> additionalFields) throws ArangoDBException
ArangoDBException
protected <T> T unwrap(Future<T> future) throws ArangoDBException
ArangoDBException
Copyright © 2016 ArangoDB GmbH. All rights reserved.