Spring Data Neo4j

org.springframework.data.neo4j.support.mapping
Class Neo4jEntityConverterImpl<T,S extends org.neo4j.graphdb.PropertyContainer>

java.lang.Object
  extended by org.springframework.data.neo4j.support.mapping.Neo4jEntityConverterImpl<T,S>
All Implemented Interfaces:
org.springframework.data.convert.EntityConverter<Neo4jPersistentEntity<?>,Neo4jPersistentProperty,T,S>, org.springframework.data.convert.EntityReader<T,S>, org.springframework.data.convert.EntityWriter<T,S>, Neo4jEntityConverter<T,S>

public class Neo4jEntityConverterImpl<T,S extends org.neo4j.graphdb.PropertyContainer>
extends Object
implements Neo4jEntityConverter<T,S>

Since:
07.10.11
Author:
mh

Constructor Summary
Neo4jEntityConverterImpl(Neo4jMappingContext mappingContext, ConversionService conversionService, EntityStateHandler entityStateHandler, Neo4jEntityFetchHandler entityFetchHandler, EntityTools<S> entityTools)
           
 
Method Summary
 ConversionService getConversionService()
           
 org.springframework.data.mapping.context.MappingContext<? extends Neo4jPersistentEntity<?>,Neo4jPersistentProperty> getMappingContext()
           
<R extends T>
R
read(Class<R> requestedType, S source)
           
 void write(T source, S sink)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Neo4jEntityConverterImpl

public Neo4jEntityConverterImpl(Neo4jMappingContext mappingContext,
                                ConversionService conversionService,
                                EntityStateHandler entityStateHandler,
                                Neo4jEntityFetchHandler entityFetchHandler,
                                EntityTools<S> entityTools)
Method Detail

getMappingContext

public org.springframework.data.mapping.context.MappingContext<? extends Neo4jPersistentEntity<?>,Neo4jPersistentProperty> getMappingContext()
Specified by:
getMappingContext in interface org.springframework.data.convert.EntityConverter<Neo4jPersistentEntity<?>,Neo4jPersistentProperty,T,S extends org.neo4j.graphdb.PropertyContainer>

getConversionService

public ConversionService getConversionService()
Specified by:
getConversionService in interface org.springframework.data.convert.EntityConverter<Neo4jPersistentEntity<?>,Neo4jPersistentProperty,T,S extends org.neo4j.graphdb.PropertyContainer>

read

public <R extends T> R read(Class<R> requestedType,
                            S source)
Specified by:
read in interface org.springframework.data.convert.EntityReader<T,S extends org.neo4j.graphdb.PropertyContainer>

write

public void write(T source,
                  S sink)
Specified by:
write in interface org.springframework.data.convert.EntityWriter<T,S extends org.neo4j.graphdb.PropertyContainer>

Spring Data Neo4j

Copyright © 2011 SpringSource. All Rights Reserved.