public class BatchSQLQuery extends BaseSQLQuery
| Modifier and Type | Field and Description |
|---|---|
protected CustomQuery |
query |
dbs, fieldNames| Modifier | Constructor and Description |
|---|---|
protected |
BatchSQLQuery(CustomQuery customQuery) |
| Modifier and Type | Method and Description |
|---|---|
void |
iterate(Function<Row,Boolean> handler,
sirius.kernel.commons.Limit limit)
Executes the given query by invoking the given handler for each result row.
|
protected void |
writeBlobToParameter(String name,
Blob blob) |
first, iterateAll, loadIntoRow, processResultSet, queryFirst, queryList, queryListprotected CustomQuery query
protected BatchSQLQuery(CustomQuery customQuery)
public void iterate(Function<Row,Boolean> handler, @Nullable sirius.kernel.commons.Limit limit) throws SQLException
BaseSQLQuery
Consider using the method instead of BaseSQLQuery.queryList() if a large result set is expected as this method. As
this method only processes one row at a time, this might be much more memory efficient.
iterate in class BaseSQLQueryhandler - the row handler invoked for each rowlimit - the limit which controls which and how many rows are output. Can be null to indicate
that there is no limit.SQLException - in case of a database errorprotected void writeBlobToParameter(String name, Blob blob) throws SQLException
writeBlobToParameter in class BaseSQLQuerySQLExceptionCopyright © 2018. All rights reserved.