org.springframework.data.neo4j.fieldaccess
Class RelatedToCollectionFieldAccessorFactory.RelatedToCollectionFieldAccessor
java.lang.Object
org.springframework.data.neo4j.fieldaccess.RelatedToFieldAccessor
org.springframework.data.neo4j.fieldaccess.RelatedToCollectionFieldAccessorFactory.RelatedToCollectionFieldAccessor
- All Implemented Interfaces:
- FieldAccessor
- Direct Known Subclasses:
- ReadOnlyRelatedToCollectionFieldAccessorFactory.ReadOnlyRelatedToCollectionFieldAccessor
- Enclosing class:
- RelatedToCollectionFieldAccessorFactory
public static class RelatedToCollectionFieldAccessorFactory.RelatedToCollectionFieldAccessor
- extends RelatedToFieldAccessor
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RelatedToCollectionFieldAccessorFactory.RelatedToCollectionFieldAccessor
public RelatedToCollectionFieldAccessorFactory.RelatedToCollectionFieldAccessor(org.neo4j.graphdb.RelationshipType type,
org.neo4j.graphdb.Direction direction,
Class<?> elementClass,
Neo4jTemplate template,
Neo4jPersistentProperty property)
setValue
public Object setValue(Object entity,
Object newVal,
MappingPolicy mappingPolicy)
- Description copied from interface:
FieldAccessor
- handles field write modification.
- Returns:
- the written value or a DoReturn wrapper with the written value or null.
DoReturn indicates that the aspect should not proceed to the original field access but instead return immediately.
getValue
public Object getValue(Object entity,
MappingPolicy mappingPolicy)
- Returns:
- the value or a DoReturn wrapper with the value for the field.
DoReturn indicates that the aspect should not proceed to the original field access but instead return immediately.
getDefaultValue
public Object getDefaultValue()
- Description copied from interface:
FieldAccessor
- Returns a default implementation for a field or
null
if none is provided.
This default implementation is returned in detached mode by the DetachedEntityState
when the value of the field is get.
- Specified by:
getDefaultValue
in interface FieldAccessor
- Overrides:
getDefaultValue
in class RelatedToFieldAccessor
- Returns:
- a default implementation for a field or
null
if none is provided.
Copyright © 2012 SpringSource. All Rights Reserved.