Spring Data Graph

org.springframework.data.neo4j.support.node
Class NodeBackedNodeIterableWrapper<T extends NodeBacked>

java.lang.Object
  extended by org.neo4j.helpers.collection.IterableWrapper<T,org.neo4j.graphdb.Node>
      extended by org.springframework.data.neo4j.support.node.NodeBackedNodeIterableWrapper<T>
All Implemented Interfaces:
Iterable<T>

public class NodeBackedNodeIterableWrapper<T extends NodeBacked>
extends org.neo4j.helpers.collection.IterableWrapper<T,org.neo4j.graphdb.Node>

Simple wrapper to create an Iterable from a traverser, tied to a NodeBacked entity. Creates NodeEntities on the fly while iterating the Iterator from the traverersal result.

Since:
14.09.2010
Author:
Michael Hunger

Constructor Summary
NodeBackedNodeIterableWrapper(org.neo4j.graphdb.traversal.Traverser traverser, Class<T> targetType, GraphDatabaseContext graphDatabaseContext)
           
 
Method Summary
protected  T underlyingObjectToObject(org.neo4j.graphdb.Node node)
           
 
Methods inherited from class org.neo4j.helpers.collection.IterableWrapper
iterator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeBackedNodeIterableWrapper

public NodeBackedNodeIterableWrapper(org.neo4j.graphdb.traversal.Traverser traverser,
                                     Class<T> targetType,
                                     GraphDatabaseContext graphDatabaseContext)
Method Detail

underlyingObjectToObject

protected T underlyingObjectToObject(org.neo4j.graphdb.Node node)
Specified by:
underlyingObjectToObject in class org.neo4j.helpers.collection.IterableWrapper<T extends NodeBacked,org.neo4j.graphdb.Node>

Spring Data Graph

Copyright © 2011 SpringSource. All Rights Reserved.