public abstract class BaseActivation extends java.lang.Object implements CursorActivation, GeneratedByteCode
Modifier and Type | Field and Description |
---|---|
private int[] |
autoGeneratedKeysColumnIndexes |
private java.lang.String[] |
autoGeneratedKeysColumnNames |
private boolean |
autoGeneratedKeysResultSetMode |
private java.util.Calendar |
cal |
private boolean |
checkRowCounts |
protected boolean |
closed |
protected ContextManager |
cm |
private java.util.Stack<ConstantAction> |
constantActionStack
Stack of ConstantActions.
|
private java.lang.String |
cursorName |
private TableDescriptor |
ddlTableDescriptor |
private boolean |
forCreateTable |
private CursorResultSet |
forUpdateIndexScan |
private GeneratedClass |
gc |
private long |
indexConglomerateNumber |
protected int |
indexOfSessionTableNamesInSavedObjects |
private ScanController |
indexSC |
private boolean |
inUse |
private boolean |
isValid
By setting isValid to false, we can force a new activation to be used
even if the prepared statement is still valid.
|
private LanguageConnectionContext |
lcc |
private static long |
MAX_SQRT |
private long |
maxRows |
protected int |
numSubqueries |
private Activation |
parentActivation
The 'parentActivation' of an activation of a statement executing in
the root connection is null.
|
protected java.util.Hashtable<java.lang.String,java.util.Vector<TemporaryRowHolder>> |
parentResultSets |
protected ExecPreparedStatement |
preStmt |
protected ParameterValueSet |
pvs |
protected CursorResultSet[] |
raParentResultSets |
protected ResultDescription |
resultDescription |
protected ResultSet |
resultSet |
private boolean |
resultSetHoldability |
protected ExecRow[] |
row |
private java.util.HashSet<java.lang.Integer> |
rowCountsCheckedThisExecution |
private boolean |
scrollable |
private boolean |
singleExecution |
private SQLSessionContext |
sqlSessionContextForChildren
The SQL session context to be used inside a nested connection in a
stored routine or in a substatement.
|
private java.sql.ResultSet |
targetVTI |
private static int |
TEN_PERCENT_THRESHOLD |
private ConglomerateController |
updateHeapCC |
protected java.lang.String |
UUIDString
For dependency tracking
|
protected UUID |
UUIDValue
For dependency tracking
|
private java.sql.SQLWarning |
warnings |
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
Modifier | Constructor and Description |
---|---|
protected |
BaseActivation() |
Modifier and Type | Method and Description |
---|---|
void |
addWarning(java.sql.SQLWarning w)
Add a warning to the activation
|
static void |
allocateQualArray(Qualifier[][] qualifiers,
int position,
int length)
Allocate an array of qualifiers and initialize in Qualifier[][]
|
boolean |
checkIfThisActivationHasHoldCursor(java.lang.String tableName)
Temporary tables can be declared with ON COMMIT DELETE ROWS.
|
protected void |
checkPositionedStatement(java.lang.String cursorName,
java.lang.String psName)
Check that a positioned statement is executing against a cursor
from the same PreparedStatement (plan) that the positioned
statement was original compiled against.
|
void |
checkStatementValidity()
Check the validity of the current executing statement.
|
void |
clearCurrentRow(int resultSetNumber)
Clear the current row for the specified ResultSet.
|
void |
clearHeapConglomerateController()
Clear the ConglomerateController to be used for an update or delete.
|
void |
clearIndexScanInfo()
Clear the info for the index to be re-used for update/delete.
|
void |
clearParentResultSets()
prepared statement use the same activation for
multiple execution.
|
void |
clearWarnings()
Clear the activation's warnings.
|
void |
close()
Closing an activation marks it as unusable.
|
protected void |
closeActivationAction()
A generated class can create its own closeActivationAction
method to invoke special logic when the activation is closed.
|
protected abstract ResultSet |
createResultSet()
Create the ResultSet tree for this statement.
|
(package private) ResultSet |
decorateResultSet()
Create the ResultSet tree for this statement, and possibly perform
extra checks or initialization required by specific sub-classes.
|
java.lang.Object |
e0() |
java.lang.Object |
e1() |
java.lang.Object |
e2() |
java.lang.Object |
e3() |
java.lang.Object |
e4() |
java.lang.Object |
e5() |
java.lang.Object |
e6() |
java.lang.Object |
e7() |
java.lang.Object |
e8() |
java.lang.Object |
e9() |
ResultSet |
execute()
When the prepared statement is executed, it passes
execution on to the activation execution was requested for.
|
int[] |
getAutoGeneratedKeysColumnIndexes()
Returns the column positions array of columns requested in auto-generated
keys resultset for this avtivation.
|
java.lang.String[] |
getAutoGeneratedKeysColumnNames()
Returns the column names array of columns requested in auto-generated
keys resultset for this avtivation.
|
boolean |
getAutoGeneratedKeysResultsetMode()
Returns true if auto-generated keys resultset request was made for this
avtivation.
|
protected java.util.Calendar |
getCalendar()
Return a calendar for use by this activation.
|
java.lang.String |
getClassType()
Get the unique class id for the Dependable.
|
protected DataValueDescriptor |
getColumnFromRow(int rsNumber,
int colId) |
ConstantAction |
getConstantAction()
Get the top ConstantAction on the stack without changing the stack.
|
ContextManager |
getContextManager()
Get the Current ContextManager.
|
java.sql.Connection |
getCurrentConnection()
Used to get a proxy for the current connection.
|
Row |
getCurrentRow(int resultSetNumber)
Get the current row at the given index.
|
NumberDataValue |
getCurrentValueAndAdvance(java.lang.String sequenceUUIDstring,
int typeFormatID)
Called by generated code to get the next number in an ANSI/ISO sequence
and advance the sequence.
|
java.lang.String |
getCursorName()
get the cursor name.
|
CursorResultSet |
getCursorResultSet()
Used in CurrentOfResultSet to get to the cursor result set
for a cursor.
|
DataValueFactory |
getDataValueFactory()
Used by activations to generate data values.
|
NumberDataValue |
getDB2Length(DataValueDescriptor value,
int constantLength,
NumberDataValue reUse)
Compute the DB2 compatible length of a value.
|
TableDescriptor |
getDDLTableDescriptor()
Get the TableDescriptor for the target of
DDL.
|
DependableFinder |
getDependableFinder()
Get an object which can be written to disk and which,
when read from disk, will find or reconstruct this in-memory
Dependable.
|
java.sql.ResultSet[][] |
getDynamicResults()
Real implementations of this method are provided by a generated class.
|
ExecutionFactory |
getExecutionFactory()
Used in activations for generating rows.
|
boolean |
getForCreateTable()
Get whether or not this activation is for
create table.
|
CursorResultSet |
getForUpdateIndexScan() |
GeneratedClass |
getGC()
Get the GeneratedClass object for this object.
|
ConglomerateController |
getHeapConglomerateController()
Get the ConglomerateController, if any, that has already
been opened for the heap when scaning for an update or delete.
|
long |
getIndexConglomerateNumber()
Get the conglomerate number of the index, if any, that has already
been opened for scaning for an update or delete.
|
ScanController |
getIndexScanController()
Get the ScanController, if any, that has already
been opened for the index when scaning for an update or delete.
|
LanguageConnectionContext |
getLanguageConnectionContext()
Get the language connection factory associated with this connection
|
int |
getMaxDynamicResults()
Real implementations of this method are provided by a generated class.
|
long |
getMaxRows()
Get the maximum # of rows. (# of rows that can
be returned by a ResultSet. 0 means no limit.)
|
GeneratedMethod |
getMethod(java.lang.String methodName) |
(package private) static ModuleFactory |
getMonitor()
Privileged Monitor lookup.
|
int |
getNumSubqueries()
Get the number of subqueries in the entire query.
|
UUID |
getObjectID()
Get the UUID of this Dependable OBJECT.
|
java.lang.String |
getObjectName()
Get the name of this Dependable OBJECT.
|
protected DataValueDescriptor |
getParameter(int position)
This method can help reduce the amount of generated code by changing
instances of this.pvs.getParameter(position) to this.getParameter(position)
|
ParameterValueSet |
getParameterValueSet()
return the parameters.
|
Activation |
getParentActivation()
Get the activation of the calling statement or parent statement.
|
java.util.Vector<TemporaryRowHolder> |
getParentResultSet(java.lang.String resultSetId)
get the reference to parent table ResultSets, that will be needed by the
referential action dependent table scans.
|
java.util.Enumeration<java.lang.String> |
getParentResultSetKeys() |
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.
|
ResultSetFactory |
getResultSetFactory()
Used in the execute method of activations for
generating the result sets that they concatenate together.
|
boolean |
getResultSetHoldability()
Return the holdability of this activation.
|
RowLocation |
getRowLocationTemplate(int itemNumber)
Get the saved RowLocation.
|
boolean |
getScrollable() |
protected DataValueDescriptor |
getSetAutoincrementValue(int columnPosition,
long increment)
Called by generated code to compute the next autoincrement value.
|
SQLSessionContext |
getSQLSessionContextForChildren()
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.
|
CursorResultSet |
getTargetResultSet()
Used in CurrentOfResultSet to get to the target result set
for a cursor.
|
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.
|
java.sql.SQLWarning |
getWarnings()
Returns the chained list of warnings.
|
void |
informOfRowCount(NoPutResultSet resultSet,
long currentRowCount)
Tell this activation that the given ResultSet was found to have
the given number of rows.
|
void |
initFromContext(Context context)
Initialize the generated class from a context.
|
boolean |
isClosed()
Find out if the activation closed or not.
|
boolean |
isCursorActivation()
Is this Activation for a cursor?
|
boolean |
isInUse()
Is the activation in use?
|
boolean |
isPersistent()
Return whether or not this Dependable is persistent.
|
boolean |
isSingleExecution()
Returns true if this Activation is only going to be used for
one execution.
|
boolean |
isValid()
Check that all of the dependent's dependencies are valid.
|
void |
makeInvalid(int action,
LanguageConnectionContext lcc)
Mark the dependent as invalid (due to at least one of
its dependencies being invalid).
|
void |
markUnused()
Mark the activation as unused.
|
NoPutResultSet |
materializeResultSetIfPossible(NoPutResultSet rs) |
protected static void |
nullToPrimitiveTest(DataValueDescriptor dvd,
java.lang.String primitiveType) |
ConstantAction |
popConstantAction()
Pop the ConstantAction stack, returning the element which was just popped
off the stack.
|
void |
prepareToInvalidate(Provider p,
int action,
LanguageConnectionContext lcc)
Prepare to mark the dependent as invalid (due to at least one of
its dependencies being invalid).
|
ConstantAction |
pushConstantAction(ConstantAction newConstantAction)
Push a ConstantAction to be returned by getConstantAction().
|
protected void |
reinit()
Reinitialize data structures added by the sub-classes before each
execution of the statement.
|
static void |
reinitializeQualifiers(Qualifier[][] qualifiers)
Reinitialize all Qualifiers in an array of Qualifiers.
|
void |
reset()
This is a partial implementation of reset.
|
void |
setAutoGeneratedKeysResultsetInfo(int[] columnIndexes,
java.lang.String[] columnNames)
Set the auto-generated keys resultset mode to true for this activation.
|
static void |
setColumnPosition(int[] columnPositions,
int positionToSet,
int column)
Set a column position in an array of column positions.
|
void |
setCurrentRow(ExecRow currentRow,
int resultSetNumber)
Remember the row for the specified ResultSet.
|
void |
setCursorName(java.lang.String cursorName)
remember the cursor name
|
void |
setDDLTableDescriptor(TableDescriptor td)
Save the TableDescriptor for the target of
DDL so that it can be passed between the
various ConstantActions during execution.
|
void |
setForCreateTable()
Mark the Activation as being for create table.
|
void |
setForUpdateIndexScan(CursorResultSet forUpdateIndexScan)
beetle 3865: updateable cursor using index.
|
void |
setGC(GeneratedClass gc)
Set the Generated Class.
|
void |
setHeapConglomerateController(ConglomerateController updateHeapCC)
Set the ConglomerateController to be used for an update or delete.
|
void |
setIndexConglomerateNumber(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.)
|
void |
setIndexScanController(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.)
|
void |
setMaxRows(long maxRows)
Set the maximum # of rows. (# of rows that can
be returned by a ResultSet. 0 means no limit.)
|
void |
setParameters(ParameterValueSet parameterValues,
DataTypeDescriptor[] parameterTypes)
Sets the parameter values for this execution of the statement.
|
protected void |
setParameterValueSet(int paramCount,
boolean hasReturnParam) |
void |
setParentActivation(Activation a)
This activation is created in a dynamic call context or a substatement
execution context, make note of its parent statements activation (a).
|
void |
setParentResultSet(TemporaryRowHolder rs,
java.lang.String resultSetId) |
static void |
setQualifier(Qualifier[][] qualifiers,
Qualifier qualifier,
int position_1,
int position_2)
Set a Qualifier in a 2 dimensional array of Qualifiers.
|
void |
setResultSetHoldability(boolean resultSetHoldability)
Set current resultset holdability.
|
void |
setSingleExecution()
Set this Activation for a single execution.
|
void |
setTargetVTI(java.sql.ResultSet targetVTI)
Save the ResultSet for the target
of an update/delete to a VTI.
|
void |
setupActivation(ExecPreparedStatement ps,
boolean scrollable)
Link this activation with its PreparedStatement.
|
SQLSessionContext |
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).
|
protected boolean |
shouldWeCheckRowCounts()
Find out if it's time to check the row counts of the tables involved
in this query.
|
void |
throwIfClosed(java.lang.String op)
Various activation methods need to disallow their
invocation if the activation is closed.
|
void |
throwIfMissingParms()
Throw an exception if any parameters are uninitialized.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
postConstructor
private LanguageConnectionContext lcc
protected ContextManager cm
protected ExecPreparedStatement preStmt
protected ResultSet resultSet
protected ResultDescription resultDescription
protected boolean closed
private java.lang.String cursorName
protected int numSubqueries
private boolean singleExecution
private volatile boolean inUse
private java.sql.ResultSet targetVTI
private java.sql.SQLWarning warnings
private GeneratedClass gc
private boolean checkRowCounts
private java.util.HashSet<java.lang.Integer> rowCountsCheckedThisExecution
private static final long MAX_SQRT
private static final int TEN_PERCENT_THRESHOLD
private ConglomerateController updateHeapCC
private ScanController indexSC
private long indexConglomerateNumber
private TableDescriptor ddlTableDescriptor
private long maxRows
private boolean forCreateTable
private boolean scrollable
private boolean resultSetHoldability
private CursorResultSet forUpdateIndexScan
private boolean autoGeneratedKeysResultSetMode
private int[] autoGeneratedKeysColumnIndexes
private java.lang.String[] autoGeneratedKeysColumnNames
private boolean isValid
protected java.lang.String UUIDString
protected UUID UUIDValue
private Activation parentActivation
StaticMethodCallNode.generatePushNestedSessionContext(org.apache.derby.impl.sql.compile.ActivationClassBuilder, org.apache.derby.iapi.services.compiler.MethodBuilder, boolean, java.lang.String)
,
PreparedStatement.executeSubStatement(org.apache.derby.iapi.sql.Activation, org.apache.derby.iapi.sql.Activation, boolean, long)
private SQLSessionContext sqlSessionContextForChildren
private java.util.Stack<ConstantAction> constantActionStack
protected int indexOfSessionTableNamesInSavedObjects
protected ExecRow[] row
protected ParameterValueSet pvs
protected CursorResultSet[] raParentResultSets
protected java.util.Hashtable<java.lang.String,java.util.Vector<TemporaryRowHolder>> parentResultSets
private java.util.Calendar cal
public final void initFromContext(Context context) throws StandardException
GeneratedByteCode
initFromContext
in interface GeneratedByteCode
StandardException
public final ResultSet execute() throws StandardException
Activation
execute
in interface Activation
StandardException
- Thrown on failureResultSet decorateResultSet() throws StandardException
StandardException
protected abstract ResultSet createResultSet() throws StandardException
StandardException
- standard error policyprotected void reinit() throws StandardException
StandardException
public final ExecPreparedStatement getPreparedStatement()
Activation
getPreparedStatement
in interface Activation
public ConstantAction pushConstantAction(ConstantAction newConstantAction)
Activation
pushConstantAction
in interface Activation
public ConstantAction popConstantAction()
Activation
popConstantAction
in interface Activation
public ConstantAction getConstantAction()
Activation
getConstantAction
in interface Activation
public final void checkStatementValidity() throws StandardException
Activation
checkStatementValidity
in interface Activation
StandardException
public final void setupActivation(ExecPreparedStatement ps, boolean scrollable) throws StandardException
ps
- prepared statementscrollable
- activation for a scrollable result setStandardException
- standard error policypublic ResultSet getResultSet()
Activation
getResultSet
in interface Activation
public RowLocation getRowLocationTemplate(int itemNumber)
getRowLocationTemplate
in interface Activation
itemNumber
- The saved item number.public ResultDescription getResultDescription()
Activation
getResultDescription
in interface Activation
public void reset() throws StandardException
All subclasses must call super.reset() and then do their cleanup.
The execute call must set the resultSet field to be the resultSet that it has returned.
reset
in interface Activation
StandardException
- on errorpublic final void close() throws StandardException
close
in interface Activation
StandardException
- on errorprotected void closeActivationAction() throws java.lang.Exception
java.lang.Exception
- errorpublic boolean isClosed()
isClosed
in interface Activation
public void setSingleExecution()
setSingleExecution
in interface Activation
Activation.setSingleExecution()
public boolean isSingleExecution()
isSingleExecution
in interface Activation
Activation.isSingleExecution()
public int getNumSubqueries()
getNumSubqueries
in interface Activation
public boolean isCursorActivation()
Activation
isCursorActivation
in interface Activation
Activation.isCursorActivation()
public final void setGC(GeneratedClass gc)
GeneratedByteCode
setGC
in interface GeneratedByteCode
public final GeneratedClass getGC()
GeneratedByteCode
getGC
in interface GeneratedByteCode
public final GeneratedMethod getMethod(java.lang.String methodName) throws StandardException
getMethod
in interface GeneratedByteCode
StandardException
public java.lang.Object e0() throws StandardException
e0
in interface GeneratedByteCode
StandardException
public java.lang.Object e1() throws StandardException
e1
in interface GeneratedByteCode
StandardException
public java.lang.Object e2() throws StandardException
e2
in interface GeneratedByteCode
StandardException
public java.lang.Object e3() throws StandardException
e3
in interface GeneratedByteCode
StandardException
public java.lang.Object e4() throws StandardException
e4
in interface GeneratedByteCode
StandardException
public java.lang.Object e5() throws StandardException
e5
in interface GeneratedByteCode
StandardException
public java.lang.Object e6() throws StandardException
e6
in interface GeneratedByteCode
StandardException
public java.lang.Object e7() throws StandardException
e7
in interface GeneratedByteCode
StandardException
public java.lang.Object e8() throws StandardException
e8
in interface GeneratedByteCode
StandardException
public java.lang.Object e9() throws StandardException
e9
in interface GeneratedByteCode
StandardException
public boolean checkIfThisActivationHasHoldCursor(java.lang.String tableName)
checkIfThisActivationHasHoldCursor
in interface Activation
public void setCursorName(java.lang.String cursorName)
setCursorName
in interface Activation
cursorName
- The cursor name to use.public java.lang.String getCursorName()
Activations that do support cursors will override this.
getCursorName
in interface Activation
public void setResultSetHoldability(boolean resultSetHoldability)
Activation
setResultSetHoldability
in interface Activation
resultSetHoldability
- The new resultset holdability.public boolean getResultSetHoldability()
Activation
getResultSetHoldability
in interface Activation
public void setAutoGeneratedKeysResultsetInfo(int[] columnIndexes, java.lang.String[] columnNames)
Activation
setAutoGeneratedKeysResultsetInfo
in interface Activation
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 positionActivation.setAutoGeneratedKeysResultsetInfo(int[], java.lang.String[])
public boolean getAutoGeneratedKeysResultsetMode()
Activation
getAutoGeneratedKeysResultsetMode
in interface Activation
Activation.getAutoGeneratedKeysResultsetMode()
public int[] getAutoGeneratedKeysColumnIndexes()
Activation
getAutoGeneratedKeysColumnIndexes
in interface Activation
Activation.getAutoGeneratedKeysColumnIndexes()
public java.lang.String[] getAutoGeneratedKeysColumnNames()
Activation
getAutoGeneratedKeysColumnNames
in interface Activation
Activation.getAutoGeneratedKeysColumnNames()
public final ResultSetFactory getResultSetFactory()
public final ExecutionFactory getExecutionFactory()
getExecutionFactory
in interface Activation
public CursorResultSet getTargetResultSet()
getTargetResultSet
in interface CursorActivation
protected DataValueDescriptor getSetAutoincrementValue(int columnPosition, long increment) throws StandardException
StandardException
public NumberDataValue getCurrentValueAndAdvance(java.lang.String sequenceUUIDstring, int typeFormatID) throws StandardException
getCurrentValueAndAdvance
in interface Activation
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.StandardException
public CursorResultSet getCursorResultSet()
getCursorResultSet
in interface CursorActivation
public void throwIfClosed(java.lang.String op) throws StandardException
The code to write to generate the call to this is approximately:
StandardException
- thrown if closedpublic static void setColumnPosition(int[] columnPositions, int positionToSet, int column)
columnPositions
- The array of column positionspositionToSet
- The place to put the column positioncolumn
- The column positionpublic static void allocateQualArray(Qualifier[][] qualifiers, int position, int length)
qualifiers
- The array of Qualifier arrays.position
- The position in the array to setlength
- The array length of the qualifier array to allocate.public static void setQualifier(Qualifier[][] qualifiers, Qualifier qualifier, int position_1, int position_2)
qualifiers
- The array of Qualifiersqualifier
- The Qualifierposition_1
- The Nth array index into qualifiers[N][M]position_2
- The Nth array index into qualifiers[N][M]public static void reinitializeQualifiers(Qualifier[][] qualifiers)
qualifiers
- The array of Qualifierspublic final void markUnused()
markUnused
in interface Activation
public final boolean isInUse()
isInUse
in interface Activation
public void addWarning(java.sql.SQLWarning w)
Activation
addWarning
in interface Activation
Activation.addWarning(java.sql.SQLWarning)
public java.sql.SQLWarning getWarnings()
Activation
getWarnings
in interface Activation
Activation.getWarnings()
public void clearWarnings()
Activation
clearWarnings
in interface Activation
Activation.clearWarnings()
protected static void nullToPrimitiveTest(DataValueDescriptor dvd, java.lang.String primitiveType) throws StandardException
StandardException
- on errorpublic void informOfRowCount(NoPutResultSet resultSet, long currentRowCount) throws StandardException
Activation
informOfRowCount
in interface Activation
StandardException
- Thrown on errorActivation.informOfRowCount(org.apache.derby.iapi.sql.execute.NoPutResultSet, long)
public ConglomerateController getHeapConglomerateController()
Activation
getHeapConglomerateController
in interface Activation
Activation.getHeapConglomerateController()
public void setHeapConglomerateController(ConglomerateController updateHeapCC)
Activation
setHeapConglomerateController
in interface Activation
updateHeapCC
- The ConglomerateController to reuse for the update or delete.Activation.setHeapConglomerateController(org.apache.derby.iapi.store.access.ConglomerateController)
public void clearHeapConglomerateController()
Activation
clearHeapConglomerateController
in interface Activation
Activation.clearHeapConglomerateController()
public ScanController getIndexScanController()
Activation
getIndexScanController
in interface Activation
Activation.getIndexScanController()
public void setIndexScanController(ScanController indexSC)
Activation
setIndexScanController
in interface Activation
indexSC
- The ScanController to reuse for the update or delete.Activation.setIndexScanController(org.apache.derby.iapi.store.access.ScanController)
public long getIndexConglomerateNumber()
Activation
getIndexConglomerateNumber
in interface Activation
Activation.getIndexConglomerateNumber()
public void setIndexConglomerateNumber(long indexConglomerateNumber)
Activation
setIndexConglomerateNumber
in interface Activation
indexConglomerateNumber
- The conglomerate number of the index to reuse for the update or delete.Activation.setIndexConglomerateNumber(long)
public void clearIndexScanInfo()
Activation
clearIndexScanInfo
in interface Activation
Activation.clearIndexScanInfo()
public void setForCreateTable()
Activation
setForCreateTable
in interface Activation
Activation.setForCreateTable()
public boolean getForCreateTable()
Activation
getForCreateTable
in interface Activation
Activation.getForCreateTable()
public void setDDLTableDescriptor(TableDescriptor td)
Activation
setDDLTableDescriptor
in interface Activation
Activation.setDDLTableDescriptor(org.apache.derby.iapi.sql.dictionary.TableDescriptor)
public TableDescriptor getDDLTableDescriptor()
Activation
getDDLTableDescriptor
in interface Activation
Activation.getDDLTableDescriptor()
public void setMaxRows(long maxRows)
Activation
setMaxRows
in interface Activation
maxRows
- Maximum # of rows. (0 means no limit.)Activation.setMaxRows(long)
public long getMaxRows()
Activation
getMaxRows
in interface Activation
Activation.getMaxRows()
public void setTargetVTI(java.sql.ResultSet targetVTI)
Activation
setTargetVTI
in interface Activation
public java.sql.ResultSet getTargetVTI()
Activation
getTargetVTI
in interface Activation
protected boolean shouldWeCheckRowCounts() throws StandardException
StandardException
public final boolean getScrollable()
protected final void setParameterValueSet(int paramCount, boolean hasReturnParam)
protected final DataValueDescriptor getParameter(int position) throws StandardException
position
- StandardException
public ParameterValueSet getParameterValueSet()
getParameterValueSet
in interface Activation
public void setParameters(ParameterValueSet parameterValues, DataTypeDescriptor[] parameterTypes) throws StandardException
Activation
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.
setParameters
in interface Activation
parameterValues
- The values of the parameters.StandardException
public void throwIfMissingParms() throws StandardException
StandardException
- Thrown if any parameters
are unitializedpublic void setCurrentRow(ExecRow currentRow, int resultSetNumber)
setCurrentRow
in interface Activation
currentRow
- The row to be operated upon.resultSetNumber
- The resultSetNumber for the current ResultSetpublic void clearCurrentRow(int resultSetNumber)
clearCurrentRow
in interface Activation
resultSetNumber
- The resultSetNumber for the current ResultSetpublic Row getCurrentRow(int resultSetNumber)
getCurrentRow
in interface Activation
public SQLSessionContext getSQLSessionContextForChildren()
getSQLSessionContextForChildren
in interface Activation
Activation.getSQLSessionContextForChildren()
public SQLSessionContext setupSQLSessionContextForChildren(boolean push)
Activation
setupSQLSessionContextForChildren
in interface Activation
push
- true if used to push a new connection contextActivation.setupSQLSessionContextForChildren(boolean)
public void setParentActivation(Activation a)
setParentActivation
in interface Activation
a
- The caller's or superstatement's activationpublic Activation getParentActivation()
getParentActivation
in interface Activation
protected final DataValueDescriptor getColumnFromRow(int rsNumber, int colId) throws StandardException
StandardException
protected void checkPositionedStatement(java.lang.String cursorName, java.lang.String psName) throws StandardException
cursorName
- Name of the cursorpsName
- Object name of the PreparedStatement.StandardException
public NoPutResultSet materializeResultSetIfPossible(NoPutResultSet rs) throws StandardException
StandardException
public void setParentResultSet(TemporaryRowHolder rs, java.lang.String resultSetId)
setParentResultSet
in interface Activation
public java.util.Vector<TemporaryRowHolder> getParentResultSet(java.lang.String resultSetId)
getParentResultSet
in interface Activation
public java.util.Enumeration<java.lang.String> getParentResultSetKeys()
getParentResultSetKeys
in interface Activation
public void clearParentResultSets()
clearParentResultSets
in interface Activation
public void setForUpdateIndexScan(CursorResultSet forUpdateIndexScan)
setForUpdateIndexScan
in interface Activation
public CursorResultSet getForUpdateIndexScan()
getForUpdateIndexScan
in interface Activation
protected java.util.Calendar getCalendar()
public final LanguageConnectionContext getLanguageConnectionContext()
getLanguageConnectionContext
in interface Activation
public final TransactionController getTransactionController()
Activation
getTransactionController
in interface Activation
public ContextManager getContextManager()
public DataValueFactory getDataValueFactory()
getDataValueFactory
in interface Activation
public java.sql.Connection getCurrentConnection() throws java.sql.SQLException
java.sql.SQLException
- Thrown on failure to get connectionpublic java.sql.ResultSet[][] getDynamicResults()
getDynamicResults
in interface Activation
public int getMaxDynamicResults()
getMaxDynamicResults
in interface Activation
public NumberDataValue getDB2Length(DataValueDescriptor value, int constantLength, NumberDataValue reUse) throws StandardException
value
- constantLength
- The length, if it is a constant modulo null/not null. -1 if the length is not constantreUse
- If non-null then re-use this as a container for the lengthStandardException
public DependableFinder getDependableFinder()
Dependable
getDependableFinder
in interface Dependable
Dependable.getDependableFinder()
public java.lang.String getObjectName()
Dependable
getObjectName
in interface Dependable
Dependable.getObjectName()
public UUID getObjectID()
Dependable
getObjectID
in interface Dependable
Dependable.getObjectID()
public java.lang.String getClassType()
Dependable
getClassType
in interface Dependable
Dependable.getClassType()
public boolean isPersistent()
Dependable
isPersistent
in interface Dependable
Dependable.isPersistent()
public boolean isValid()
Dependent
isValid
in interface Dependent
Dependent.isValid()
public void makeInvalid(int action, LanguageConnectionContext lcc) throws StandardException
Dependent
makeInvalid
in interface Dependent
action
- The action causing the invalidationlcc
- The LanguageConnectionContextStandardException
- thrown if unable to make it invalidDependent.makeInvalid(int, org.apache.derby.iapi.sql.conn.LanguageConnectionContext)
public void prepareToInvalidate(Provider p, int action, LanguageConnectionContext lcc) throws StandardException
Dependent
prepareToInvalidate
in interface Dependent
p
- the provideraction
- The action causing the invalidationlcc
- The LanguageConnectionContextStandardException
- thrown if unable to make it invalidDependent.prepareToInvalidate(org.apache.derby.iapi.sql.depend.Provider, int, org.apache.derby.iapi.sql.conn.LanguageConnectionContext)
static ModuleFactory getMonitor()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.