| Modifier and Type | Field and Description |
|---|---|
| private volatile boolean | cancel
If this query was canceled. |
| private boolean | |
| protected final SessionLocal | session
The session. |
| private final String | |
| protected long | startTimeNanos
The last start time. |
| private final Trace | trace
The trace module. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | cancel()
Implements org. Cancel the statement if it is still processing. |
| public boolean | Returns: true if it can be re-usedWhether the command is already closed (in which case it can be re-used). |
| protected void | |
| public void | |
| private void | |
| public BatchResult | executeBatchUpdate(ArrayList<Value[]>
batch parameters batchParameters, Object null or false if generated keys are not needed,
true if generated keys should be configured
automatically, int[] to specify column indices to
return generated keys from, or String[] to specify
column names to return generated keys fromImplements org. Executes the statement with multiple sets of parameters. |
| public ResultInterface | Returns: the result setthe maximum number of rows to return maxrows, boolean if the result set must be scrollable (ignored) scrollable)Implements org. Execute a query and return the result. |
| public ResultWithGeneratedKeys | executeUpdate(Object
null or false if generated keys are not
needed, true if generated keys should be configured
automatically, int[] to specify column indices to
return generated keys from, or String[] to specify
column names to return generated keys fromImplements org. Execute the statement |
| private ResultWithGeneratedKeys | |
| private long | |
| protected final Database | |
| public abstract Set | |
| public final ResultInterface | getMetaData()
Implements org. Get an empty result set containing the meta data of the result. |
| public abstract ArrayList | Returns: the list of parametersRedeclares org. Get the list of parameters. |
| public boolean | |
| public abstract boolean | Returns: true if it isRedeclares org. Check if this command is a query. |
| public abstract boolean | |
| protected abstract boolean | Returns: is this command can be repeated again on locking failureReturns is this command can be repeated again on locking failure. |
| public abstract boolean | |
| public abstract ResultInterface | Returns: the local result setthe maximum number of rows returned maxrows)Execute a query statement, if this is possible. |
| public abstract ResultInterface | |
| public void | |
| public void | |
| pack-priv void | |
| pack-priv void | |
| public void | stop(boolean
commit the session if auto-commit is enabled commitIfAutoCommit)Implements org. Stop the command execution, release all locks and resources. |
| public String | |
| public abstract ResultWithGeneratedKeys | Returns: the update count and generated keys, if anyfalse if generated keys are not needed, true if
generated keys should be configured automatically, int[]
to specify column indices to return generated keys from, or
String[] to specify column names to return generated keys
fromExecute an updating statement (for example insert, delete, or update), if this is possible. |
| cancel | back to summary |
|---|---|
| private volatile boolean cancel If this query was canceled. | |
| canReuse | back to summary |
|---|---|
| private boolean canReuse | |
| session | back to summary |
|---|---|
| protected final SessionLocal session The session. | |
| sql | back to summary |
|---|---|
| private final String sql | |
| startTimeNanos | back to summary |
|---|---|
| protected long startTimeNanos The last start time. | |
| trace | back to summary |
|---|---|
| private final Trace trace The trace module. | |
| Command | back to summary |
|---|---|
| pack-priv Command(SessionLocal session, String sql) | |
| cancel | back to summary |
|---|---|
| public void cancel() Implements org. Doc from org. Cancel the statement if it is still processing.
| |
| canReuse | back to summary |
|---|---|
| public boolean canReuse() Whether the command is already closed (in which case it can be re-used).
| |
| checkCanceled | back to summary |
|---|---|
| protected void checkCanceled() Check if this command has been canceled, and throw an exception if yes.
| |
| close | back to summary |
|---|---|
| public void close() Implements org. Doc from org. Close the statement.
| |
| commitIfNonTransactional | back to summary |
|---|---|
| private void commitIfNonTransactional() | |
| executeBatchUpdate | back to summary |
|---|---|
| public BatchResult executeBatchUpdate(ArrayList<Value[]> batchParameters, Object generatedKeysRequest) Implements org. Doc from org. Executes the statement with multiple sets of parameters.
| |
| executeQuery | back to summary |
|---|---|
| public ResultInterface executeQuery(long maxrows, boolean scrollable) Implements org. Execute a query and return the result.
This method prepares everything and calls
| |
| executeUpdate | back to summary |
|---|---|
| public ResultWithGeneratedKeys executeUpdate(Object generatedKeysRequest) Implements org. Doc from org. Execute the statement
| |
| executeUpdate | back to summary |
|---|---|
| private ResultWithGeneratedKeys executeUpdate(Object generatedKeysRequest, boolean commitIfAutoCommit) | |
| filterConcurrentUpdate | back to summary |
|---|---|
| private long filterConcurrentUpdate(DbException e, long start) | |
| getDatabase | back to summary |
|---|---|
| protected final Database getDatabase() | |
| getDependencies | back to summary |
|---|---|
| public abstract Set | |
| getMetaData | back to summary |
|---|---|
| public final ResultInterface getMetaData() Implements org. Doc from org. Get an empty result set containing the meta data of the result.
| |
| getParameters | back to summary |
|---|---|
| public abstract ArrayList Redeclares org. Get the list of parameters.
| |
| isCacheable | back to summary |
|---|---|
| public boolean isCacheable() | |
| isQuery | back to summary |
|---|---|
| public abstract boolean isQuery() Redeclares org. Check if this command is a query.
| |
| isReadOnly | back to summary |
|---|---|
| public abstract boolean isReadOnly() Check if this command is read only.
| |
| isRetryable | back to summary |
|---|---|
| protected abstract boolean isRetryable() Returns is this command can be repeated again on locking failure.
| |
| isTransactional | back to summary |
|---|---|
| public abstract boolean isTransactional() Check if this command is transactional. If it is not, then it forces the current transaction to commit.
| |
| query | back to summary |
|---|---|
| public abstract ResultInterface query(long maxrows) Execute a query statement, if this is possible.
| |
| queryMeta | back to summary |
|---|---|
| public abstract ResultInterface queryMeta() Get an empty result set containing the meta data.
| |
| reuse | back to summary |
|---|---|
| public void reuse() The command is now re-used, therefore reset the canReuse flag, and the parameter values. | |
| setCanReuse | back to summary |
|---|---|
| public void setCanReuse(boolean canReuse) | |
| setProgress | back to summary |
|---|---|
| pack-priv void setProgress(Database database, int state) | |
| start | back to summary |
|---|---|
| pack-priv void start() Start the stopwatch. | |
| stop | back to summary |
|---|---|
| public void stop(boolean commitIfAutoCommit) Implements org. Doc from org. Stop the command execution, release all locks and resources.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| update | back to summary |
|---|---|
| public abstract ResultWithGeneratedKeys update(Object generatedKeysRequest) Execute an updating statement (for example insert, delete, or update), if this is possible.
| |