Method Summary |
|
void | addWarning(SQLWarning w) |
public boolean | checkIfThisActivationHasHoldCursor(String tableName) Temporary tables can be declared with ON COMMIT DELETE ROWS. |
public void | checkStatementValidity() Check the validity of the current executing statement. |
void | clearCurrentRow(int resultSetNumber) Generated plans have a current row field for ease in defining
the methods and finding them dynamically. |
public void | clearHeapConglomerateController() Clear the ConglomerateController to be used for an update or delete. |
public void | clearIndexScanInfo() Clear the info for the index to be re-used for update/delete. |
public void | clearParentResultSets() |
void | clearResultSet() Sets the ResultSet to be returned by getResultSet() to null. |
void | clearWarnings() Clear the activation's warnings. |
void | close() Closing an activation statement marks it as unusable. |
ResultSet | execute() When the prepared statement is executed, it passes
execution on to the activation execution was requested for. |
public int[] | getAutoGeneratedKeysColumnIndexes() Returns the column positions array of columns requested in auto-generated
keys resultset for this avtivation. |
public String[] | getAutoGeneratedKeysColumnNames() Returns the column names array of columns requested in auto-generated
keys resultset for this avtivation. |
public boolean | getAutoGeneratedKeysResultsetMode() Returns true if auto-generated keys resultset request was made for this
avtivation. |
public ConstantAction | getConstantAction() |
public String | getCursorName() Return the cursor name of this activation. |
public TableDescriptor | getDDLTableDescriptor() Get the TableDescriptor for the target of
DDL. |
DataValueFactory | getDataValueFactory() |
public java.sql.ResultSet[][] | getDynamicResults() Return the set of dynamical created result sets, for procedures.
Base implementation returns null, a generated class for a procedure overwrites
this with a real implementation.
null if no dynamic results exists. |
ExecutionFactory | getExecutionFactory() |
public boolean | getForCreateTable() Get whether or not this activation is for
create table. |
public CursorResultSet | getForUpdateIndexScan() |
public ConglomerateController | getHeapConglomerateController() Get the ConglomerateController, if any, that has already
been opened for the heap when scaning for an update or delete. |
public long | getIndexConglomerateNumber() Get the conglomerate number of the index, if any, that has already
been opened for scaning for an update or delete. |
public ScanController | getIndexScanController() Get the ScanController, if any, that has already
been opened for the index when scaning for an update or delete. |
public LanguageConnectionContext | getLanguageConnectionContext() |
public int | getMaxDynamicResults() Return the maximum number of dynamical created result sets from the procedure definition. |
public int | getMaxRows() Get the maximum # of rows. |
public int | getNumSubqueries() Get the number of subqueries in the entire query. |
ParameterValueSet | getParameterValueSet() Gets the ParameterValueSet for this execution of the statement.
The ParameterValueSet for this execution of thestatement. |
public Vector | getParentResultSet(String resultSetId) get the reference to parent table ResultSets, that will be needed by the
referential action dependent table scans. |
public Hashtable | getParentResultSets() |
ExecPreparedStatement | getPreparedStatement() Get the prepared statement that this activation is for. |
ResultDescription | getResultDescription() Get the result description for this activation, if it has one. |
ResultSet | getResultSet() Returns the current result set for this activation, i.e.
the one returned by the last execute() call. |
public boolean | getResultSetHoldability() Return the holdability of this activation. |
public RowLocation | getRowLocationTemplate(int itemNumber) Get the saved RowLocation. |
public java.sql.ResultSet | getTargetVTI() Get the ResultSet for the target
of an update/delete to a VTI. |
TransactionController | getTransactionController() Get the Execution TransactionController associated with this
activation/lcc. |
SQLWarning | getWarnings() Returns the chained list of warnings. |
public void | informOfRowCount(NoPutResultSet resultSet, long rowCount) Tell this activation that the given ResultSet was found to have
the given number of rows. |
boolean | isClosed() Find out if the activation is closed or not. |
public boolean | isCursorActivation() |
public boolean | isInUse() |
boolean | isSingleExecution() Returns true if this Activation is only going to be used for
one execution. |
public void | markUnused() Mark the activation as unused. |
void | reset() Resets the activation to the "pre-execution" state -
that is, the state where it can be used to begin a new execution. |
public void | setAutoGeneratedKeysResultsetInfo(int[] columnIndexes, String[] columnNames) Set the auto-generated keys resultset mode to true for this activation.
The specific columns for auto-generated keys resultset can be requested by
passing column positions array
The specific columns for auto-generated keys resultset can be requested by
passing column names array
Both the parameters would be null if user didn't request specific keys.
Otherwise, the user could request specific columns by passing column positions
or names array but not both.
Parameters: columnIndexes - Request specific columns in auto-generated keysresultset by passing column positions. |
void | setCurrentRow(ExecRow currentRow, int resultSetNumber) Generated plans have a current row field for ease in defining
the methods and finding them dynamically. |
void | setCursorName(String cursorName) JDBC requires that all select statements be converted into cursors,
and that the cursor name be settable for each execution of a select
statement. |
public void | setDDLTableDescriptor(TableDescriptor td) Save the TableDescriptor for the target of
DDL so that it can be passed between the
various ConstantActions during execution. |
public void | setForCreateTable() Mark the Activation as being for create table. |
public void | setForUpdateIndexScan(CursorResultSet forUpdateResultSet) beetle 3865: updateable cursor using index. |
public void | setHeapConglomerateController(ConglomerateController updateHeapCC) Set the ConglomerateController to be used for an update or delete. |
public void | setIndexConglomerateNumber(long indexConglomerateNumber) |
public void | setIndexScanController(ScanController indexSC) |
public void | setMaxRows(int maxRows) Set the maximum # of rows. |
void | setParameters(ParameterValueSet parameterValues, DataTypeDescriptor[] parameterTypes) Sets the parameter values for this execution of the statement.
Has no effect if the activation has been closed.
NOTE: The setParameters() method is currently unimplemented. |
public void | setParentResultSet(TemporaryRowHolder rs, String resultSetId) |
public void | setResultSetHoldability(boolean resultSetHoldability) Set current resultset holdability. |
void | setSingleExecution() Set this Activation for a single execution.
E.g. |
public void | setTargetVTI(java.sql.ResultSet targetVTI) Save the ResultSet for the target
of an update/delete to a VTI. |