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.
|
getValuecheckAndGetNode, createAddedRelationships, createEntitySetFromRelationshipEndNodes, createEntitySetFromRelationshipEndNodesUsingTypeProperty, createManagedSet, createSetOfTargetNodes, removeMissingRelationships, removeMissingRelationshipspublic 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 FieldAccessorisWriteable in class RelatedToFieldAccessorpublic Object setValue(Object entity, Object newVal, MappingPolicy mappingPolicy)
FieldAccessorsetValue in interface FieldAccessorsetValue in class RelatedToCollectionFieldAccessorFactory.RelatedToCollectionFieldAccessorpublic Object getDefaultValue()
FieldAccessornull 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 FieldAccessorgetDefaultValue in class RelatedToCollectionFieldAccessorFactory.RelatedToCollectionFieldAccessornull if none is provided.Copyright © 2011-2015–2015 Pivotal Software, Inc.. All rights reserved.