Class RelationalQueryRequest
java.lang.Object
io.ebeaninternal.server.core.AbstractSqlQueryRequest
io.ebeaninternal.server.core.RelationalQueryRequest
- All Implemented Interfaces:
CancelableQuery
Wraps the objects involved in executing a SqlQuery.
-
Field Summary
Fields inherited from class AbstractSqlQueryRequest
bindLog, pstmt, query, resultSet, server, sql, startNano, transaction -
Method Summary
Modifier and TypeMethodDescriptionRead and return the next SqlRow.voidvoidfindEachWhile(Predicate<SqlRow> consumer) findList()<T> TfindSingleAttribute(Class<T> cls) <T> booleanfindSingleAttributeEach(Class<T> cls, Consumer<T> consumer) <T> List<T> findSingleAttributeList(Class<T> cls) voidvoidmapEach(RowConsumer consumer) <T> Tbooleannext()Return true if we can navigate to the next row.protected voidprotected voidsetResultSet(ResultSet resultSet, Object planKey) Methods inherited from class AbstractSqlQueryRequest
cancel, close, endTransIfRequired, executeAsSql, executeSql, flushJdbcBatchOnQuery, getBindLog, getSql, initTransIfRequired, isLogSql, setAutoCommitOnFindIterate, setDefaultFetchBuffer
-
Method Details
-
setResultSet
- Throws:
SQLException
-
requestComplete
protected void requestComplete()- Specified by:
requestCompletein classAbstractSqlQueryRequest
-
findSingleAttributeEach
-
findSingleAttributeList
-
findSingleAttribute
-
findEach
-
findEachWhile
-
findList
-
createNewRow
Read and return the next SqlRow.- Throws:
SQLException
-
logSummary
public void logSummary() -
resultSet
-
next
Description copied from class:AbstractSqlQueryRequestReturn true if we can navigate to the next row.- Specified by:
nextin classAbstractSqlQueryRequest- Throws:
SQLException
-
mapOne
- Throws:
SQLException
-
mapEach
- Throws:
SQLException
-