Spring Data Graph

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

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

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


Field Summary
protected  FinderFactory finderFactory
           
protected  GraphDatabaseContext graphDatabaseContext
           
 
Constructor Summary
DelegatingFieldAccessorFactory(GraphDatabaseContext graphDatabaseContext, FinderFactory finderFactory)
           
 
Method Summary
 boolean accept(Field f)
           
<T> FieldAccessorFactoryProviders<T>
accessorFactoriesFor(Class<T> type)
           
protected abstract  Collection<? extends FieldAccessorFactory<?>> createAccessorFactories()
           
protected abstract  Collection<org.springframework.data.graph.neo4j.fieldaccess.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

finderFactory

protected final FinderFactory finderFactory
Constructor Detail

DelegatingFieldAccessorFactory

public DelegatingFieldAccessorFactory(GraphDatabaseContext graphDatabaseContext,
                                      FinderFactory finderFactory)
Method Detail

createListenerFactories

protected abstract Collection<org.springframework.data.graph.neo4j.fieldaccess.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. All Rights Reserved.