Spring Data Neo4j

org.springframework.data.neo4j.support.mapping
Class Neo4jMappingContext

java.lang.Object
  extended by org.springframework.data.mapping.context.AbstractMappingContext<Neo4jPersistentEntityImpl<?>,Neo4jPersistentProperty>
      extended by org.springframework.data.neo4j.support.mapping.Neo4jMappingContext
All Implemented Interfaces:
InitializingBean, ApplicationEventPublisherAware, org.springframework.data.mapping.context.MappingContext<Neo4jPersistentEntityImpl<?>,Neo4jPersistentProperty>

public class Neo4jMappingContext
extends org.springframework.data.mapping.context.AbstractMappingContext<Neo4jPersistentEntityImpl<?>,Neo4jPersistentProperty>

Neo4J specific MappingContext implementation. Simply creates Neo4jPersistentEntityImpl and Neo4jPersistentProperty instances.

Author:
Oliver Gierke

Constructor Summary
Neo4jMappingContext()
           
 
Method Summary
protected
<T> Neo4jPersistentEntityImpl<?>
createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)
           
protected  Neo4jPersistentProperty createPersistentProperty(Field field, PropertyDescriptor descriptor, Neo4jPersistentEntityImpl<?> owner, org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
           
 boolean isNodeEntity(Class<?> type)
           
 boolean isRelationshipEntity(Class<?> type)
           
 void setPersistentState(Object entity, org.neo4j.graphdb.PropertyContainer pc)
           
 
Methods inherited from class org.springframework.data.mapping.context.AbstractMappingContext
addPersistentEntity, addPersistentEntity, afterPropertiesSet, getEntityValidators, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, setApplicationEventPublisher, setInitialEntitySet, setSimpleTypeHolder, setStrict
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Neo4jMappingContext

public Neo4jMappingContext()
Method Detail

createPersistentEntity

protected <T> Neo4jPersistentEntityImpl<?> createPersistentEntity(org.springframework.data.util.TypeInformation<T> typeInformation)
Specified by:
createPersistentEntity in class org.springframework.data.mapping.context.AbstractMappingContext<Neo4jPersistentEntityImpl<?>,Neo4jPersistentProperty>

createPersistentProperty

protected Neo4jPersistentProperty createPersistentProperty(Field field,
                                                           PropertyDescriptor descriptor,
                                                           Neo4jPersistentEntityImpl<?> owner,
                                                           org.springframework.data.mapping.model.SimpleTypeHolder simpleTypeHolder)
Specified by:
createPersistentProperty in class org.springframework.data.mapping.context.AbstractMappingContext<Neo4jPersistentEntityImpl<?>,Neo4jPersistentProperty>

isNodeEntity

public boolean isNodeEntity(Class<?> type)

isRelationshipEntity

public boolean isRelationshipEntity(Class<?> type)

setPersistentState

public void setPersistentState(Object entity,
                               org.neo4j.graphdb.PropertyContainer pc)

Spring Data Neo4j

Copyright © 2011 SpringSource. All Rights Reserved.