|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.derby.impl.sql.execute.BaseActivation
public abstract class BaseActivation
BaseActivation provides the fundamental support we expect all activations to have. Doesn't actually implement any of the activation interface, expects the subclasses to do that.
| Field Summary | |
|---|---|
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.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 |
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 |
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
|
| Fields inherited from interface org.apache.derby.catalog.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 | |
|---|---|
protected |
BaseActivation()
|
| Method Summary | |
|---|---|
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()
|
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. |
protected 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)
|
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 |
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.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. |
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)
|
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). |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.apache.derby.iapi.services.loader.GeneratedByteCode |
|---|
postConstructor |
| Field Detail |
|---|
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 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.generateSetupNestedSessionContext(org.apache.derby.impl.sql.compile.ActivationClassBuilder, org.apache.derby.iapi.services.compiler.MethodBuilder, boolean, java.lang.String),
GenericPreparedStatement.executeSubStatement(org.apache.derby.iapi.sql.conn.LanguageConnectionContext, boolean, long)private SQLSessionContext sqlSessionContextForChildren
protected int indexOfSessionTableNamesInSavedObjects
protected ExecRow[] row
protected ParameterValueSet pvs
protected CursorResultSet[] raParentResultSets
protected java.util.Hashtable parentResultSets
private java.util.Calendar cal
| Constructor Detail |
|---|
protected BaseActivation()
| Method Detail |
|---|
public final void initFromContext(Context context)
throws StandardException
GeneratedByteCode
initFromContext in interface GeneratedByteCodeStandardException
public final ResultSet execute()
throws StandardException
Activation
execute in interface ActivationStandardException - Thrown on failure
ResultSet decorateResultSet()
throws StandardException
StandardException
protected abstract ResultSet createResultSet()
throws StandardException
StandardException
protected void reinit()
throws StandardException
StandardExceptionpublic final ExecPreparedStatement getPreparedStatement()
Activation
getPreparedStatement in interface Activationpublic ConstantAction getConstantAction()
getConstantAction in interface Activation
public final void checkStatementValidity()
throws StandardException
Activation
checkStatementValidity in interface ActivationStandardException
public final void setupActivation(ExecPreparedStatement ps,
boolean scrollable)
throws StandardException
StandardExceptionpublic ResultSet getResultSet()
Activation
getResultSet in interface Activationpublic RowLocation getRowLocationTemplate(int itemNumber)
getRowLocationTemplate in interface ActivationitemNumber - 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 ActivationStandardException - on error
public final void close()
throws StandardException
close in interface ActivationStandardException - on error
protected void closeActivationAction()
throws java.lang.Exception
java.lang.Exceptionpublic boolean isClosed()
isClosed in interface Activationpublic void setSingleExecution()
setSingleExecution in interface ActivationActivation.setSingleExecution()public boolean isSingleExecution()
isSingleExecution in interface ActivationActivation.isSingleExecution()public int getNumSubqueries()
getNumSubqueries in interface Activationpublic boolean isCursorActivation()
Activation
isCursorActivation in interface ActivationActivation.isCursorActivation()public final void setGC(GeneratedClass gc)
GeneratedByteCode
setGC in interface GeneratedByteCodepublic final GeneratedClass getGC()
GeneratedByteCode
getGC in interface GeneratedByteCode
public final GeneratedMethod getMethod(java.lang.String methodName)
throws StandardException
getMethod in interface GeneratedByteCodeStandardException
public java.lang.Object e0()
throws StandardException
e0 in interface GeneratedByteCodeStandardException
public java.lang.Object e1()
throws StandardException
e1 in interface GeneratedByteCodeStandardException
public java.lang.Object e2()
throws StandardException
e2 in interface GeneratedByteCodeStandardException
public java.lang.Object e3()
throws StandardException
e3 in interface GeneratedByteCodeStandardException
public java.lang.Object e4()
throws StandardException
e4 in interface GeneratedByteCodeStandardException
public java.lang.Object e5()
throws StandardException
e5 in interface GeneratedByteCodeStandardException
public java.lang.Object e6()
throws StandardException
e6 in interface GeneratedByteCodeStandardException
public java.lang.Object e7()
throws StandardException
e7 in interface GeneratedByteCodeStandardException
public java.lang.Object e8()
throws StandardException
e8 in interface GeneratedByteCodeStandardException
public java.lang.Object e9()
throws StandardException
e9 in interface GeneratedByteCodeStandardExceptionpublic boolean checkIfThisActivationHasHoldCursor(java.lang.String tableName)
checkIfThisActivationHasHoldCursor in interface Activationpublic void setCursorName(java.lang.String cursorName)
setCursorName in interface ActivationcursorName - The cursor name to use.public java.lang.String getCursorName()
Activations that do support cursors will override this.
getCursorName in interface Activationpublic void setResultSetHoldability(boolean resultSetHoldability)
Activation
setResultSetHoldability in interface ActivationresultSetHoldability - 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 ActivationcolumnIndexes - 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 ActivationActivation.getAutoGeneratedKeysResultsetMode()public int[] getAutoGeneratedKeysColumnIndexes()
Activation
getAutoGeneratedKeysColumnIndexes in interface ActivationActivation.getAutoGeneratedKeysColumnIndexes()public java.lang.String[] getAutoGeneratedKeysColumnNames()
Activation
getAutoGeneratedKeysColumnNames in interface ActivationActivation.getAutoGeneratedKeysColumnNames()public final ResultSetFactory getResultSetFactory()
public final ExecutionFactory getExecutionFactory()
getExecutionFactory in interface Activationpublic CursorResultSet getTargetResultSet()
getTargetResultSet in interface CursorActivation
protected DataValueDescriptor getSetAutoincrementValue(int columnPosition,
long increment)
throws StandardException
StandardException
protected NumberDataValue getCurrentValueAndAdvance(java.lang.String sequenceUUIDstring,
int typeFormatID)
throws StandardException
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.
StandardExceptionpublic 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 closed
public static void setColumnPosition(int[] columnPositions,
int positionToSet,
int column)
columnPositions - The array of column positionspositionToSet - The place to put the column positioncolumn - The column position
public 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 Activationpublic final boolean isInUse()
isInUse in interface Activationpublic void addWarning(java.sql.SQLWarning w)
Activation
addWarning in interface ActivationActivation.addWarning(java.sql.SQLWarning)public java.sql.SQLWarning getWarnings()
Activation
getWarnings in interface ActivationActivation.getWarnings()public void clearWarnings()
Activation
clearWarnings in interface ActivationActivation.clearWarnings()
protected static void nullToPrimitiveTest(DataValueDescriptor dvd,
java.lang.String primitiveType)
throws StandardException
StandardException - on error
public void informOfRowCount(NoPutResultSet resultSet,
long currentRowCount)
throws StandardException
Activation
informOfRowCount in interface ActivationStandardException - Thrown on errorActivation.informOfRowCount(org.apache.derby.iapi.sql.execute.NoPutResultSet, long)public ConglomerateController getHeapConglomerateController()
Activation
getHeapConglomerateController in interface ActivationActivation.getHeapConglomerateController()public void setHeapConglomerateController(ConglomerateController updateHeapCC)
Activation
setHeapConglomerateController in interface ActivationupdateHeapCC - 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 ActivationActivation.clearHeapConglomerateController()public ScanController getIndexScanController()
Activation
getIndexScanController in interface ActivationActivation.getIndexScanController()public void setIndexScanController(ScanController indexSC)
Activation
setIndexScanController in interface ActivationindexSC - 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 ActivationActivation.getIndexConglomerateNumber()public void setIndexConglomerateNumber(long indexConglomerateNumber)
Activation
setIndexConglomerateNumber in interface ActivationindexConglomerateNumber - The conglomerate number of the index to reuse for the update or delete.Activation.setIndexConglomerateNumber(long)public void clearIndexScanInfo()
Activation
clearIndexScanInfo in interface ActivationActivation.clearIndexScanInfo()public void setForCreateTable()
Activation
setForCreateTable in interface ActivationActivation.setForCreateTable()public boolean getForCreateTable()
Activation
getForCreateTable in interface ActivationActivation.getForCreateTable()public void setDDLTableDescriptor(TableDescriptor td)
Activation
setDDLTableDescriptor in interface ActivationActivation.setDDLTableDescriptor(org.apache.derby.iapi.sql.dictionary.TableDescriptor)public TableDescriptor getDDLTableDescriptor()
Activation
getDDLTableDescriptor in interface ActivationActivation.getDDLTableDescriptor()public void setMaxRows(long maxRows)
Activation
setMaxRows in interface ActivationmaxRows - Maximum # of rows. (0 means no limit.)Activation.setMaxRows(long)public long getMaxRows()
Activation
getMaxRows in interface ActivationActivation.getMaxRows()public void setTargetVTI(java.sql.ResultSet targetVTI)
Activation
setTargetVTI in interface Activationpublic java.sql.ResultSet getTargetVTI()
Activation
getTargetVTI in interface Activation
protected boolean shouldWeCheckRowCounts()
throws StandardException
StandardExceptionpublic final boolean getScrollable()
protected final void setParameterValueSet(int paramCount,
boolean hasReturnParam)
protected final DataValueDescriptor getParameter(int position)
throws StandardException
position -
StandardExceptionpublic ParameterValueSet getParameterValueSet()
getParameterValueSet in interface Activation
public void setParameters(ParameterValueSet parameterValues,
DataTypeDescriptor[] parameterTypes)
throws StandardException
ActivationHas 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 ActivationparameterValues - The values of the parameters.
StandardException
public void throwIfMissingParms()
throws StandardException
StandardException - Thrown if any parameters
are unitialized
public void setCurrentRow(ExecRow currentRow,
int resultSetNumber)
setCurrentRow in interface ActivationcurrentRow - The row to be operated upon.resultSetNumber - The resultSetNumber for the current ResultSetpublic void clearCurrentRow(int resultSetNumber)
clearCurrentRow in interface ActivationresultSetNumber - The resultSetNumber for the current ResultSetpublic Row getCurrentRow(int resultSetNumber)
getCurrentRow in interface Activationpublic SQLSessionContext getSQLSessionContextForChildren()
getSQLSessionContextForChildren in interface ActivationActivation.getSQLSessionContextForChildren()public SQLSessionContext setupSQLSessionContextForChildren(boolean push)
Activation
setupSQLSessionContextForChildren in interface Activationpush - true if used to push a new connection contextActivation.setupSQLSessionContextForChildren(boolean)public void setParentActivation(Activation a)
setParentActivation in interface Activationa - 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 Activationpublic java.util.Vector getParentResultSet(java.lang.String resultSetId)
getParentResultSet in interface Activationpublic java.util.Hashtable getParentResultSets()
getParentResultSets in interface Activationpublic void clearParentResultSets()
clearParentResultSets in interface Activationpublic void setForUpdateIndexScan(CursorResultSet forUpdateIndexScan)
setForUpdateIndexScan in interface Activationpublic CursorResultSet getForUpdateIndexScan()
getForUpdateIndexScan in interface Activationprotected java.util.Calendar getCalendar()
public final LanguageConnectionContext getLanguageConnectionContext()
getLanguageConnectionContext in interface Activationpublic final TransactionController getTransactionController()
Activation
getTransactionController in interface Activationpublic 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 Activationpublic 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 length
StandardExceptionpublic DependableFinder getDependableFinder()
Dependable
getDependableFinder in interface DependableDependable.getDependableFinder()public java.lang.String getObjectName()
Dependable
getObjectName in interface DependableDependable.getObjectName()public UUID getObjectID()
Dependable
getObjectID in interface DependableDependable.getObjectID()public java.lang.String getClassType()
Dependable
getClassType in interface DependableDependable.getClassType()public boolean isPersistent()
Dependable
isPersistent in interface DependableDependable.isPersistent()public boolean isValid()
Dependent
isValid in interface DependentDependent.isValid()
public void makeInvalid(int action,
LanguageConnectionContext lcc)
throws StandardException
Dependent
makeInvalid in interface Dependentaction - The action causing the invalidationlcc - The LanguageConnectionContext
StandardException - 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 Dependentp - the provideraction - The action causing the invalidationlcc - The LanguageConnectionContext
StandardException - thrown if unable to make it invalidDependent.prepareToInvalidate(org.apache.derby.iapi.sql.depend.Provider, int, org.apache.derby.iapi.sql.conn.LanguageConnectionContext)
|
Built on Wed 2013-06-12 15:21:56+0000, from revision ??? | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||