| Modifier and Type | Field and Description |
|---|---|
| pack-priv Collection | |
| pack-priv Table | |
| pack-priv final Q | |
| pack-priv final boolean |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public final void | accept(Context<?> ctx)
Implements org. QueryPart can accept a Context object
in order to render a SQL string or to bind its variables.
|
| public final void | attach(Configuration
A configuration or configuration)null, if you wish to
detach this Attachable from its previous
configuration.Implements org. Configuration.
|
| public final CloseableResultQuery | bind(String
The named parameter name. If this is a number, then this is
the same as calling param, Object bind(int, Object)The new bind value. value)Implements org. |
| public final CloseableResultQuery | bind(int
The parameter index, starting with 1 index, Object The new bind value. value)Implements org. |
| public final void | |
| public final void | |
| public final <X extends Record> CloseableResultQuery | coerce(Table<X> table)
Implements org. |
| public final CloseableResultQuery | coerce(Collection<? extends Field<?>> fields)
Implements org. |
| public final Configuration | configuration()
Overrides org. Implements org. Configuration, or null if
no Configuration is attached.
|
| public final void | |
| public final int | execute()
Implements org. |
| public final CompletionStage | |
| public final CompletionStage | executeAsync(Executor executor)
Implements org. CompletionStage that is asynchronously
completed by a task running in the given executor.
|
| public final Result | |
| public final CloseableResultQuery | fetchSize(int rows)
Implements org. Statement.
|
| public final List | getBindValues()
Implements org. |
| pack-priv final Q | |
| public final Field | getFields(ThrowingSupplier<? extends ResultSetMetaData, SQLException> rs)
Overrides default org.
Deprecated
as a consequence of
Get a list of fields provided a result set.
Field being deprecated.
|
| public final Field | getFields()
Implements org.
Deprecated
as a consequence of
Get a list of fields if we don't have a result set.
Field being deprecated.
|
| public final Param | getParam(String name)
Implements org.
Deprecated
as a consequence of
Get a named parameter from the Param being deprecated.
Query, provided its name.
|
| public final Map | |
| public final Class | getRecordType()
Implements org. |
| public final Result | getResult()
Implements org. |
| public final String | getSQL()
Implements org. |
| public final String | getSQL(ParamType
How to render parameters. This overrides values in
paramType)Settings#getStatementType()Implements org. |
| public final CloseableResultQuery | intern(Field<?>...
The fields whose values should be interned fields)Implements org.
Deprecated
as a consequence of
Specify a set of fields whose values should be interned.
Field being deprecated.
|
| public final CloseableResultQuery | intern(int...
The field indexes whose values should be interned fieldIndexes)Implements org. |
| public final CloseableResultQuery | intern(String...
The field names whose values should be interned fieldNames)Implements org. |
| public final CloseableResultQuery | intern(Name...
The field names whose values should be interned fieldNames)Implements org. |
| public final boolean | isExecutable()
Implements org. |
| public final CloseableResultQuery | keepStatement(boolean
Whether to keep the underlying statement open keepStatement)Implements org. |
| public final CloseableResultQuery | maxRows(int rows)
Implements org. Statement.
|
| public final CloseableResultQuery | poolable(boolean poolable)
Implements org. java. created by this query
should be java..
|
| public final CloseableResultQuery | queryTimeout(int timeout)
Implements org. Statement.
|
| public final CloseableResultQuery | resultSetConcurrency(int resultSetConcurrency)
Implements org. ResultSet concurrency of ResultSet
objects created by jOOQ.
|
| public final CloseableResultQuery | resultSetHoldability(int resultSetHoldability)
Implements org. ResultSet holdability of ResultSet
objects created by jOOQ.
|
| public final CloseableResultQuery | resultSetType(int resultSetType)
Implements org. ResultSet type of ResultSet objects
created by jOOQ.
|
| coerceFields | back to summary |
|---|---|
| pack-priv Collection<? extends Field<?>> coerceFields | |
| coerceTable | back to summary |
|---|---|
| pack-priv Table<?> coerceTable | |
| delegate | back to summary |
|---|---|
| pack-priv final Q delegate | |
| returningResult | back to summary |
|---|---|
| pack-priv final boolean returningResult | |
| AbstractDMLQueryAsResultQuery | back to summary |
|---|---|
| pack-priv AbstractDMLQueryAsResultQuery(Q delegate, boolean returningResult) | |
| accept | back to summary |
|---|---|
| public final void accept(Context<?> ctx) Implements org. Doc from org. This
| |
| attach | back to summary |
|---|---|
| public final void attach(Configuration configuration) Implements org. Doc from org. Attach this object to a new
| |
| bind | back to summary |
|---|---|
| public final CloseableResultQuery Implements org. Doc from org. Bind a new value to a named parameter.
[#1886] If the bind value with name
| |
| bind | back to summary |
|---|---|
| public final CloseableResultQuery Implements org. Doc from org. Bind a new value to an indexed parameter.
[#1886] If the bind value at
| |
| cancel | back to summary |
|---|---|
| public final void cancel() throws DataAccessException Implements org. Doc from org. Cancel the underlying statement.
This cancels the query's underlying
| |
| close | back to summary |
|---|---|
| public final void close() throws DataAccessException Implements org. Doc from org. Close the underlying statement.
This closes the query's underlying
| |
| coerce | back to summary |
|---|---|
| public final <X extends Record> CloseableResultQuery Implements org. Doc from org. Coerce the result record type of this query to that of a table.
| |
| coerce | back to summary |
|---|---|
| public final CloseableResultQuery Implements org. Doc from org. Coerce the result record type of this query to that of a set of fields.
| |
| configuration | back to summary |
|---|---|
| public final Configuration configuration() Overrides org. Implements org. Doc from org. Get the currently attached
| |
| detach | back to summary |
|---|---|
| public final void detach() Implements org. Doc from org. Detach this object from its current
This is the same as calling
| |
| execute | back to summary |
|---|---|
| public final int execute() throws DataAccessException Implements org. Doc from org. Execute the query, if it has been created with a proper configuration.
| |
| executeAsync | back to summary |
|---|---|
| public final CompletionStage Implements org. Doc from org. Execute the query in a new
The result is asynchronously completed by a task running in an
| |
| executeAsync | back to summary |
|---|---|
| public final CompletionStage Implements org. Doc from org. Execute the query in a new
| |
| fetch | back to summary |
|---|---|
| public final Result Implements org. Doc from org. Execute the query and return the generated result.
The result and its contained records are attached to the original
Lifecycle guaranteesThis method completes the wholeConnectionProvider and ExecuteListener lifecycles,
eagerly fetching all results into memory. Underlying JDBC
ResultSets are always closed. Underlying JDBC
PreparedStatements are closed, unless
ResultQuery#keepStatement(boolean) is set.
In order to keep open
This method is not affected by
| |
| fetchSize | back to summary |
|---|---|
| public final CloseableResultQuery Implements org. Doc from org. Specify the fetch size of the underlying
Regardless of this setting, Dialect-specific remarks:
| |
| getBindValues | back to summary |
|---|---|
| public final List Implements org. Doc from org. Retrieve the bind values that will be bound by this Query.
Unlike
| |
| getDelegate | back to summary |
|---|---|
| pack-priv final Q getDelegate() | |
| getFields | back to summary |
|---|---|
| public final Field Overrides default org. Doc from org. Deprecated as a consequence of Get a list of fields provided a result set.
| |
| getFields | back to summary |
|---|---|
| public final Field Implements org. Doc from org. Deprecated as a consequence of Get a list of fields if we don't have a result set.
| |
| getParam | back to summary |
|---|---|
| public final Param Implements org. Doc from org. Deprecated as a consequence of Get a named parameter from the
Bind values created with
| |
| getParams | back to summary |
|---|---|
| public final Map Implements org. Doc from org. Get a
Bind values created with
| |
| getRecordType | back to summary |
|---|---|
| public final Class Implements org. Doc from org. The record type produced by this query.
| |
| getResult | back to summary |
|---|---|
| public final Result Implements org. Doc from org. Return the result generated by a previous call to execute(). | |
| getSQL | back to summary | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| public final String getSQL() Implements org. Doc from org. Retrieve the SQL code rendered by this Query. Use this method, when you want to use jOOQ for object oriented query creation, but execute the query with some other technology, such as
Note, this is the same as calling
[#1520] Note that the query actually being executed might not contain any
bind variables, in case the number of bind variables exceeds your SQL
dialect's maximum number of supported bind variables. This is not
reflected by this method, which will only use the
| ||||||||||
| getSQL | back to summary |
|---|---|
| public final String getSQL(ParamType paramType) Implements org. Doc from org. Retrieve the SQL code rendered by this Query.
[#1520] Note that the query actually being executed might not contain any
bind variables, in case the number of bind variables exceeds your SQL
dialect's maximum number of supported bind variables. This is not
reflected by this method, which will only use
See
| |
| intern | back to summary |
|---|---|
| public final CloseableResultQuery Implements org. Doc from org. Deprecated as a consequence of Specify a set of fields whose values should be interned.
Unlike
| |
| intern | back to summary |
|---|---|
| public final CloseableResultQuery Implements org. Doc from org. Specify a set of field indexes whose values should be interned.
Unlike
| |
| intern | back to summary |
|---|---|
| public final CloseableResultQuery Implements org. Doc from org. Specify a set of field names whose values should be interned.
Unlike
| |
| intern | back to summary |
|---|---|
| public final CloseableResultQuery Implements org. Doc from org. Specify a set of field names whose values should be interned.
Unlike
| |
| isExecutable | back to summary |
|---|---|
| public final boolean isExecutable() Implements org. Doc from org. Whether this query is executable in its current state.
DML queries may be incomplete in structure and thus not executable.
Calling
| |
| keepStatement | back to summary |
|---|---|
| public final CloseableResultQuery Implements org. Doc from org. Keep the query's underlying statement open after execution.
This indicates to jOOQ that the query's underlying
| |
| maxRows | back to summary |
|---|---|
| public final CloseableResultQuery Implements org. Doc from org. Specify the maximum number of rows returned by the underlying
This is not the same as setting a
| |
| poolable | back to summary |
|---|---|
| public final CloseableResultQuery Implements org. Doc from org. Specify whether any JDBC If this method is not called on jOOQ types, then jOOQ will not specify the flag on JDBC either, resulting in JDBC's default behaviour.
| |
| queryTimeout | back to summary |
|---|---|
| public final CloseableResultQuery Implements org. Doc from org. Specify the query timeout in number of seconds for the underlying JDBC
| |
| resultSetConcurrency | back to summary |
|---|---|
| public final CloseableResultQuery Implements org. Doc from org. Specify the
This will affect the way you may perceive
| |
| resultSetHoldability | back to summary |
|---|---|
| public final CloseableResultQuery Implements org. Doc from org. Specify the
This will affect the way you may perceive
| |
| resultSetType | back to summary |
|---|---|
| public final CloseableResultQuery Implements org. Doc from org. Specify the
This will affect the way you may perceive
| |