Spring Data Graph

org.springframework.data.graph.neo4j.fieldaccess
Class ConvertingNodePropertyFieldAccessorFactory

java.lang.Object
  extended by org.springframework.data.graph.neo4j.fieldaccess.ConvertingNodePropertyFieldAccessorFactory
All Implemented Interfaces:
FieldAccessorFactory<GraphBacked<org.neo4j.graphdb.PropertyContainer>>

@Configurable
public class ConvertingNodePropertyFieldAccessorFactory
extends Object
implements FieldAccessorFactory<GraphBacked<org.neo4j.graphdb.PropertyContainer>>

Since:
12.09.2010
Author:
Michael Hunger

Nested Class Summary
static class ConvertingNodePropertyFieldAccessorFactory.ConvertingNodePropertyFieldAccessor
           
 
Constructor Summary
ConvertingNodePropertyFieldAccessorFactory(ConversionService conversionService)
           
 
Method Summary
 boolean accept(Field field)
           
 FieldAccessor<GraphBacked<org.neo4j.graphdb.PropertyContainer>> forField(Field field)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConvertingNodePropertyFieldAccessorFactory

public ConvertingNodePropertyFieldAccessorFactory(ConversionService conversionService)
Method Detail

accept

public boolean accept(Field field)
Specified by:
accept in interface FieldAccessorFactory<GraphBacked<org.neo4j.graphdb.PropertyContainer>>
Parameters:
field - field to check
Returns:
true if this factory is responsible for creating a accessor for this field

forField

public FieldAccessor<GraphBacked<org.neo4j.graphdb.PropertyContainer>> forField(Field field)
Specified by:
forField in interface FieldAccessorFactory<GraphBacked<org.neo4j.graphdb.PropertyContainer>>
Parameters:
field - 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.