Package io.ebeaninternal.server.core
Class DtoQueryRequest<T>
- java.lang.Object
-
- io.ebeaninternal.server.core.AbstractSqlQueryRequest
-
- io.ebeaninternal.server.core.DtoQueryRequest<T>
-
public final class DtoQueryRequest<T> extends AbstractSqlQueryRequest
Wraps the objects involved in executing a DtoQuery.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
executeSql(Binder binder, SpiQuery.Type type)
Prepare and execute the SQL using the Binder.void
findEach(Consumer<T> consumer)
void
findEachWhile(Predicate<T> consumer)
List<T>
findList()
T
readNextBean()
-
Methods inherited from class io.ebeaninternal.server.core.AbstractSqlQueryRequest
close, endTransIfRequired, getBindLog, getServer, getSql, getTransaction, initTransIfRequired, isLogSql, next
-
-
-
-
Method Detail
-
executeSql
public void executeSql(Binder binder, SpiQuery.Type type) throws SQLException
Prepare and execute the SQL using the Binder.- Overrides:
executeSql
in classAbstractSqlQueryRequest
- Throws:
SQLException
-
findEachWhile
public void findEachWhile(Predicate<T> consumer)
-
readNextBean
public T readNextBean() throws SQLException
- Throws:
SQLException
-
-