public class ArangoUtil extends Object
| Constructor and Description |
|---|
ArangoUtil(VPack vpacker,
VPack vpackerNull,
VPackParser vpackParser) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserialize(VPackSlice vpack,
Type type)
Deserialze a given VelocPack to an instance of a given type
|
VPackSlice |
serialize(Object entity)
Serialize a given Object to VelocyPack
|
VPackSlice |
serialize(Object entity,
boolean serializeNullValues)
Serialize a given Object to VelocyPack
|
VPackSlice |
serialize(Object entity,
Type type)
Serialize a given Object to VelocyPack.
|
VPackSlice |
serialize(Object entity,
Type type,
boolean serializeNullValues)
Serialize a given Object to VelocyPack.
|
VPackSlice |
serialize(Object entity,
Type type,
Map<String,Object> additionalFields)
Serialize a given Object to VelocyPack.
|
public ArangoUtil(VPack vpacker, VPack vpackerNull, VPackParser vpackParser)
public <T> T deserialize(VPackSlice vpack, Type type) throws ArangoDBException
vpack - The VelocyPack to deserializetype - The target type to deserialize to. Use String for raw Json.ArangoDBExceptionpublic VPackSlice serialize(Object entity) throws ArangoDBException
entity - The Object to serialize. If it is from type String, it will be handled as a Json.ArangoDBExceptionpublic VPackSlice serialize(Object entity, boolean serializeNullValues) throws ArangoDBException
entity - The Object to serialize. If it is from type String, it will be handled as a Json.serializeNullValues - Whether or not null values should be excluded from serialization.ArangoDBExceptionpublic VPackSlice serialize(Object entity, Type type) throws ArangoDBException
entity - The Object to serializetype - The source type of the Object.ArangoDBExceptionpublic VPackSlice serialize(Object entity, Type type, boolean serializeNullValues) throws ArangoDBException
entity - The Object to serializetype - The source type of the Object.serializeNullValues - Whether or not null values should be excluded from serialization.ArangoDBExceptionpublic VPackSlice serialize(Object entity, Type type, Map<String,Object> additionalFields) throws ArangoDBException
entity - The Object to serializetype - The source type of the Object.serializeNullValues - Whether or not null values should be excluded from serialization.additionalFields - Additional Key/Value pairs to include in the created VelocyPackArangoDBExceptionCopyright © 2016–2017 ArangoDB GmbH. All rights reserved.