public class ArangoSerializerImpl extends Object implements ArangoSerializer
ArangoSerializer.Options| Constructor and Description |
|---|
ArangoSerializerImpl(com.arangodb.velocypack.VPack vpacker,
com.arangodb.velocypack.VPack vpackerNull,
com.arangodb.velocypack.VPackParser vpackParser) |
| Modifier and Type | Method and Description |
|---|---|
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 ArangoSerializerImpl(com.arangodb.velocypack.VPack vpacker,
com.arangodb.velocypack.VPack vpackerNull,
com.arangodb.velocypack.VPackParser vpackParser)
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 VelocyPackArangoDBExceptionCopyright © 2016–2018 ArangoDB GmbH. All rights reserved.