public class DefaultArangoConverter extends Object implements ArangoConverter
Constructor and Description |
---|
DefaultArangoConverter(MappingContext<? extends ArangoPersistentEntity<?>,ArangoPersistentProperty> context,
CustomConversions conversions,
ResolverFactory resolverFactory,
ArangoTypeMapper typeMapper) |
Modifier and Type | Method and Description |
---|---|
String |
convertId(Object id) |
GenericConversionService |
getConversionService() |
MappingContext<? extends ArangoPersistentEntity<?>,ArangoPersistentProperty> |
getMappingContext() |
ArangoTypeMapper |
getTypeMapper() |
boolean |
isCollectionType(Class<?> type) |
boolean |
isEntityType(Class<?> type) |
<R> R |
read(Class<R> type,
com.arangodb.velocypack.VPackSlice source) |
void |
write(Object source,
com.arangodb.velocypack.VPackBuilder sink) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
write
public DefaultArangoConverter(MappingContext<? extends ArangoPersistentEntity<?>,ArangoPersistentProperty> context, CustomConversions conversions, ResolverFactory resolverFactory, ArangoTypeMapper typeMapper)
public MappingContext<? extends ArangoPersistentEntity<?>,ArangoPersistentProperty> getMappingContext()
getMappingContext
in interface ArangoConverter
public ArangoTypeMapper getTypeMapper()
getTypeMapper
in interface ArangoConverter
public <R> R read(Class<R> type, com.arangodb.velocypack.VPackSlice source)
read
in interface EntityReader<Object,com.arangodb.velocypack.VPackSlice>
public void write(Object source, com.arangodb.velocypack.VPackBuilder sink)
write
in interface EntityWriter<Object,com.arangodb.velocypack.VPackBuilder>
public boolean isCollectionType(Class<?> type)
isCollectionType
in interface ArangoConverter
public GenericConversionService getConversionService()
getConversionService
in interface ArangoConverter
public boolean isEntityType(Class<?> type)
isEntityType
in interface ArangoConverter
public String convertId(Object id)
convertId
in interface ArangoConverter
Copyright © 2017–2020 ArangoDB GmbH. All rights reserved.