public class Query extends SqlStatement<Query> implements ResultBearing
| Modifier and Type | Method and Description |
|---|---|
This |
addCustomizer(StatementCustomizer customizer)
Provides a means for custom statement modification.
|
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. |
Query |
fetchForward()
Specify that the fetch order should be forward, uses the underlying
Statement.setFetchDirection(int) |
Query |
fetchReverse()
Specify that the fetch order should be reversed, uses the underlying
Statement.setFetchDirection(int) |
ConfigRegistry |
getConfig()
Returns the configuration registry associated with this object.
|
StatementContext |
getContext() |
Handle |
getHandle() |
<R> R |
mapResultSet(ResultSetMapper<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, bindList, bindList, bindMap, bindNamedArgumentFinder, bindNull, bindNull, cleanupHandleCommit, cleanupHandleRollback, defineList, defineList, getBinding, getSql, setFetchDirection, setQueryTimeoutclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcollectInto, collectInto, collectInto, map, map, mapTo, mapTo, mapTo, mapToBean, mapToMap, of, reduceResultSet, reduceRowsconfigure, define, getConfig, registerArgument, registerArrayType, registerArrayType, registerArrayType, registerCollector, registerColumnMapper, registerColumnMapper, registerColumnMapper, registerExtension, registerRowMapper, registerRowMapper, registerRowMapper, setSqlArrayArgumentStrategy, setSqlParser, setTemplateEngine, setTimingCollectorpublic Query concurrentUpdatable()
public <R> R execute(ResultProducer<R> producer)
ResultProducer.R - the type of the resultproducer - the result producer.public Query fetchForward()
Statement.setFetchDirection(int)public Query fetchReverse()
Statement.setFetchDirection(int)public <R> R mapResultSet(ResultSetMapper<R> mapper)
ResultBearingmapResultSet in interface ResultBearingR - result type returned by the mapper.mapper - result set mapperpublic 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 final This addCustomizer(StatementCustomizer customizer)
setMaxRows(int)customizer - instance to be used to customize a statementpublic void close()
close in interface Closeableclose in interface AutoCloseablepublic ConfigRegistry getConfig()
ConfigurablegetConfig in interface Configurable<This>public final StatementContext getContext()
public Handle getHandle()
Copyright © 2017. All rights reserved.