Spring Data Graph

org.springframework.data.neo4j.fieldaccess
Class NodeRelationshipFieldAccessorFactory

java.lang.Object
  extended by org.springframework.data.neo4j.fieldaccess.NodeRelationshipFieldAccessorFactory
All Implemented Interfaces:
FieldAccessorFactory<NodeBacked>
Direct Known Subclasses:
OneToNRelationshipFieldAccessorFactory, ReadOnlyOneToNRelationshipFieldAccessorFactory, SingleRelationshipFieldAccessorFactory

public abstract class NodeRelationshipFieldAccessorFactory
extends Object
implements FieldAccessorFactory<NodeBacked>

Since:
12.09.2010
Author:
Michael Hunger

Field Summary
protected  GraphDatabaseContext graphDatabaseContext
           
 
Constructor Summary
NodeRelationshipFieldAccessorFactory(GraphDatabaseContext graphDatabaseContext)
           
 
Method Summary
protected  org.neo4j.graphdb.Direction dirFrom(RelatedTo relAnnotation)
           
protected  RelatedTo getRelationshipAnnotation(Field field)
           
protected  boolean hasValidRelationshipAnnotation(Field field)
           
protected  Class<? extends NodeBacked> targetFrom(Field field, RelatedTo relatedTo)
           
protected  org.neo4j.graphdb.DynamicRelationshipType typeFrom(Field field)
           
protected  org.neo4j.graphdb.DynamicRelationshipType typeFrom(Field field, RelatedTo relAnnotation)
           
protected  org.neo4j.graphdb.DynamicRelationshipType typeFrom(RelatedTo relAnnotation)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.data.neo4j.fieldaccess.FieldAccessorFactory
accept, forField
 

Field Detail

graphDatabaseContext

protected GraphDatabaseContext graphDatabaseContext
Constructor Detail

NodeRelationshipFieldAccessorFactory

public NodeRelationshipFieldAccessorFactory(GraphDatabaseContext graphDatabaseContext)
Method Detail

targetFrom

protected Class<? extends NodeBacked> targetFrom(Field field,
                                                 RelatedTo relatedTo)

dirFrom

protected org.neo4j.graphdb.Direction dirFrom(RelatedTo relAnnotation)

typeFrom

protected org.neo4j.graphdb.DynamicRelationshipType typeFrom(Field field)

typeFrom

protected org.neo4j.graphdb.DynamicRelationshipType typeFrom(RelatedTo relAnnotation)

typeFrom

protected org.neo4j.graphdb.DynamicRelationshipType typeFrom(Field field,
                                                             RelatedTo relAnnotation)

getRelationshipAnnotation

protected RelatedTo getRelationshipAnnotation(Field field)

hasValidRelationshipAnnotation

protected boolean hasValidRelationshipAnnotation(Field field)

Spring Data Graph

Copyright © 2011 SpringSource. All Rights Reserved.