public class EntityResultConverter<T,R> extends DefaultConverter<T,R> implements Neo4jTemplateAware<EntityResultConverter<T,R>>
ResultConverter.ResultConverterAdapter<T,R>
Constructor and Description |
---|
EntityResultConverter(ConversionService conversionService) |
EntityResultConverter(ConversionService conversionService,
Neo4jTemplate template) |
Modifier and Type | Method and Description |
---|---|
R |
convert(Object value,
Class type,
MappingPolicy mappingPolicy) |
protected Object |
doConvert(Object value,
Class<?> sourceType,
Class targetType,
MappingPolicy mappingPolicy) |
R |
extractPOJOResult(Object value,
Class returnType,
MappingPolicy mappingPolicy) |
R |
extractProxyBasedResult(Object value,
Class returnType,
MappingPolicy mappingPolicy) |
EntityResultConverter<T,R> |
with(Neo4jTemplate template) |
convert, extractValue, toNode, toPath, toRelationship
public EntityResultConverter(ConversionService conversionService)
public EntityResultConverter(ConversionService conversionService, Neo4jTemplate template)
public EntityResultConverter<T,R> with(Neo4jTemplate template)
with
in interface Neo4jTemplateAware<EntityResultConverter<T,R>>
protected Object doConvert(Object value, Class<?> sourceType, Class targetType, MappingPolicy mappingPolicy)
doConvert
in class DefaultConverter<T,R>
public R extractPOJOResult(Object value, Class returnType, MappingPolicy mappingPolicy)
public R extractProxyBasedResult(Object value, Class returnType, MappingPolicy mappingPolicy)
public R convert(Object value, Class type, MappingPolicy mappingPolicy)
convert
in interface ResultConverter<T,R>
convert
in class DefaultConverter<T,R>
Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.