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

Nested Class Summary
 
Nested classes/interfaces inherited from interface org.springframework.data.neo4j.conversion.ResultConverter
ResultConverter.ResultConverterAdapter<T,R>
 
Constructor Summary
DefaultConverter()
           
 
Method Summary
 R convert(Object value, Class type)
           
 R convert(Object value, Class type, MappingPolicy mappingPolicy)
           
protected  Object doConvert(Object value, Class<?> sourceType, Class type, MappingPolicy mappingPolicy)
           
protected  Object extractValue(Object value)
           
 org.neo4j.graphdb.Node toNode(Object value, Class<?> sourceType)
           
 org.neo4j.graphdb.Path toPath(Object value, Class<?> sourceType)
           
 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>

convert

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

extractValue

protected Object extractValue(Object value)

doConvert

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

toPath

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

toRelationship

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

toNode

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

Spring Data Neo4j

Copyright © 2013 SpringSource. All Rights Reserved.