Class GenericActivationHolder
- All Implemented Interfaces:
Dependable, Activation, Dependent
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) GeneratedClassprivate final LanguageConnectionContext(package private) DataTypeDescriptor[](package private) ExecPreparedStatementFields inherited from interface Dependable
ACTIVATION, ALIAS, COLUMNS_IN_TABLE, COLUMNS_PERMISSION, CONGLOMERATE, CONSTRAINT, DEFAULT, FILE, HEAP, INDEX, PERM, PREPARED_STATEMENT, ROLE_GRANT, ROUTINE_PERMISSION, SCHEMA, SEQUENCE, STORED_PREPARED_STATEMENT, TABLE, TABLE_PERMISSION, TRIGGER, VIEW -
Constructor Summary
ConstructorsConstructorDescriptionGenericActivationHolder(LanguageConnectionContext lcc, GeneratedClass gc, ExecPreparedStatement ps, boolean scrollable) Constructor for an ActivationHolder -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a warning to the activationbooleancheckIfThisActivationHasHoldCursor(String tableName) Temporary tables can be declared with ON COMMIT DELETE ROWS.voidCheck the validity of the current executing statement.voidclearCurrentRow(int resultSetNumber) Generated plans have a current row field for ease in defining the methods and finding them dynamically.voidClear the ConglomerateController to be used for an update or delete.voidClear the info for the index to be re-used for update/delete.voidvoidClear the activation's warnings.voidclose()Closing an activation statement marks it as unusable.execute()When the prepared statement is executed, it passes execution on to the activation execution was requested for.int[]Returns the column positions array of columns requested in auto-generated keys resultset for this avtivation.String[]Returns the column names array of columns requested in auto-generated keys resultset for this avtivation.booleanReturns true if auto-generated keys resultset request was made for this avtivation.Get the unique class id for the Dependable.Get the top ConstantAction on the stack without changing the stack.getCurrentRow(int resultSetNumber) Get the current row at the given index.getCurrentValueAndAdvance(String sequenceUUIDstring, int typeFormatID) Called by generated code to get the next number in an ANSI/ISO sequence and advance the sequence.Return the cursor name of this activation.Get the DataValueFactoryGet the TableDescriptor for the target of DDL.Get an object which can be written to disk and which, when read from disk, will find or reconstruct this in-memory Dependable.ResultSet[][]Return the set of dynamical created result sets, for procedures.Get the ExecutionFactorybooleanGet whether or not this activation is for create table.Get the ConglomerateController, if any, that has already been opened for the heap when scaning for an update or delete.longGet the conglomerate number of the index, if any, that has already been opened for scaning for an update or delete.Get the ScanController, if any, that has already been opened for the index when scaning for an update or delete.Get the language connection context associated with this activationintReturn the maximum number of dynamical created result sets from the procedure definition.longGet the maximum # of rows. (# of rows that can be returned by a ResultSet. 0 means no limit.)intGet the number of subqueries in the entire query.Get the UUID of this Dependable OBJECT.Get the name of this Dependable OBJECT.Gets the ParameterValueSet for this execution of the statement.This activation is created in a dynamic call context, or substatement execution context; get its caller's or superstatement's activation.getParentResultSet(String resultSetId) get the reference to parent table ResultSets, that will be needed by the referential action dependent table scans.Get the prepared statement that this activation is for.Get the result description for this activation, if it has one.Returns the current result set for this activation, i.e. the one returned by the last execute() call.booleanReturn the holdability of this activation.getRowLocationTemplate(int itemNumber) Get the saved RowLocation.Get the current SQL session context if in a nested connection of a stored routine or in a substatement.Get the ResultSet for the target of an update/delete to a VTI.Get the Execution TransactionController associated with this activation/lcc.Returns the chained list of warnings.voidinformOfRowCount(NoPutResultSet resultSet, long rowCount) Tell this activation that the given ResultSet was found to have the given number of rows.booleanisClosed()Find out if the activation is closed or not.booleanIs this Activation for a cursor?booleanisInUse()Is the activation in use?booleanReturn whether or not this Dependable is persistent.booleanIs the activation set up for a single execution.booleanisValid()Check that all of the dependent's dependencies are valid.voidmakeInvalid(int action, LanguageConnectionContext lcc) Mark the dependent as invalid (due to at least one of its dependencies being invalid).voidMark the activation as unused.Pop the ConstantAction stack, returning the element which was just popped off the stack.voidprepareToInvalidate(Provider p, int action, LanguageConnectionContext lcc) Prepare to mark the dependent as invalid (due to at least one of its dependencies being invalid).pushConstantAction(ConstantAction newConstantAction) Push a ConstantAction to be returned by getConstantAction().voidreset()Resets the activation to the "pre-execution" state - that is, the state where it can be used to begin a new execution.voidsetAutoGeneratedKeysResultsetInfo(int[] columnIndexes, String[] columnNames) Set the auto-generated keys resultset mode to true for this activation.voidsetCurrentRow(ExecRow currentRow, int resultSetNumber) Generated plans have a current row field for ease in defining the methods and finding them dynamically.voidsetCursorName(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.voidSave the TableDescriptor for the target of DDL so that it can be passed between the various ConstantActions during execution.voidMark the Activation as being for create table.voidsetForUpdateIndexScan(CursorResultSet forUpdateResultSet) beetle 3865: updateable cursor using index.voidsetHeapConglomerateController(ConglomerateController updateHeapCC) Set the ConglomerateController to be used for an update or delete.voidsetIndexConglomerateNumber(long indexConglomerateNumber) Set the conglomerate number of the index to be used for an update or delete, when scanning an index that will also be updated (Saves opening the ScanController twice.)voidsetIndexScanController(ScanController indexSC) Set the ScanController to be used for an update or delete, when scanning an index that will also be updated (Saves opening the ScanController twice.)voidsetMaxRows(long maxRows) Set the maximum # of rows. (# of rows that can be returned by a ResultSet. 0 means no limit.)voidsetParameters(ParameterValueSet parameterValues, DataTypeDescriptor[] parameterTypes) Sets the parameter values for this execution of the statement.voidThis activation is created in a dynamic call context or a substatement execution context, chain its parent statements activation..voidsetParentResultSet(TemporaryRowHolder rs, String resultSetId) voidsetResultSetHoldability(boolean resultSetHoldability) Set current resultset holdability.voidSet the activation for a single execution.voidsetTargetVTI(ResultSet targetVTI) Save the ResultSet for the target of an update/delete to a VTI.setupSQLSessionContextForChildren(boolean push) Set up and return the current SQL session context for all immediately nested connections stemming from the call or function invocation of the statement corresponding to this activation (push=true) or for a substatement, which shares the parents statement's session context (push=false).
-
Field Details
-
ac
-
ps
-
gc
-
paramTypes
DataTypeDescriptor[] paramTypes -
lcc
-
-
Constructor Details
-
GenericActivationHolder
GenericActivationHolder(LanguageConnectionContext lcc, GeneratedClass gc, ExecPreparedStatement ps, boolean scrollable) throws StandardException Constructor for an ActivationHolder- Parameters:
gc- The GeneratedClass of the Activationps- The PreparedStatement this ActivationHolder is associated with- Throws:
StandardException- Thrown on error
-
-
Method Details
-
reset
Description copied from interface:ActivationResets the activation to the "pre-execution" state - that is, the state where it can be used to begin a new execution. Frees local buffers, stops scans, resets counters to zero, sets current date and time to an unitialized state, etc.- Specified by:
resetin interfaceActivation- Throws:
StandardException- thrown on failure- See Also:
-
checkIfThisActivationHasHoldCursor
Temporary tables can be declared with ON COMMIT DELETE ROWS. But if the table has a held curosr open at commit time, data should not be deleted from the table. This method, (gets called at commit time) checks if this activation held cursor and if so, does that cursor reference the passed temp table name.- Specified by:
checkIfThisActivationHasHoldCursorin interfaceActivation- Returns:
- true if this activation has held cursor and if it references the passed temp table name
-
setCursorName
Description copied from interface:ActivationJDBC requires that all select statements be converted into cursors, and that the cursor name be settable for each execution of a select statement. The Language Module will support this, so that the JDBC driver will not have to parse JSQL text. This method will have no effect when called on non-select statements.There will be a JSQL statement to disable the "cursorization" of all select statements. For non-cursorized select statements, this method will have no effect.
This has no effect if the activation has been closed.
- Specified by:
setCursorNamein interfaceActivation- Parameters:
cursorName- The cursor name to use.- See Also:
-
getCursorName
Description copied from interface:ActivationReturn the cursor name of this activation. This will differ from its ResultSet's cursor name if it has been altered with setCursorName. Thus this always returns the cursor name of the next execution of this activation. The cursor name of the current execution must be obtained from the ResultSet. or this.getResultSet.getCursorName() [with null checking].Statements that do not support cursors will return a null.
- Specified by:
getCursorNamein interfaceActivation- Returns:
- The cursor name.
- See Also:
-
setResultSetHoldability
public void setResultSetHoldability(boolean resultSetHoldability) Description copied from interface:ActivationSet current resultset holdability.- Specified by:
setResultSetHoldabilityin interfaceActivation- Parameters:
resultSetHoldability- The new resultset holdability.- See Also:
-
getResultSetHoldability
public boolean getResultSetHoldability()Description copied from interface:ActivationReturn the holdability of this activation.- Specified by:
getResultSetHoldabilityin interfaceActivation- Returns:
- The holdability of this activation.
- See Also:
-
setAutoGeneratedKeysResultsetInfo
Description copied from interface:ActivationSet 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.- Specified by:
setAutoGeneratedKeysResultsetInfoin interfaceActivation- Parameters:
columnIndexes- Request specific columns in auto-generated keys resultset by passing column positions. null means no specific columns requested by positioncolumnNames- Request specific columns in auto-generated keys resultset by passing column names. null means no specific columns requested by position- See Also:
-
getAutoGeneratedKeysResultsetMode
public boolean getAutoGeneratedKeysResultsetMode()Description copied from interface:ActivationReturns true if auto-generated keys resultset request was made for this avtivation.- Specified by:
getAutoGeneratedKeysResultsetModein interfaceActivation- Returns:
- auto-generated keys resultset mode for this activation.
- See Also:
-
getAutoGeneratedKeysColumnIndexes
public int[] getAutoGeneratedKeysColumnIndexes()Description copied from interface:ActivationReturns the column positions array of columns requested in auto-generated keys resultset for this avtivation. Returns null if no specific column requested by positions- Specified by:
getAutoGeneratedKeysColumnIndexesin interfaceActivation- Returns:
- column positions array of columns requested.
- See Also:
-
getAutoGeneratedKeysColumnNames
Description copied from interface:ActivationReturns the column names array of columns requested in auto-generated keys resultset for this avtivation. Returns null if no specific column requested by names- Specified by:
getAutoGeneratedKeysColumnNamesin interfaceActivation- Returns:
- column names array of columns requested.
- See Also:
-
getLanguageConnectionContext
Description copied from interface:ActivationGet the language connection context associated with this activation- Specified by:
getLanguageConnectionContextin interfaceActivation- See Also:
-
getTransactionController
Description copied from interface:ActivationGet the Execution TransactionController associated with this activation/lcc.- Specified by:
getTransactionControllerin interfaceActivation
-
getExecutionFactory
Description copied from interface:ActivationGet the ExecutionFactory- Specified by:
getExecutionFactoryin interfaceActivation- Returns:
- ExecutionFactory
- See Also:
-
getParameterValueSet
Description copied from interface:ActivationGets the ParameterValueSet for this execution of the statement.- Specified by:
getParameterValueSetin interfaceActivation- Returns:
- The ParameterValueSet for this execution of the statement. Returns NULL if there are no parameters.
- See Also:
-
setParameters
public void setParameters(ParameterValueSet parameterValues, DataTypeDescriptor[] parameterTypes) throws StandardException Description copied from interface:ActivationSets 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. A statement with parameters will generate its own ParameterValueSet, which can be gotten with the getParameterValueSet() method (above). The idea behind setParameters() is to improve performance when operating across a network by allowing all the parameters to be set in one call, as opposed to one call per parameter.
- Specified by:
setParametersin interfaceActivation- Parameters:
parameterValues- The values of the parameters.- Throws:
StandardException- See Also:
-
execute
Description copied from interface:ActivationWhen the prepared statement is executed, it passes execution on to the activation execution was requested for.- Specified by:
executein interfaceActivation- Returns:
- the ResultSet for further manipulation, if any.
- Throws:
StandardException- Thrown on failure- See Also:
-
getResultSet
Description copied from interface:ActivationReturns the current result set for this activation, i.e. the one returned by the last execute() call. If there has been no execute call or the activation has been reset or closed, a null is returned.- Specified by:
getResultSetin interfaceActivation- Returns:
- the current ResultSet of this activation.
- See Also:
-
setCurrentRow
Description copied from interface:ActivationGenerated plans have a current row field for ease in defining the methods and finding them dynamically. The interface is used to set the row before a dynamic method that uses it is invoked.When all processing on the currentRow has been completed, callers should call activation.clearCurrentRow(resultSetNumber) to ensure that no unnecessary references are retained to rows. This will allow the rows no longer in use to be collected by the garbage collecter.
- Specified by:
setCurrentRowin interfaceActivation- Parameters:
currentRow- The row to be operated upon.resultSetNumber- The resultSetNumber for the current ResultSet- See Also:
-
getCurrentRow
Description copied from interface:ActivationGet the current row at the given index.- Specified by:
getCurrentRowin interfaceActivation- See Also:
-
clearCurrentRow
public void clearCurrentRow(int resultSetNumber) Description copied from interface:ActivationGenerated plans have a current row field for ease in defining the methods and finding them dynamically. The interface is used to set the row before a dynamic method that uses it is invoked.When all processing on the currentRow has been completed, callers should call activation.clearCurrentRow(resultSetNumber) to ensure that no unnecessary references are retained to rows. This will allow the rows no longer in use to be collected by the garbage collecter.
- Specified by:
clearCurrentRowin interfaceActivation- Parameters:
resultSetNumber- The resultSetNumber for the current ResultSet- See Also:
-
getPreparedStatement
Description copied from interface:ActivationGet the prepared statement that this activation is for.- Specified by:
getPreparedStatementin interfaceActivation- Returns:
- the prepared statement this activation is for.
- See Also:
-
checkStatementValidity
Description copied from interface:ActivationCheck the validity of the current executing statement. Needs to be called after a statement has obtained the relevant table locks on the- Specified by:
checkStatementValidityin interfaceActivation- Throws:
StandardException
-
getResultDescription
Description copied from interface:ActivationGet the result description for this activation, if it has one.- Specified by:
getResultDescriptionin interfaceActivation- Returns:
- result description for this activation, if it has one; otherwise, null.
- See Also:
-
getDataValueFactory
Description copied from interface:ActivationGet the DataValueFactory- Specified by:
getDataValueFactoryin interfaceActivation- Returns:
- DataValueFactory
- See Also:
-
getRowLocationTemplate
Description copied from interface:ActivationGet the saved RowLocation.- Specified by:
getRowLocationTemplatein interfaceActivation- Parameters:
itemNumber- The saved item number.- Returns:
- A RowLocation template for the conglomerate
- See Also:
-
getHeapConglomerateController
Description copied from interface:ActivationGet the ConglomerateController, if any, that has already been opened for the heap when scaning for an update or delete. (Saves opening the ConglomerateController twice.)- Specified by:
getHeapConglomerateControllerin interfaceActivation- Returns:
- The ConglomerateController, if available, to use for the update.
- See Also:
-
setHeapConglomerateController
Description copied from interface:ActivationSet the ConglomerateController to be used for an update or delete. (Saves opening the ConglomerateController twice.)- Specified by:
setHeapConglomerateControllerin interfaceActivation- Parameters:
updateHeapCC- The ConglomerateController to reuse for the update or delete.- See Also:
-
clearHeapConglomerateController
public void clearHeapConglomerateController()Description copied from interface:ActivationClear the ConglomerateController to be used for an update or delete. (Saves opening the ConglomerateController twice.)- Specified by:
clearHeapConglomerateControllerin interfaceActivation- See Also:
-
getIndexScanController
Description copied from interface:ActivationGet the ScanController, if any, that has already been opened for the index when scaning for an update or delete. (Saves opening the ScanController twice.)- Specified by:
getIndexScanControllerin interfaceActivation- Returns:
- The ScanController, if available, to use for the update.
- See Also:
-
setIndexScanController
Description copied from interface:ActivationSet the ScanController to be used for an update or delete, when scanning an index that will also be updated (Saves opening the ScanController twice.)- Specified by:
setIndexScanControllerin interfaceActivation- Parameters:
indexSC- The ScanController to reuse for the update or delete.- See Also:
-
getIndexConglomerateNumber
public long getIndexConglomerateNumber()Description copied from interface:ActivationGet the conglomerate number of the index, if any, that has already been opened for scaning for an update or delete. (Saves opening the ScanController twice.)- Specified by:
getIndexConglomerateNumberin interfaceActivation- Returns:
- The conglomerate number, if available, to use for the update.
- See Also:
-
setIndexConglomerateNumber
public void setIndexConglomerateNumber(long indexConglomerateNumber) Description copied from interface:ActivationSet the conglomerate number of the index to be used for an update or delete, when scanning an index that will also be updated (Saves opening the ScanController twice.)- Specified by:
setIndexConglomerateNumberin interfaceActivation- Parameters:
indexConglomerateNumber- The conglomerate number of the index to reuse for the update or delete.- See Also:
-
clearIndexScanInfo
public void clearIndexScanInfo()Description copied from interface:ActivationClear the info for the index to be re-used for update/delete. (ScanController and conglomerate number.)- Specified by:
clearIndexScanInfoin interfaceActivation- See Also:
-
close
Description copied from interface:ActivationClosing an activation statement marks it as unusable. Any other requests made on it will fail. An activation should be marked closed when it is expected to not be used any longer, i.e. when the connection for it is closed, or it has suffered some sort of severe error. This will also close its result set and release any resources it holds e.g. for parameters.Any class that implements this must be prepared to be executed from garbage collection, ie. there is no matching context stack.
- Specified by:
closein interfaceActivation- Throws:
StandardException- Thrown on error- See Also:
-
isClosed
public boolean isClosed()Description copied from interface:ActivationFind out if the activation is closed or not.- Specified by:
isClosedin interfaceActivation- Returns:
- true if the Activation has been closed.
- See Also:
-
setSingleExecution
public void setSingleExecution()Set the activation for a single execution.- Specified by:
setSingleExecutionin interfaceActivation- See Also:
-
isSingleExecution
public boolean isSingleExecution()Is the activation set up for a single execution.- Specified by:
isSingleExecutionin interfaceActivation- See Also:
-
getNumSubqueries
public int getNumSubqueries()Get the number of subqueries in the entire query.- Specified by:
getNumSubqueriesin interfaceActivation- Returns:
- int The number of subqueries in the entire query.
-
setForCreateTable
public void setForCreateTable()Description copied from interface:ActivationMark the Activation as being for create table. (NOTE: We can do certain optimizations for create table that we can't do for other DDL.)- Specified by:
setForCreateTablein interfaceActivation- See Also:
-
getForCreateTable
public boolean getForCreateTable()Description copied from interface:ActivationGet whether or not this activation is for create table. (NOTE: We can do certain optimizations for create table that we can't do for other DDL.)- Specified by:
getForCreateTablein interfaceActivation- Returns:
- Whether or not this activation is for create table.
- See Also:
-
setDDLTableDescriptor
Description copied from interface:ActivationSave the TableDescriptor for the target of DDL so that it can be passed between the various ConstantActions during execution.- Specified by:
setDDLTableDescriptorin interfaceActivation- See Also:
-
getDDLTableDescriptor
Description copied from interface:ActivationGet the TableDescriptor for the target of DDL.- Specified by:
getDDLTableDescriptorin interfaceActivation- Returns:
- The TableDescriptor for the target of DDL.
- See Also:
-
setMaxRows
public void setMaxRows(long maxRows) Description copied from interface:ActivationSet the maximum # of rows. (# of rows that can be returned by a ResultSet. 0 means no limit.)- Specified by:
setMaxRowsin interfaceActivation- Parameters:
maxRows- Maximum # of rows. (0 means no limit.)- See Also:
-
getMaxRows
public long getMaxRows()Description copied from interface:ActivationGet the maximum # of rows. (# of rows that can be returned by a ResultSet. 0 means no limit.)- Specified by:
getMaxRowsin interfaceActivation- Returns:
- Maximum # of rows. (0 means no limit.)
- See Also:
-
setTargetVTI
Description copied from interface:ActivationSave the ResultSet for the target of an update/delete to a VTI.- Specified by:
setTargetVTIin interfaceActivation
-
getTargetVTI
Description copied from interface:ActivationGet the ResultSet for the target of an update/delete to a VTI.- Specified by:
getTargetVTIin interfaceActivation- Returns:
- The ResultSet for the target of an update/delete to a VTI.
-
getSQLSessionContextForChildren
Description copied from interface:ActivationGet the current SQL session context if in a nested connection of a stored routine or in a substatement.- Specified by:
getSQLSessionContextForChildrenin interfaceActivation
-
setupSQLSessionContextForChildren
Description copied from interface:ActivationSet up and return the current SQL session context for all immediately nested connections stemming from the call or function invocation of the statement corresponding to this activation (push=true) or for a substatement, which shares the parents statement's session context (push=false).- Specified by:
setupSQLSessionContextForChildrenin interfaceActivation- Parameters:
push- true if used to push a new connection context
-
setParentActivation
Description copied from interface:ActivationThis activation is created in a dynamic call context or a substatement execution context, chain its parent statements activation..- Specified by:
setParentActivationin interfaceActivation
-
getParentActivation
Description copied from interface:ActivationThis activation is created in a dynamic call context, or substatement execution context; get its caller's or superstatement's activation.- Specified by:
getParentActivationin interfaceActivation- Returns:
- The caller's activation
-
getDependableFinder
Description copied from interface:DependableGet an object which can be written to disk and which, when read from disk, will find or reconstruct this in-memory Dependable.- Specified by:
getDependableFinderin interfaceDependable- Returns:
- A Finder object that can be written to disk if this is a Persistent Dependable. Null if this is not a persistent dependable.
- See Also:
-
getObjectName
Description copied from interface:DependableGet the name of this Dependable OBJECT. This is useful for diagnostic messages.- Specified by:
getObjectNamein interfaceDependable- Returns:
- Name of Dependable OBJECT.
- See Also:
-
getObjectID
Description copied from interface:DependableGet the UUID of this Dependable OBJECT.- Specified by:
getObjectIDin interfaceDependable- Returns:
- UUID of this OBJECT.
- See Also:
-
getClassType
Description copied from interface:DependableGet the unique class id for the Dependable. Every Dependable belongs to a class of Dependables.- Specified by:
getClassTypein interfaceDependable- Returns:
- type of this Dependable.
- See Also:
-
isPersistent
public boolean isPersistent()Description copied from interface:DependableReturn whether or not this Dependable is persistent. Persistent dependencies are stored in SYS.SYSDEPENDS.- Specified by:
isPersistentin interfaceDependable- Returns:
- true if this Dependable is persistent.
- See Also:
-
isValid
-
makeInvalid
Description copied from interface:DependentMark the dependent as invalid (due to at least one of its dependencies being invalid).- Specified by:
makeInvalidin interfaceDependent- Parameters:
action- The action causing the invalidationlcc- The LanguageConnectionContext- Throws:
StandardException- thrown if unable to make it invalid- See Also:
-
prepareToInvalidate
public void prepareToInvalidate(Provider p, int action, LanguageConnectionContext lcc) throws StandardException Description copied from interface:DependentPrepare to mark the dependent as invalid (due to at least one of its dependencies being invalid).- Specified by:
prepareToInvalidatein interfaceDependent- Parameters:
p- the provideraction- The action causing the invalidationlcc- The LanguageConnectionContext- Throws:
StandardException- thrown if unable to make it invalid- See Also:
-
markUnused
public void markUnused()Mark the activation as unused.- Specified by:
markUnusedin interfaceActivation
-
isInUse
public boolean isInUse()Is the activation in use?- Specified by:
isInUsein interfaceActivation- Returns:
- true/false
-
addWarning
Description copied from interface:ActivationAdd a warning to the activation- Specified by:
addWarningin interfaceActivation- See Also:
-
getWarnings
Description copied from interface:ActivationReturns the chained list of warnings. Returns null if there are no warnings.- Specified by:
getWarningsin interfaceActivation- See Also:
-
clearWarnings
public void clearWarnings()Description copied from interface:ActivationClear the activation's warnings.- Specified by:
clearWarningsin interfaceActivation- See Also:
-
informOfRowCount
Description copied from interface:ActivationTell this activation that the given ResultSet was found to have the given number of rows. This is used during execution to determine whether a table has grown or shrunk. If a table's size changes significantly, the activation may invalidate its PreparedStatement to force recompilation. Note that the association of row counts with ResultSets is kept in the activation class, not in the activation itself. This means that this method must be synchronized. This method is not required to check the number of rows on each call. Because of synchronization, this check is likely to be expensive, so it may only check every hundred calls or so.- Specified by:
informOfRowCountin interfaceActivation- Throws:
StandardException- Thrown on error- See Also:
-
isCursorActivation
public boolean isCursorActivation()Description copied from interface:ActivationIs this Activation for a cursor?- Specified by:
isCursorActivationin interfaceActivation- Returns:
- Whether or not this Activation is for a cursor.
- See Also:
-
pushConstantAction
Description copied from interface:ActivationPush a ConstantAction to be returned by getConstantAction(). Returns the newConstantAction.- Specified by:
pushConstantActionin interfaceActivation
-
popConstantAction
Description copied from interface:ActivationPop the ConstantAction stack, returning the element which was just popped off the stack.- Specified by:
popConstantActionin interfaceActivation
-
getConstantAction
Description copied from interface:ActivationGet the top ConstantAction on the stack without changing the stack.- Specified by:
getConstantActionin interfaceActivation
-
setParentResultSet
- Specified by:
setParentResultSetin interfaceActivation
-
getParentResultSet
Description copied from interface:Activationget the reference to parent table ResultSets, that will be needed by the referential action dependent table scans.- Specified by:
getParentResultSetin interfaceActivation
-
clearParentResultSets
public void clearParentResultSets()- Specified by:
clearParentResultSetsin interfaceActivation
-
getParentResultSetKeys
- Specified by:
getParentResultSetKeysin interfaceActivation
-
setForUpdateIndexScan
Description copied from interface:Activationbeetle 3865: updateable cursor using index. A way of communication between cursor activation and update activation.- Specified by:
setForUpdateIndexScanin interfaceActivation
-
getForUpdateIndexScan
- Specified by:
getForUpdateIndexScanin interfaceActivation
-
getDynamicResults
Description copied from interface:ActivationReturn 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.- Specified by:
getDynamicResultsin interfaceActivation- Returns:
- null if no dynamic results exists. Otherwise an array of ResultSet arrays, each of length one containing null or a reference to a ResultSet.
-
getMaxDynamicResults
public int getMaxDynamicResults()Description copied from interface:ActivationReturn the maximum number of dynamical created result sets from the procedure definition. Base implementation returns 0, a generated class for a procedure overwrites this with a real implementation.- Specified by:
getMaxDynamicResultsin interfaceActivation
-
getCurrentValueAndAdvance
public NumberDataValue getCurrentValueAndAdvance(String sequenceUUIDstring, int typeFormatID) throws StandardException Description copied from interface:ActivationCalled by generated code to get the next number in an ANSI/ISO sequence and advance the sequence. Raises an exception if the sequence was declared NO CYCLE and its range is exhausted.- Specified by:
getCurrentValueAndAdvancein interfaceActivation- Parameters:
sequenceUUIDstring- The string value of the sequence's UUIDtypeFormatID- The format id of the data type to be returned. E.g., StoredFormatIds.SQL_INTEGER_ID.- Returns:
- The next number in the sequence
- Throws:
StandardException
-