Spring Data Neo4j

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

java.lang.Object
  extended by org.springframework.data.neo4j.conversion.DefaultConverter<T,R>
All Implemented Interfaces:
ResultConverter<T,R>
Direct Known Subclasses:
ConversionServiceQueryResultConverter, EntityResultConverter

public class DefaultConverter<T,R>
extends Object
implements ResultConverter<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
DefaultConverter()
           
 
Method Summary
 R convert(Object value, Class type)
           
protected  Object doConvert(Object value, Class<?> sourceType, Class type)
           
protected  Object extractValue(Object value)
           
protected  org.neo4j.graphdb.Node toNode(Object value, Class<?> sourceType)
           
protected  org.neo4j.graphdb.Path toPath(Object value, Class<?> sourceType)
           
protected  org.neo4j.graphdb.Relationship toRelationship(Object value, Class<?> sourceType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultConverter

public DefaultConverter()
Method Detail

convert

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

extractValue

protected Object extractValue(Object value)

doConvert

protected Object doConvert(Object value,
                           Class<?> sourceType,
                           Class type)

toPath

protected org.neo4j.graphdb.Path toPath(Object value,
                                        Class<?> sourceType)

toRelationship

protected org.neo4j.graphdb.Relationship toRelationship(Object value,
                                                        Class<?> sourceType)

toNode

protected org.neo4j.graphdb.Node toNode(Object value,
                                        Class<?> sourceType)

Spring Data Neo4j

Copyright © 2011 SpringSource. All Rights Reserved.