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

Field Summary
 
Fields inherited from interface org.springframework.data.neo4j.conversion.ResultConverter
NO_OP_RESULT_CONVERTER
 
Constructor Summary
EntityResultConverter(ConversionService conversionService, EntityPersister entityPersister)
           
 
Method Summary
 R convert(Object value, Class type)
           
protected  Object doConvert(Object value, Class<?> sourceType, Class targetType)
           
 R extractMapResult(Object value, Class returnType)
           
 Object transformScalaIterableToJavaIterable(Object scalaIterable, Class iterableLikeIface)
           
 
Methods inherited from class org.springframework.data.neo4j.conversion.DefaultConverter
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)
Overrides:
doConvert in class DefaultConverter<T,R>

extractMapResult

public R extractMapResult(Object value,
                          Class returnType)

convert

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

transformScalaIterableToJavaIterable

public Object transformScalaIterableToJavaIterable(Object scalaIterable,
                                                   Class iterableLikeIface)
                                            throws ClassNotFoundException,
                                                   NoSuchMethodException,
                                                   InvocationTargetException,
                                                   IllegalAccessException
Throws:
ClassNotFoundException
NoSuchMethodException
InvocationTargetException
IllegalAccessException

Spring Data Neo4j

Copyright © 2011 SpringSource. All Rights Reserved.