Spring Data Neo4j

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>, EndResult<T>, Result<T>

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

Since:
28.06.11
Author:
mh

Constructor Summary
QueryResultBuilder(Iterable<T> result)
           
QueryResultBuilder(Iterable<T> result, ResultConverter<T,?> defaultConverter)
           
 
Method Summary
<C extends Iterable<T>>
C
as(Class<C> container)
           
 void finish()
           
static
<T> QueryResultBuilder<T>
from(Iterable<T> values)
           
static
<T> QueryResultBuilder<T>
from(T... values)
           
 void handle(Handler<T> handler)
           
 Iterator<T> iterator()
           
 T single()
           
 T singleOrNull()
           
<R> EndResult<R>
to(Class<R> type)
           
<R> EndResult<R>
to(Class<R> type, ResultConverter<T,R> resultConverter)
           
 Result<T> with(MappingPolicy mappingPolicy)
           
 
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

to

public <R> EndResult<R> to(Class<R> type)
Specified by:
to in interface Result<T>

single

public T single()
Specified by:
single in interface EndResult<T>

singleOrNull

public T singleOrNull()
Specified by:
singleOrNull in interface EndResult<T>

finish

public void finish()
Specified by:
finish in interface EndResult<T>

to

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

as

public <C extends Iterable<T>> C as(Class<C> container)
Specified by:
as in interface EndResult<T>

handle

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

iterator

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

with

public Result<T> with(MappingPolicy mappingPolicy)
Specified by:
with in interface Result<T>

from

public static <T> QueryResultBuilder<T> from(Iterable<T> values)

from

public static <T> QueryResultBuilder<T> from(T... values)

Spring Data Neo4j

Copyright © 2012 SpringSource. All Rights Reserved.