public static class RelatedToCollectionFieldAccessorFactory.RelatedToCollectionFieldAccessor extends RelatedToFieldAccessor
direction, property, relatedType, relationshipHelper, template, type
Constructor and Description |
---|
RelatedToCollectionFieldAccessorFactory.RelatedToCollectionFieldAccessor(org.neo4j.graphdb.RelationshipType type,
org.neo4j.graphdb.Direction direction,
Class<?> elementClass,
Neo4jTemplate template,
Neo4jPersistentProperty property) |
Modifier and Type | Method and Description |
---|---|
Object |
getDefaultValue()
Returns a default implementation for a field or
null if none is provided. |
Object |
getValue(Object entity,
MappingPolicy mappingPolicy) |
Object |
setValue(Object entity,
Object newVal,
MappingPolicy mappingPolicy)
handles field write modification.
|
checkAndGetNode, createAddedRelationships, createEntitySetFromRelationshipEndNodes, createEntitySetFromRelationshipEndNodesUsingTypeProperty, createManagedSet, createSetOfTargetNodes, isWriteable, removeMissingRelationships, removeMissingRelationships
public RelatedToCollectionFieldAccessorFactory.RelatedToCollectionFieldAccessor(org.neo4j.graphdb.RelationshipType type, org.neo4j.graphdb.Direction direction, Class<?> elementClass, Neo4jTemplate template, Neo4jPersistentProperty property)
public Object setValue(Object entity, Object newVal, MappingPolicy mappingPolicy)
FieldAccessor
public Object getValue(Object entity, MappingPolicy mappingPolicy)
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
getDefaultValue
in class RelatedToFieldAccessor
null
if none is provided.Copyright © 2011-2013-2014 Pivotal. All Rights Reserved.