Query that holds a reference to the underlying
PreparedStatement without closing it, for reuse.
It was created via Query#keepStatement(boolean) and must be treated
as a resource, e.g. in a try-with-resources statement.
| Modifier and Type | Method and Description |
|---|---|
| public @NotNull CloseableQuery | 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)Redeclares org. |
| public @NotNull CloseableQuery | bind(int
The parameter index, starting with 1 index, Object The new bind value. value)Redeclares org. |
| public void | |
| public @NotNull CloseableQuery | keepStatement(boolean
Whether to keep the underlying statement open keepStatement)Redeclares org. |
| public @NotNull CloseableQuery | poolable(boolean poolable)
Redeclares org. java. created by this query
should be java..
|
| public @NotNull CloseableQuery | queryTimeout(int seconds)
Redeclares org. Statement.
|
| bind | back to summary |
|---|---|
| public @NotNull CloseableQuery bind(String param, Object value) throws IllegalArgumentException, DataTypeException Redeclares org. Doc from org. Bind a new value to a named parameter.
[#1886] If the bind value with name
| |
| bind | back to summary |
|---|---|
| public @NotNull CloseableQuery bind(int index, Object value) throws IllegalArgumentException, DataTypeException Redeclares org. Doc from org. Bind a new value to an indexed parameter.
[#1886] If the bind value at
| |
| close | back to summary |
|---|---|
| public void close() throws DataAccessException Redeclares java. Close the underlying statement.
This closes the query's underlying
| |
| keepStatement | back to summary |
|---|---|
| public @NotNull CloseableQuery keepStatement(boolean keepStatement) Redeclares org. Doc from org. Keep the query's underlying statement open after execution.
This indicates to jOOQ that the query's underlying | |
| poolable | back to summary |
|---|---|
| public @NotNull CloseableQuery poolable(boolean poolable) Redeclares 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 @NotNull CloseableQuery queryTimeout(int seconds) Redeclares org. Doc from org. Specify the query timeout in number of seconds for the underlying JDBC
| |