public class ArangoUtilImpl extends Object implements ArangoSerialization
ArangoSerializer.Options| Constructor and Description |
|---|
ArangoUtilImpl(ArangoSerializer serializer,
ArangoDeserializer deserializer) |
| Modifier and Type | Method and Description |
|---|---|
<T> T |
deserialize(com.arangodb.velocypack.VPackSlice vpack,
Type type)
Deserialze a given VelocPack to an instance of a given type
|
com.arangodb.velocypack.VPackSlice |
serialize(Object entity)
Serialize a given Object to VelocyPack
|
com.arangodb.velocypack.VPackSlice |
serialize(Object entity,
ArangoSerializer.Options options)
Serialize a given Object to VelocyPack
|
com.arangodb.velocypack.VPackSlice |
serialize(Object entity,
boolean serializeNullValues)
Deprecated.
|
com.arangodb.velocypack.VPackSlice |
serialize(Object entity,
boolean serializeNullValues,
boolean stringAsJson)
Deprecated.
|
com.arangodb.velocypack.VPackSlice |
serialize(Object entity,
Type type)
Deprecated.
|
com.arangodb.velocypack.VPackSlice |
serialize(Object entity,
Type type,
boolean serializeNullValues)
Deprecated.
|
com.arangodb.velocypack.VPackSlice |
serialize(Object entity,
Type type,
Map<String,Object> additionalFields)
Deprecated.
|
public ArangoUtilImpl(ArangoSerializer serializer, ArangoDeserializer deserializer)
public com.arangodb.velocypack.VPackSlice serialize(Object entity) throws ArangoDBException
ArangoSerializerserialize in interface ArangoSerializerentity - The Object to serialize. If it is from type String, it will be handled as a Json.ArangoDBExceptionpublic com.arangodb.velocypack.VPackSlice serialize(Object entity, ArangoSerializer.Options options) throws ArangoDBException
ArangoSerializerserialize in interface ArangoSerializerentity - The Object to serialize. If it is from type String, it will be handled as a Json.options - Additional optionsArangoDBException@Deprecated public com.arangodb.velocypack.VPackSlice serialize(Object entity, boolean serializeNullValues) throws ArangoDBException
ArangoSerializerserialize in interface ArangoSerializerentity - 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.ArangoDBException@Deprecated public com.arangodb.velocypack.VPackSlice serialize(Object entity, boolean serializeNullValues, boolean stringAsJson) throws ArangoDBException
ArangoSerializerserialize in interface ArangoSerializerentity - 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.ArangoDBException@Deprecated public com.arangodb.velocypack.VPackSlice serialize(Object entity, Type type) throws ArangoDBException
ArangoSerializerserialize in interface ArangoSerializerentity - The Object to serializetype - The source type of the Object.ArangoDBException@Deprecated public com.arangodb.velocypack.VPackSlice serialize(Object entity, Type type, boolean serializeNullValues) throws ArangoDBException
ArangoSerializerserialize in interface ArangoSerializerentity - The Object to serializetype - The source type of the Object.serializeNullValues - Whether or not null values should be excluded from serialization.ArangoDBException@Deprecated public com.arangodb.velocypack.VPackSlice serialize(Object entity, Type type, Map<String,Object> additionalFields) throws ArangoDBException
ArangoSerializerserialize in interface ArangoSerializerentity - The Object to serializetype - The source type of the Object.additionalFields - Additional Key/Value pairs to include in the created VelocyPackArangoDBExceptionpublic <T> T deserialize(com.arangodb.velocypack.VPackSlice vpack,
Type type)
throws ArangoDBException
ArangoDeserializerdeserialize in interface ArangoDeserializervpack - The VelocyPack to deserializetype - The target type to deserialize to. Use String for raw Json.ArangoDBExceptionCopyright © 2016–2017 ArangoDB GmbH. All rights reserved.