public class Query extends SqlStatement<Query> implements ResultBearing
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
Query |
concurrentUpdatable()
Specify that the result set should be concurrent updatable.
|
<R> R |
execute(ResultProducer<R> producer)
Executes the query, returning the result obtained from the given
ResultProducer. |
ConfigRegistry |
getConfig()
Returns the configuration registry associated with this object.
|
StatementContext |
getContext() |
Handle |
getHandle() |
<R> R |
scanResultSet(ResultSetScanner<R> mapper)
Invokes the mapper with a result set supplier, and returns the value returned by the mapper.
|
Query |
setFetchSize(int fetchSize)
Specify the fetch size for the query.
|
Query |
setMaxFieldSize(int maxFields)
Specify the maximum field size in the result set.
|
Query |
setMaxRows(int maxRows)
Specify the maximum number of rows the query is to return.
|
bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bind, bindASCIIStream, bindASCIIStream, bindBean, bindBean, bindBeanList, bindBinaryStream, bindBinaryStream, bindBySqlType, bindBySqlType, bindByType, bindByType, bindByType, bindByType, bindByType, bindByType, bindFields, bindFields, bindList, bindList, bindMap, bindMethods, bindMethods, bindMethodsList, bindNamedArgumentFinder, bindNull, bindNull, bindNVarchar, bindNVarchar, bindPojo, bindPojo, cleanupHandleCommit, cleanupHandleRollback, defineList, defineList, defineNamedBindings, getBinding, getSql, setQueryTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcollectInto, collectInto, collectInto, collectRows, map, map, map, mapTo, mapTo, mapTo, mapTo, mapToBean, mapToMap, mapToMap, mapToMap, of, reduceResultSet, reduceRows, reduceRows, reduceRowsaddCustomizer, configure, define, getConfig, registerArgument, registerArrayType, registerArrayType, registerArrayType, registerArrayType, registerCollector, registerColumnMapper, registerColumnMapper, registerColumnMapper, registerColumnMapper, registerColumnMapper, registerExtension, registerRowMapper, registerRowMapper, registerRowMapper, registerRowMapper, setMapKeyColumn, setMapValueColumn, setSqlArrayArgumentStrategy, setSqlLogger, setSqlParser, setTemplateEnginepublic Query concurrentUpdatable()
public <R> R execute(ResultProducer<R> producer)
ResultProducer.R - the type of the resultproducer - the result producer.public <R> R scanResultSet(ResultSetScanner<R> mapper)
ResultBearingscanResultSet in interface ResultBearingR - result type returned by the mapper.mapper - result set scannerpublic Query setFetchSize(int fetchSize)
fetchSize - the number of rows to fetch in a bunchpublic Query setMaxFieldSize(int maxFields)
Statement.setMaxFieldSize(int)maxFields - maximum field sizepublic Query setMaxRows(int maxRows)
Statement.setMaxRows(int)}.maxRows - maximum number of rows to returnpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic ConfigRegistry getConfig()
ConfigurablegetConfig in interface Configurable<This>public final StatementContext getContext()
public Handle getHandle()
Copyright © 2019. All rights reserved.