Package io.ebeaninternal.server.core
Class RelationalQueryRequest
- java.lang.Object
-
- io.ebeaninternal.server.core.AbstractSqlQueryRequest
-
- io.ebeaninternal.server.core.RelationalQueryRequest
-
public final class RelationalQueryRequest extends AbstractSqlQueryRequest
Wraps the objects involved in executing a SqlQuery.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SqlRow
createNewRow()
Read and return the next SqlRow.void
findEach(Consumer<SqlRow> consumer)
void
findEachWhile(Predicate<SqlRow> consumer)
List<SqlRow>
findList()
<T> T
findSingleAttribute(Class<T> cls)
<T> List<T>
findSingleAttributeList(Class<T> cls)
ResultSet
getResultSet()
void
incrementRows()
void
logSummary()
void
mapEach(RowConsumer consumer)
<T> List<T>
mapList(RowMapper<T> mapper)
<T> T
mapOne(RowMapper<T> mapper)
-
Methods inherited from class io.ebeaninternal.server.core.AbstractSqlQueryRequest
close, endTransIfRequired, executeSql, getBindLog, getServer, getSql, getTransaction, initTransIfRequired, isLogSql, next
-
-
-
-
Method Detail
-
findSingleAttributeList
public <T> List<T> findSingleAttributeList(Class<T> cls)
-
findSingleAttribute
public <T> T findSingleAttribute(Class<T> cls)
-
findEachWhile
public void findEachWhile(Predicate<SqlRow> consumer)
-
createNewRow
public SqlRow createNewRow() throws SQLException
Read and return the next SqlRow.- Throws:
SQLException
-
logSummary
public void logSummary()
-
getResultSet
public ResultSet getResultSet()
-
incrementRows
public void incrementRows()
-
mapList
public <T> List<T> mapList(RowMapper<T> mapper) throws SQLException
- Throws:
SQLException
-
mapOne
public <T> T mapOne(RowMapper<T> mapper) throws SQLException
- Throws:
SQLException
-
mapEach
public void mapEach(RowConsumer consumer) throws SQLException
- Throws:
SQLException
-
-