Spring Data Graph

org.springframework.data.neo4j.conversion
Class QueryResultBuilder<T>

java.lang.Object
  extended by org.springframework.data.neo4j.conversion.QueryResultBuilder<T>
All Implemented Interfaces:
Iterable<T>, QueryResult<T>

public class QueryResultBuilder<T>
extends Object
implements QueryResult<T>

Since:
28.06.11
Author:
mh

Constructor Summary
QueryResultBuilder(Iterable<T> result)
           
QueryResultBuilder(Iterable<T> result, ResultConverter<T,?> defaultConverter)
           
 
Method Summary
 void handle(Handler<T> handler)
           
 Iterator<T> iterator()
           
static String replaceParams(String statement, Map<String,Object> params)
           
<R> ConvertedResult<R>
to(Class<R> type)
           
<R> ConvertedResult<R>
to(Class<R> type, ResultConverter<T,R> resultConverter)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryResultBuilder

public QueryResultBuilder(Iterable<T> result)

QueryResultBuilder

public QueryResultBuilder(Iterable<T> result,
                          ResultConverter<T,?> defaultConverter)
Method Detail

replaceParams

public static String replaceParams(String statement,
                                   Map<String,Object> params)

to

public <R> ConvertedResult<R> to(Class<R> type)
Specified by:
to in interface QueryResult<T>

to

public <R> ConvertedResult<R> to(Class<R> type,
                                 ResultConverter<T,R> resultConverter)
Specified by:
to in interface QueryResult<T>

handle

public void handle(Handler<T> handler)
Specified by:
handle in interface QueryResult<T>

iterator

public Iterator<T> iterator()
Specified by:
iterator in interface Iterable<T>

Spring Data Graph

Copyright © 2011 SpringSource. All Rights Reserved.