org.springframework.data.neo4j.conversion
Class QueryResultBuilder<T>
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
QueryResultBuilder
public QueryResultBuilder(Iterable<T> result)
QueryResultBuilder
public QueryResultBuilder(Iterable<T> result,
ResultConverter<T,?> defaultConverter)
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)
Copyright © 2012 SpringSource. All Rights Reserved.