Spring Data Neo4j

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>

public class EntityResultConverter<T,R>
extends DefaultConverter<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(ConversionService conversionService, EntityPersister entityPersister)
           
 
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)
           
 
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(ConversionService conversionService,
                             EntityPersister entityPersister)
Method Detail

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>

Spring Data Neo4j

Copyright © 2011 SpringSource. All Rights Reserved.