Spring Data Neo4j

org.springframework.data.neo4j.fieldaccess
Class ReadOnlyOneToNRelationshipFieldAccessorFactory.ReadOnlyOneToNRelationshipFieldAccessor

java.lang.Object
  extended by org.springframework.data.neo4j.fieldaccess.AbstractNodeRelationshipFieldAccessor<org.neo4j.graphdb.Node,org.neo4j.graphdb.Node>
      extended by org.springframework.data.neo4j.fieldaccess.NodeToNodesRelationshipFieldAccessor
          extended by org.springframework.data.neo4j.fieldaccess.OneToNRelationshipFieldAccessorFactory.OneToNRelationshipFieldAccessor
              extended by org.springframework.data.neo4j.fieldaccess.ReadOnlyOneToNRelationshipFieldAccessorFactory.ReadOnlyOneToNRelationshipFieldAccessor
All Implemented Interfaces:
FieldAccessor
Enclosing class:
ReadOnlyOneToNRelationshipFieldAccessorFactory

public static class ReadOnlyOneToNRelationshipFieldAccessorFactory.ReadOnlyOneToNRelationshipFieldAccessor
extends OneToNRelationshipFieldAccessorFactory.OneToNRelationshipFieldAccessor


Field Summary
 
Fields inherited from class org.springframework.data.neo4j.fieldaccess.AbstractNodeRelationshipFieldAccessor
direction, property, relatedType, template, type
 
Constructor Summary
ReadOnlyOneToNRelationshipFieldAccessorFactory.ReadOnlyOneToNRelationshipFieldAccessor(org.neo4j.graphdb.RelationshipType type, org.neo4j.graphdb.Direction direction, Class<?> elementClass, Neo4jTemplate template, Neo4jPersistentProperty field)
           
 
Method Summary
 boolean isWriteable(Object entity)
           
 Object setValue(Object entity, Object newVal, MappingPolicy mappingPolicy)
          handles field write modification.
 
Methods inherited from class org.springframework.data.neo4j.fieldaccess.OneToNRelationshipFieldAccessorFactory.OneToNRelationshipFieldAccessor
getDefaultValue, getValue
 
Methods inherited from class org.springframework.data.neo4j.fieldaccess.NodeToNodesRelationshipFieldAccessor
getState, getStatesFromEntity, obtainSingleRelationship
 
Methods inherited from class org.springframework.data.neo4j.fieldaccess.AbstractNodeRelationshipFieldAccessor
checkUnderlyingState, createAddedRelationships, createEntitySetFromRelationshipEndNodes, createManagedSet, createSetOfTargetNodes, createSingleRelationship, getOrCreateState, removeMissingRelationships, updateMappingPolicy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadOnlyOneToNRelationshipFieldAccessorFactory.ReadOnlyOneToNRelationshipFieldAccessor

public ReadOnlyOneToNRelationshipFieldAccessorFactory.ReadOnlyOneToNRelationshipFieldAccessor(org.neo4j.graphdb.RelationshipType type,
                                                                                              org.neo4j.graphdb.Direction direction,
                                                                                              Class<?> elementClass,
                                                                                              Neo4jTemplate template,
                                                                                              Neo4jPersistentProperty field)
Method Detail

isWriteable

public boolean isWriteable(Object entity)
Specified by:
isWriteable in interface FieldAccessor
Overrides:
isWriteable in class AbstractNodeRelationshipFieldAccessor<org.neo4j.graphdb.Node,org.neo4j.graphdb.Node>
Returns:
false for read only or computed fields, true otherwise

setValue

public Object setValue(Object entity,
                       Object newVal,
                       MappingPolicy mappingPolicy)
Description copied from interface: FieldAccessor
handles field write modification.

Specified by:
setValue in interface FieldAccessor
Overrides:
setValue in class OneToNRelationshipFieldAccessorFactory.OneToNRelationshipFieldAccessor
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.

Spring Data Neo4j

Copyright © 2011 SpringSource. All Rights Reserved.