Instances can be created using DSL#query(String) and overloads,
or by creating a subtype.
| Modifier and Type | Method and Description |
|---|---|
| public @NotNull Query | 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)Bind a new value to a named parameter. |
| public @NotNull Query | |
| public void | |
| public int | |
| public @NotNull CompletionStage | Returns: A result value, depending on the concrete implementation ofQuery:
Execute the query in a new |
| public @NotNull CompletionStage | Returns: A result value, depending on the concrete implementation ofQuery:
Execute the query in a new |
| public boolean | |
| public @NotNull CloseableQuery | keepStatement(boolean
Whether to keep the underlying statement open keepStatement)Keep the query's underlying statement open after execution. |
| public @NotNull Query | poolable(boolean poolable)
Specify whether any JDBC |
| public @NotNull Query | queryTimeout(int seconds)
Specify the query timeout in number of seconds for the underlying JDBC
|
| bind | back to summary |
|---|---|
| public @NotNull Query bind(String param, Object value) throws IllegalArgumentException, DataTypeException Bind a new value to a named parameter.
[#1886] If the bind value with name
| |
| bind | back to summary |
|---|---|
| public @NotNull Query bind(int index, Object value) throws IllegalArgumentException, DataTypeException Bind a new value to an indexed parameter.
[#1886] If the bind value at
| |
| cancel | back to summary |
|---|---|
| public void cancel() throws DataAccessException Cancel the underlying statement.
This cancels the query's underlying
| |
| execute | back to summary |
|---|---|
| public int execute() throws DataAccessException Execute the query, if it has been created with a proper configuration.
| |
| executeAsync | back to summary |
|---|---|
| public @NotNull CompletionStage Execute the query in a new
The result is asynchronously completed by a task running in an
| |
| executeAsync | back to summary |
|---|---|
| public @NotNull CompletionStage Execute the query in a new
| |
| isExecutable | back to summary |
|---|---|
| public boolean isExecutable() 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 @NotNull CloseableQuery keepStatement(boolean keepStatement) Keep the query's underlying statement open after execution.
This indicates to jOOQ that the query's underlying
| |
| poolable | back to summary |
|---|---|
| public @NotNull Query poolable(boolean poolable) 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 @NotNull Query queryTimeout(int seconds) Specify the query timeout in number of seconds for the underlying JDBC
| |