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
ArangoSerializer
serialize
in interface ArangoSerializer
entity
- The Object to serialize. If it is from type String, it will be handled as a Json.ArangoDBException
public com.arangodb.velocypack.VPackSlice serialize(Object entity, ArangoSerializer.Options options) throws ArangoDBException
ArangoSerializer
serialize
in interface ArangoSerializer
entity
- 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
ArangoSerializer
serialize
in interface ArangoSerializer
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.ArangoDBException
@Deprecated public com.arangodb.velocypack.VPackSlice serialize(Object entity, boolean serializeNullValues, boolean stringAsJson) throws ArangoDBException
ArangoSerializer
serialize
in interface ArangoSerializer
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.ArangoDBException
@Deprecated public com.arangodb.velocypack.VPackSlice serialize(Object entity, Type type) throws ArangoDBException
ArangoSerializer
serialize
in interface ArangoSerializer
entity
- 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
ArangoSerializer
serialize
in interface ArangoSerializer
entity
- 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
ArangoSerializer
serialize
in interface ArangoSerializer
entity
- The Object to serializetype
- The source type of the Object.additionalFields
- Additional Key/Value pairs to include in the created VelocyPackArangoDBException
public <T> T deserialize(com.arangodb.velocypack.VPackSlice vpack, Type type) throws ArangoDBException
ArangoDeserializer
deserialize
in interface ArangoDeserializer
vpack
- The VelocyPack to deserializetype
- The target type to deserialize to. Use String for raw Json.ArangoDBException
Copyright © 2016–2017 ArangoDB GmbH. All rights reserved.