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:
Aware, 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  Neo4jPersistentEntityImpl<?> addPersistentEntity(org.springframework.data.util.TypeInformation<?> typeInformation)
           
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)
           
 EntityAlias getEntityAlias()
           
 Neo4jPersistentEntity<?> getPersistentEntity(Object alias)
           
 StoredEntityType getStoredEntityType(Class type)
           
 boolean isNodeEntity(Class<?> type)
           
 boolean isRelationshipEntity(Class<?> type)
           
 void setEntityAlias(EntityAlias entityAlias)
           
 void setPersistentState(Object entity, org.neo4j.graphdb.PropertyContainer pc)
           
 
Methods inherited from class org.springframework.data.mapping.context.AbstractMappingContext
addPersistentEntity, afterPropertiesSet, getEntityValidators, getPersistentEntities, getPersistentEntity, 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>

addPersistentEntity

protected Neo4jPersistentEntityImpl<?> addPersistentEntity(org.springframework.data.util.TypeInformation<?> typeInformation)
Overrides:
addPersistentEntity in class org.springframework.data.mapping.context.AbstractMappingContext<Neo4jPersistentEntityImpl<?>,Neo4jPersistentProperty>

getPersistentEntity

public Neo4jPersistentEntity<?> getPersistentEntity(Object alias)

getStoredEntityType

public StoredEntityType getStoredEntityType(Class type)

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)

getEntityAlias

public EntityAlias getEntityAlias()

setEntityAlias

public void setEntityAlias(EntityAlias entityAlias)

Spring Data Neo4j

Copyright © 2012 SpringSource. All Rights Reserved.