Spring Data Neo4j

org.springframework.data.neo4j.fieldaccess
Class RelatedToSingleFieldAccessorFactory

java.lang.Object
  extended by org.springframework.data.neo4j.fieldaccess.RelatedToSingleFieldAccessorFactory
All Implemented Interfaces:
FieldAccessorFactory

public class RelatedToSingleFieldAccessorFactory
extends Object
implements FieldAccessorFactory


Nested Class Summary
static class RelatedToSingleFieldAccessorFactory.RelatedToSingleFieldAccessor
           
 
Field Summary
protected  Neo4jTemplate template
           
 
Constructor Summary
RelatedToSingleFieldAccessorFactory(Neo4jTemplate template)
           
 
Method Summary
 boolean accept(Neo4jPersistentProperty property)
           
 FieldAccessor forField(Neo4jPersistentProperty property)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

template

protected Neo4jTemplate template
Constructor Detail

RelatedToSingleFieldAccessorFactory

public RelatedToSingleFieldAccessorFactory(Neo4jTemplate template)
Method Detail

accept

public boolean accept(Neo4jPersistentProperty property)
Specified by:
accept in interface FieldAccessorFactory
Parameters:
property - field to check
Returns:
true if this factory is responsible for creating a accessor for this field

forField

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

Spring Data Neo4j

Copyright © 2013 SpringSource. All Rights Reserved.