Spring Data Graph

org.springframework.data.neo4j.fieldaccess
Class DelegatingFieldAccessorFactory<T>

java.lang.Object
  extended by org.springframework.data.neo4j.fieldaccess.DelegatingFieldAccessorFactory<T>
All Implemented Interfaces:
FieldAccessorFactory<T>
Direct Known Subclasses:
NodeDelegatingFieldAccessorFactory, PartialNodeEntityState.PartialNodeDelegatingFieldAccessorFactory, RelationshipDelegatingFieldAccessorFactory

public abstract class DelegatingFieldAccessorFactory<T>
extends Object
implements FieldAccessorFactory<T>


Field Summary
protected  GraphDatabaseContext graphDatabaseContext
           
 
Constructor Summary
DelegatingFieldAccessorFactory(GraphDatabaseContext graphDatabaseContext)
           
 
Method Summary
 boolean accept(Field f)
           
<T> FieldAccessorFactoryProviders<T>
accessorFactoriesFor(Class<T> type)
           
protected abstract  Collection<? extends FieldAccessorFactory<?>> createAccessorFactories()
           
protected abstract  Collection<FieldAccessorListenerFactory<?>> createListenerFactories()
           
 FieldAccessor forField(Field field)
           
 GraphDatabaseContext getGraphDatabaseContext()
           
static String getNeo4jPropertyName(Field field)
           
 List<FieldAccessListener<T,?>> listenersFor(Field field)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

graphDatabaseContext

protected final GraphDatabaseContext graphDatabaseContext
Constructor Detail

DelegatingFieldAccessorFactory

public DelegatingFieldAccessorFactory(GraphDatabaseContext graphDatabaseContext)
Method Detail

createListenerFactories

protected abstract Collection<FieldAccessorListenerFactory<?>> createListenerFactories()

createAccessorFactories

protected abstract Collection<? extends FieldAccessorFactory<?>> createAccessorFactories()

getGraphDatabaseContext

public GraphDatabaseContext getGraphDatabaseContext()

accept

public boolean accept(Field f)
Specified by:
accept in interface FieldAccessorFactory<T>
Parameters:
f - field to check
Returns:
true if this factory is responsible for creating a accessor for this field

forField

public FieldAccessor forField(Field field)
Specified by:
forField in interface FieldAccessorFactory<T>
Parameters:
field - the field to create an accessor for
Returns:
a field accessor for the field or null if none can be created

getNeo4jPropertyName

public static String getNeo4jPropertyName(Field field)

listenersFor

public List<FieldAccessListener<T,?>> listenersFor(Field field)

accessorFactoriesFor

public <T> FieldAccessorFactoryProviders<T> accessorFactoriesFor(Class<T> type)

Spring Data Graph

Copyright © 2011 SpringSource. All Rights Reserved.