| Modifier and Type | Method and Description |
|---|---|
| public void | addDependency(Dependency
The dependency to track. dy)Track a Dependency within this StatementContext. |
| public void | cancel()
Indicate that the statement which has allocated this statement context should cancel its execution. |
| public void | |
| public void | |
| public Activation | |
| public short | |
| public SQLSessionContext | |
| public String | |
| public boolean | Returns: true if the statement was invalidated.Tells if this statement has been invalidated. |
| public NoPutResultSet[] | Returns: NoPutResultSet[] The (sparse) array of tops of subquery ResultSet treesGet the subquery tracking array for this query. |
| public boolean | |
| public boolean | Returns: true if we are in a trigger contextReturns whether we started from within the context of a trigger or not. |
| public boolean | |
| public boolean | Returns: true if needs to be atomicIndicates whether the statement needs to be executed atomically or not, i.e., whether a commit/rollback is permitted by a connection nested in this statement. |
| public boolean | Returns: true if the statement execution should be cancelled.Checks if the statement which has allocated this statement context should cancel its execution. |
| public boolean | Returns: true if the statement is for creating a read only, non-updatable ResultSetIs this statement for a read only, non-updatable ResultSet |
| public boolean | Returns: true if this StatementContext is on the context stack. false otherwise.Reports whether this StatementContext is on the context stack. |
| public void | |
| public void | setActivation(Activation
activation a)Mark this statement context as associated with this activation. |
| public void | setInUse(boolean
true if the parent started in the context of a trigger inTrigger, boolean true if the statement must be executed
atomically isAtomic, boolean true if the statement is for producing non-updatable
resultset isForReadOnly, String the text of the statement. Needed for any language
statement (currently, for any statement that can cause a trigger
to fire). Please set this unless you are some funky jdbc setXXX
method or something. stmtText, ParameterValueSet parameter value set, if it has one pvs, long timeout value for the statement, in milliseconds.
Zero means no timeout. timeoutMillis)Mark this context as being in use. |
| public void | setParentRollback()
Indicate that, in the event of a statement-level exception, this context is NOT the last one that needs to be rolled back--rather, it is nested within some other statement context, and that other context needs to be rolled back, too. |
| public void | |
| public void | setSQLAllowed(short allow, boolean
set to true to override more restrictive setting. Used to
reset the permissions after a function call. force)Set the level of SQL allowed in this and subsequent nested statements due to a routine call. |
| public void | setSQLSessionContext(SQLSessionContext
the SQL session context ctx)Set the current SQL session context |
| public void | setSubqueryResultSet(int
The subquery # for this subquery subqueryNumber, NoPutResultSet The NoPutResultSet at the top of the subquery subqueryResultSet, int The total # of subqueries in the entire query numSubqueries)Set the appropriate entry in the subquery tracking array for the specified subquery. |
| public void | |
| public void | setTopResultSet(ResultSet
The top ResultSet in the ResultSet tree topResultSet, NoPutResultSet[] (Sparse) of tops of subquery ResultSet trees subqueryTrackingArray)Set the top ResultSet in the ResultSet tree for close down on an error. |
| addDependency | back to summary |
|---|---|
| public void addDependency(Dependency dy) throws StandardException Track a Dependency within this StatementContext. (We need to clear any dependencies added within this context on an error.
| |
| cancel | back to summary |
|---|---|
| public void cancel() Indicate that the statement which has allocated this statement context should cancel its execution. Usually called as a consequence of Statement.cancel() or a query timeout set with Statement.setQueryTimeout(). | |
| clearInUse | back to summary |
|---|---|
| public void clearInUse() Mark this context as not in use. This is important because we always leave the top statement context on the stack, and we don't want to clean it up if a statement level exception happens while the context is not in use. | |
| clearSavePoint | back to summary |
|---|---|
| public void clearSavePoint() throws StandardException Clear the save point for the current statement.
| |
| getActivation | back to summary |
|---|---|
| public Activation getActivation() Get activation associated with this statement context, if any. Used to link up stack of activations of calls in nested connections, see GenericPreparedStatement#getActivation. | |
| getSQLAllowed | back to summary |
|---|---|
| public short getSQLAllowed() Get the setting of the SQL allowed state. | |
| getSQLSessionContext | back to summary |
|---|---|
| public SQLSessionContext getSQLSessionContext() Get the current SQL session context.
| |
| getStatementText | back to summary |
|---|---|
| public String getStatementText() Return the text of the current statement. Note that this may be null. It is currently not set up correctly for ResultSets that aren't single row result sets (e.g SELECT) and setXXXX/getXXXX jdbc methods.
| |
| getStatementWasInvalidated | back to summary |
|---|---|
| public boolean getStatementWasInvalidated() Tells if this statement has been invalidated.
| |
| getSubqueryTrackingArray | back to summary |
|---|---|
| public NoPutResultSet[] getSubqueryTrackingArray() throws StandardException Get the subquery tracking array for this query. (Useful for runtime statistics.)
| |
| getSystemCode | back to summary |
|---|---|
| public boolean getSystemCode() Return true if this statement is system code. | |
| inTrigger | back to summary |
|---|---|
| public boolean inTrigger() Returns whether we started from within the context of a trigger or not.
| |
| inUse | back to summary |
|---|---|
| public boolean inUse() Is this statement context in use or not.
| |
| isAtomic | back to summary |
|---|---|
| public boolean isAtomic() Indicates whether the statement needs to be executed atomically or not, i.e., whether a commit/rollback is permitted by a connection nested in this statement.
| |
| isCancelled | back to summary |
|---|---|
| public boolean isCancelled() Checks if the statement which has allocated this statement context should cancel its execution.
| |
| isForReadOnly | back to summary |
|---|---|
| public boolean isForReadOnly() Is this statement for a read only, non-updatable ResultSet
| |
| onStack | back to summary |
|---|---|
| public boolean onStack() Reports whether this StatementContext is on the context stack.
| |
| resetSavePoint | back to summary |
|---|---|
| public void resetSavePoint() throws StandardException If this statement context has a savepoint, then it is reset to the current point. Otherwise, it is a noop.
| |
| setActivation | back to summary |
|---|---|
| public void setActivation(Activation a) Mark this statement context as associated with this activation.
| |
| setInUse | back to summary |
|---|---|
| public void setInUse(boolean inTrigger, boolean isAtomic, boolean isForReadOnly, String stmtText, ParameterValueSet pvs, long timeoutMillis) Mark this context as being in use.
| |
| setParentRollback | back to summary |
|---|---|
| public void setParentRollback() Indicate that, in the event of a statement-level exception, this context is NOT the last one that needs to be rolled back--rather, it is nested within some other statement context, and that other context needs to be rolled back, too. | |
| setSavePoint | back to summary |
|---|---|
| public void setSavePoint() throws StandardException Set a save point for the current statement. Note This needs to be off of the StatementContext so that it gets cleared on a statement error.
| |
| setSQLAllowed | back to summary |
|---|---|
| public void setSQLAllowed(short allow, boolean force) Set the level of SQL allowed in this and subsequent nested statements due to a routine call. Value must be one of RoutineAliasInfo.{MODIFIES_SQL_DATA, READS_SQL_DATA, CONTAINS_SQL, NO_SQL}
| |
| setSQLSessionContext | back to summary |
|---|---|
| public void setSQLSessionContext(SQLSessionContext ctx) Set the current SQL session context
| |
| setSubqueryResultSet | back to summary |
|---|---|
| public void setSubqueryResultSet(int subqueryNumber, NoPutResultSet subqueryResultSet, int numSubqueries) throws StandardException Set the appropriate entry in the subquery tracking array for the specified subquery. Useful for closing down open subqueries on an exception.
| |
| setSystemCode | back to summary |
|---|---|
| public void setSystemCode() Set to indicate statement is system code. For example a system procedure, view, function etc. | |
| setTopResultSet | back to summary |
|---|---|
| public void setTopResultSet(ResultSet topResultSet, NoPutResultSet[] subqueryTrackingArray) throws StandardException Set the top ResultSet in the ResultSet tree for close down on an error.
| |