public class Neo4jEntityPersister extends Object implements EntityPersister, Neo4jEntityConverter<Object,org.neo4j.graphdb.Node>
Modifier and Type | Class and Description |
---|---|
static class |
Neo4jEntityPersister.CachedConverter<S extends org.neo4j.graphdb.PropertyContainer> |
static class |
Neo4jEntityPersister.CachedInstantiator<S extends org.neo4j.graphdb.PropertyContainer> |
Constructor and Description |
---|
Neo4jEntityPersister(ConversionService conversionService,
EntityTools<org.neo4j.graphdb.Node> nodeEntityTools,
EntityTools<org.neo4j.graphdb.Relationship> relationshipEntityTools,
Neo4jMappingContext mappingContext,
EntityStateHandler entityStateHandler) |
Modifier and Type | Method and Description |
---|---|
<S extends org.neo4j.graphdb.PropertyContainer,T> |
createEntityFromState(S state,
Class<T> type,
MappingPolicy mappingPolicy,
Neo4jTemplate template) |
<S extends org.neo4j.graphdb.PropertyContainer,T> |
createEntityFromStoredType(S state,
MappingPolicy mappingPolicy,
Neo4jTemplate template) |
<S extends org.neo4j.graphdb.PropertyContainer,T> |
createEntityFromStoredType(S state,
Neo4jTemplate template) |
ConversionService |
getConversionService() |
Number |
getId(Object entity) |
MappingContext<? extends Neo4jPersistentEntity<?>,Neo4jPersistentProperty> |
getMappingContext() |
MappingPolicy |
getMappingPolicy(Class<?> targetType) |
<S extends org.neo4j.graphdb.PropertyContainer> |
getPersistentState(Object entity) |
boolean |
isManaged(Object entity) |
boolean |
isNodeEntity(Class<?> targetType) |
boolean |
isRelationshipEntity(Class targetType) |
<R> R |
loadEntity(R entity,
org.neo4j.graphdb.Node source,
MappingPolicy mappingPolicy,
Neo4jPersistentEntityImpl<R> persistentEntity,
Neo4jTemplate template) |
<R> R |
loadRelationshipEntity(R entity,
org.neo4j.graphdb.Relationship source,
MappingPolicy mappingPolicy,
Neo4jPersistentEntityImpl<R> persistentEntity,
Neo4jTemplate template) |
Object |
persist(Object entity,
MappingPolicy mappingPolicy,
Neo4jTemplate template,
org.neo4j.graphdb.RelationshipType annotationProvidedRelationshipType) |
<T> T |
projectTo(Object entity,
Class<T> targetType,
MappingPolicy mappingPolicy,
Neo4jTemplate template) |
<T> T |
projectTo(Object entity,
Class<T> targetType,
Neo4jTemplate template) |
<R> R |
read(Class<R> type,
org.neo4j.graphdb.Node source,
MappingPolicy mappingPolicy,
Neo4jTemplate template) |
<S extends org.neo4j.graphdb.PropertyContainer> |
setPersistentState(Object entity,
S state) |
void |
write(Object source,
org.neo4j.graphdb.Node sink,
MappingPolicy mappingPolicy,
Neo4jTemplate template,
org.neo4j.graphdb.RelationshipType annotationProvidedRelationshipType) |
public Neo4jEntityPersister(ConversionService conversionService, EntityTools<org.neo4j.graphdb.Node> nodeEntityTools, EntityTools<org.neo4j.graphdb.Relationship> relationshipEntityTools, Neo4jMappingContext mappingContext, EntityStateHandler entityStateHandler)
public <S extends org.neo4j.graphdb.PropertyContainer,T> T createEntityFromStoredType(S state, MappingPolicy mappingPolicy, Neo4jTemplate template)
createEntityFromStoredType
in interface EntityPersister
public <S extends org.neo4j.graphdb.PropertyContainer,T> T createEntityFromStoredType(S state, Neo4jTemplate template)
createEntityFromStoredType
in interface EntityPersister
public <S extends org.neo4j.graphdb.PropertyContainer,T> T createEntityFromState(S state, Class<T> type, MappingPolicy mappingPolicy, Neo4jTemplate template)
createEntityFromState
in interface EntityPersister
public <T> T projectTo(Object entity, Class<T> targetType, Neo4jTemplate template)
projectTo
in interface EntityPersister
public <T> T projectTo(Object entity, Class<T> targetType, MappingPolicy mappingPolicy, Neo4jTemplate template)
projectTo
in interface EntityPersister
public <S extends org.neo4j.graphdb.PropertyContainer> S getPersistentState(Object entity)
public Object persist(Object entity, MappingPolicy mappingPolicy, Neo4jTemplate template, org.neo4j.graphdb.RelationshipType annotationProvidedRelationshipType)
public boolean isManaged(Object entity)
public boolean isNodeEntity(Class<?> targetType)
isNodeEntity
in interface EntityPersister
public MappingPolicy getMappingPolicy(Class<?> targetType)
getMappingPolicy
in interface EntityPersister
public boolean isRelationshipEntity(Class targetType)
isRelationshipEntity
in interface EntityPersister
public <S extends org.neo4j.graphdb.PropertyContainer> void setPersistentState(Object entity, S state)
public MappingContext<? extends Neo4jPersistentEntity<?>,Neo4jPersistentProperty> getMappingContext()
getMappingContext
in interface Neo4jEntityConverter<Object,org.neo4j.graphdb.Node>
public ConversionService getConversionService()
getConversionService
in interface Neo4jEntityConverter<Object,org.neo4j.graphdb.Node>
public <R> R read(Class<R> type, org.neo4j.graphdb.Node source, MappingPolicy mappingPolicy, Neo4jTemplate template)
read
in interface Neo4jEntityConverter<Object,org.neo4j.graphdb.Node>
public <R> R loadEntity(R entity, org.neo4j.graphdb.Node source, MappingPolicy mappingPolicy, Neo4jPersistentEntityImpl<R> persistentEntity, Neo4jTemplate template)
loadEntity
in interface Neo4jEntityConverter<Object,org.neo4j.graphdb.Node>
public <R> R loadRelationshipEntity(R entity, org.neo4j.graphdb.Relationship source, MappingPolicy mappingPolicy, Neo4jPersistentEntityImpl<R> persistentEntity, Neo4jTemplate template)
public void write(Object source, org.neo4j.graphdb.Node sink, MappingPolicy mappingPolicy, Neo4jTemplate template, org.neo4j.graphdb.RelationshipType annotationProvidedRelationshipType)
write
in interface Neo4jEntityConverter<Object,org.neo4j.graphdb.Node>
Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.