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