org.springframework.data.neo4j.support.conversion
Class EntityResultConverter<T,R>

java.lang.Object
  extended by org.springframework.data.neo4j.conversion.DefaultConverter<T,R>
      extended by org.springframework.data.neo4j.support.conversion.EntityResultConverter<T,R>
All Implemented Interfaces:
ResultConverter<T,R>, Neo4jTemplateAware<EntityResultConverter<T,R>>

public class EntityResultConverter<T,R>
extends DefaultConverter<T,R>
implements Neo4jTemplateAware<EntityResultConverter<T,R>>

Since:
28.06.11
Author:
mh

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.springframework.data.neo4j.conversion.ResultConverter
ResultConverter.ResultConverterAdapter<T,R>
 
Constructor Summary
EntityResultConverter(org.springframework.core.convert.ConversionService conversionService)
           
EntityResultConverter(org.springframework.core.convert.ConversionService conversionService, Neo4jTemplate template)
           
 
Method Summary
 R convert(Object value, Class type, MappingPolicy mappingPolicy)
           
protected  Object doConvert(Object value, Class<?> sourceType, Class targetType, MappingPolicy mappingPolicy)
           
 R extractMapResult(Object value, Class returnType, MappingPolicy mappingPolicy)
           
 EntityResultConverter<T,R> with(Neo4jTemplate template)
           
 
Methods inherited from class org.springframework.data.neo4j.conversion.DefaultConverter
convert, extractValue, toNode, toPath, toRelationship
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EntityResultConverter

public EntityResultConverter(org.springframework.core.convert.ConversionService conversionService)

EntityResultConverter

public EntityResultConverter(org.springframework.core.convert.ConversionService conversionService,
                             Neo4jTemplate template)
Method Detail

with

public EntityResultConverter<T,R> with(Neo4jTemplate template)
Specified by:
with in interface Neo4jTemplateAware<EntityResultConverter<T,R>>

doConvert

protected Object doConvert(Object value,
                           Class<?> sourceType,
                           Class targetType,
                           MappingPolicy mappingPolicy)
Overrides:
doConvert in class DefaultConverter<T,R>

extractMapResult

public R extractMapResult(Object value,
                          Class returnType,
                          MappingPolicy mappingPolicy)

convert

public R convert(Object value,
                 Class type,
                 MappingPolicy mappingPolicy)
Specified by:
convert in interface ResultConverter<T,R>
Overrides:
convert in class DefaultConverter<T,R>


Copyright © 2012 SpringSource. All Rights Reserved.