public static class RelatedToViaCollectionFieldAccessorFactory.RelatedToViaCollectionFieldAccessor extends Object implements FieldAccessor
Constructor and Description |
---|
RelatedToViaCollectionFieldAccessorFactory.RelatedToViaCollectionFieldAccessor(org.neo4j.graphdb.RelationshipType type,
org.neo4j.graphdb.Direction direction,
Class<?> relatedType,
Neo4jTemplate template,
Neo4jPersistentProperty property) |
Modifier and Type | Method and Description |
---|---|
protected <T> ManagedFieldAccessorSet<T> |
createManagedSet(Object entity,
Set<T> result,
MappingPolicy mappingPolicy) |
Object |
getDefaultValue()
Returns a default implementation for a field or
null if none is provided. |
Object |
getValue(Object entity,
MappingPolicy mappingPolicy) |
boolean |
isWriteable(Object entity) |
protected Map<org.neo4j.graphdb.Node,Object> |
loadEndNodeToRelationshipEntityMapping(Object newVal,
org.neo4j.graphdb.Node startNode) |
Object |
setValue(Object entity,
Object newVal,
MappingPolicy mappingPolicy)
handles field write modification.
|
public RelatedToViaCollectionFieldAccessorFactory.RelatedToViaCollectionFieldAccessor(org.neo4j.graphdb.RelationshipType type, org.neo4j.graphdb.Direction direction, Class<?> relatedType, Neo4jTemplate template, Neo4jPersistentProperty property)
public Object getDefaultValue()
FieldAccessor
null
if none is provided.
This default implementation is returned in detached mode by the DetachedEntityState
when the value of the field is get.
getDefaultValue
in interface FieldAccessor
null
if none is provided.public Object setValue(Object entity, Object newVal, MappingPolicy mappingPolicy)
FieldAccessor
setValue
in interface FieldAccessor
protected Map<org.neo4j.graphdb.Node,Object> loadEndNodeToRelationshipEntityMapping(Object newVal, org.neo4j.graphdb.Node startNode)
public boolean isWriteable(Object entity)
isWriteable
in interface FieldAccessor
public Object getValue(Object entity, MappingPolicy mappingPolicy)
getValue
in interface FieldAccessor
protected <T> ManagedFieldAccessorSet<T> createManagedSet(Object entity, Set<T> result, MappingPolicy mappingPolicy)
Copyright © 2012 SpringSource. All Rights Reserved.