Spring Data Graph

org.springframework.data.neo4j.fieldaccess
Class ReadOnlyOneToNRelationshipFieldAccessorFactory

java.lang.Object
  extended by org.springframework.data.neo4j.fieldaccess.NodeRelationshipFieldAccessorFactory
      extended by org.springframework.data.neo4j.fieldaccess.ReadOnlyOneToNRelationshipFieldAccessorFactory
All Implemented Interfaces:
FieldAccessorFactory<NodeBacked>

public class ReadOnlyOneToNRelationshipFieldAccessorFactory
extends NodeRelationshipFieldAccessorFactory


Nested Class Summary
static class ReadOnlyOneToNRelationshipFieldAccessorFactory.ReadOnlyOneToNRelationshipFieldAccessor
           
 
Field Summary
 
Fields inherited from class org.springframework.data.neo4j.fieldaccess.NodeRelationshipFieldAccessorFactory
graphDatabaseContext
 
Constructor Summary
ReadOnlyOneToNRelationshipFieldAccessorFactory(GraphDatabaseContext graphDatabaseContext)
           
 
Method Summary
 boolean accept(Field f)
           
 FieldAccessor<NodeBacked> forField(Field field)
           
 
Methods inherited from class org.springframework.data.neo4j.fieldaccess.NodeRelationshipFieldAccessorFactory
dirFrom, getRelationshipAnnotation, hasValidRelationshipAnnotation, targetFrom, typeFrom, typeFrom, typeFrom
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReadOnlyOneToNRelationshipFieldAccessorFactory

public ReadOnlyOneToNRelationshipFieldAccessorFactory(GraphDatabaseContext graphDatabaseContext)
Method Detail

accept

public boolean accept(Field f)
Parameters:
f - field to check
Returns:
true if this factory is responsible for creating a accessor for this field

forField

public FieldAccessor<NodeBacked> forField(Field field)
Parameters:
field - the field to create an accessor for
Returns:
a field accessor for the field or null if none can be created

Spring Data Graph

Copyright © 2011 SpringSource. All Rights Reserved.