Spring Data Graph

org.springframework.data.graph.neo4j.fieldaccess
Interface FieldAccessorFactory<E>

All Known Implementing Classes:
ConvertingNodePropertyFieldAccessorFactory, DelegatingFieldAccessorFactory, IdFieldAccessorFactory, NodeDelegatingFieldAccessorFactory, OneToNRelationshipEntityFieldAccessorFactory, OneToNRelationshipFieldAccessorFactory, PropertyFieldAccessorFactory, ReadOnlyOneToNRelationshipFieldAccessorFactory, RelationshipNodeFieldAccessorFactory, SingleRelationshipFieldAccessorFactory, TransientFieldAccessorFactory, TraversalFieldAccessorFactory

public interface FieldAccessorFactory<E>

Factory interface for a single field / field accessor. Provides means to check if a certain field is eligible for this factory and also a factory method to create the field accessor.

Since:
12.09.2010
Author:
Michael Hunger

Method Summary
 boolean accept(Field f)
           
 FieldAccessor<E> forField(Field f)
           
 

Method Detail

accept

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

forField

FieldAccessor<E> forField(Field f)
Parameters:
f - 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. All Rights Reserved.