org.springframework.data.neo4j.support.mapping
Class Neo4jMappingContext
java.lang.Object
org.springframework.data.mapping.context.AbstractMappingContext<Neo4jPersistentEntityImpl<?>,Neo4jPersistentProperty>
org.springframework.data.neo4j.support.mapping.Neo4jMappingContext
- All Implemented Interfaces:
- EventListener, Aware, ApplicationContextAware, ApplicationEventPublisherAware, ApplicationListener<ContextRefreshedEvent>, 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
Methods inherited from class org.springframework.data.mapping.context.AbstractMappingContext |
addPersistentEntity, getPersistentEntities, getPersistentEntity, getPersistentEntity, getPersistentEntity, getPersistentPropertyPath, initialize, onApplicationEvent, setApplicationContext, setApplicationEventPublisher, setInitialEntitySet, setSimpleTypeHolder, setStrict, shouldCreatePersistentEntityFor |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Neo4jMappingContext
public Neo4jMappingContext()
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)
isReference
public boolean isReference(Neo4jPersistentProperty property)
Copyright © 2013 SpringSource. All Rights Reserved.