public class ArangoJack extends Object implements ArangoSerialization
| Modifier and Type | Class and Description |
|---|---|
static interface |
ArangoJack.ConfigureFunction |
ArangoSerializer.Options| Constructor and Description |
|---|
ArangoJack() |
ArangoJack(com.arangodb.jackson.dataformat.velocypack.VPackMapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(ArangoJack.ConfigureFunction f) |
<T> T |
deserialize(com.arangodb.velocypack.VPackSlice vpack,
Type type)
Deserialize a given VelocyPack 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
|
public ArangoJack()
public ArangoJack(com.arangodb.jackson.dataformat.velocypack.VPackMapper mapper)
mapper - configured VPackMapper to use. A defensive copy is created and used.public void configure(ArangoJack.ConfigureFunction f)
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 optionsArangoDBExceptionpublic <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–2021 ArangoDB GmbH. All rights reserved.