class UpdateResultSet extends DMLWriteResultSet
baseRowReadMap, constantAction, heapDCOCI, indexDCOCIs, rowCount, streamStorableHeapColIds
activation, beginExecutionTime, beginTime, endExecutionTime, endTime, lcc
CURRENT_RESULTSET_ONLY, ENTIRE_RESULTSET_TREE, ISAFTERLAST, ISBEFOREFIRST, ISFIRST, ISLAST
Constructor and Description |
---|
UpdateResultSet(NoPutResultSet source,
GeneratedMethod generationClauses,
GeneratedMethod checkGM,
Activation activation) |
UpdateResultSet(NoPutResultSet source,
GeneratedMethod generationClauses,
GeneratedMethod checkGM,
Activation activation,
ConstantAction passedInConstantAction,
ResultDescription passedInRsd) |
UpdateResultSet(NoPutResultSet source,
GeneratedMethod generationClauses,
GeneratedMethod checkGM,
Activation activation,
int constantActionItem,
int rsdItem) |
Modifier and Type | Method and Description |
---|---|
private FormatableBitSet |
checkStreamCols() |
void |
cleanUp()
Tells the system to clean up on an error.
|
boolean |
collectAffectedRows() |
(package private) void |
fireAfterTriggers() |
(package private) void |
fireBeforeTriggers() |
static boolean |
foundRow(ExecRow checkRow,
int[] colsToCheck,
TemporaryRowHolderImpl rowHolder) |
ResultDescription |
getResultDescription()
Returns the description of the updated rows.
|
private void |
notifyForUpdateCursor(DataValueDescriptor[] row,
DataValueDescriptor[] newBaseRow,
RowLocation rl,
TableScanResultSet tableScan) |
private void |
objectifyStream(ExecRow tempRow,
FormatableBitSet streamCols) |
void |
open()
Needs to be called before the result set will do anything.
|
(package private) void |
rowChangerFinish() |
(package private) void |
runChecker(boolean restrictCheckOnly) |
(package private) void |
setup()
Set up the result set for use.
|
(package private) void |
updateDeferredRows() |
decodeLockMode, getIndexNameFromCID, getNextRowCore, makeDeferredSparseRow, modifiedRowCount
addWarning, checkRowPosition, clearCurrentRow, close, doesCommit, evaluateACheckConstraint, evaluateCheckConstraints, evaluateGenerationClauses, finish, getAbsoluteRow, getActivation, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCurrentTimeMillis, getCursorName, getEndExecutionTimestamp, getExecuteTime, getFirstRow, getLastRow, getNextRow, getPreviousRow, getQueryPlanText, getRelativeRow, getRowNumber, getSubqueryTrackingArray, getTimeSpent, getWarnings, isClosed, returnsRows, setAfterLastRow, setBeforeFirstRow
private TransactionController tc
private ExecRow newBaseRow
private ExecRow row
private ExecRow deferredSparseRow
UpdateConstantAction constants
private ResultDescription resultDescription
private NoPutResultSet source
NoPutResultSet savedSource
private RowChanger rowChanger
protected ConglomerateController deferredBaseCC
protected long[] deferredUniqueCIDs
protected boolean[] deferredUniqueCreated
protected ConglomerateController[] deferredUniqueCC
protected ScanController[] deferredUniqueScans
private TemporaryRowHolderImpl deletedRowHolder
private TemporaryRowHolderImpl insertedRowHolder
private RISetChecker riChecker
private TriggerInfo triggerInfo
private TriggerEventActivator triggerActivator
private boolean updatingReferencedKey
private boolean updatingForeignKey
private int numOpens
private long heapConglom
private FKInfo[] fkInfoArray
private FormatableBitSet baseRowReadList
private GeneratedMethod generationClauses
private GeneratedMethod checkGM
private int resultWidth
private int numberOfBaseColumns
private ExecRow deferredTempRow
private ExecRow deferredBaseRow
private ExecRow oldDeletedRow
private ResultDescription triggerResultDescription
int lockMode
boolean deferred
boolean beforeUpdateCopyRequired
UpdateResultSet(NoPutResultSet source, GeneratedMethod generationClauses, GeneratedMethod checkGM, Activation activation) throws StandardException
source
- update rows come from sourcegenerationClauses
- Generated method for computed generation clausescheckGM
- Generated method for enforcing check constraintsStandardException
- thrown on errorUpdateResultSet(NoPutResultSet source, GeneratedMethod generationClauses, GeneratedMethod checkGM, Activation activation, int constantActionItem, int rsdItem) throws StandardException
source
- update rows come from sourcegenerationClauses
- Generated method for computed generation clausescheckGM
- Generated method for enforcing check constraintsactivation
- ActivationconstantActionItem
- id of the update constant action saved objecrsdItem
- id of the Result Description saved objectStandardException
- thrown on errorUpdateResultSet(NoPutResultSet source, GeneratedMethod generationClauses, GeneratedMethod checkGM, Activation activation, ConstantAction passedInConstantAction, ResultDescription passedInRsd) throws StandardException
source
- update rows come from sourcegenerationClauses
- Generated method for computed generation clausescheckGM
- Generated method for enforcing check constraintsStandardException
- thrown on errorpublic ResultDescription getResultDescription()
getResultDescription
in interface ResultSet
getResultDescription
in class NoRowsResultSetImpl
public void open() throws StandardException
ResultSet
StandardException
- Standard Derby error policyvoid setup() throws StandardException
NoRowsResultSetImpl
open()
.setup
in class NoRowsResultSetImpl
StandardException
- Standard Derby error policyprivate FormatableBitSet checkStreamCols()
private void objectifyStream(ExecRow tempRow, FormatableBitSet streamCols) throws StandardException
StandardException
public boolean collectAffectedRows() throws StandardException
StandardException
private void notifyForUpdateCursor(DataValueDescriptor[] row, DataValueDescriptor[] newBaseRow, RowLocation rl, TableScanResultSet tableScan) throws StandardException
StandardException
void fireBeforeTriggers() throws StandardException
StandardException
void fireAfterTriggers() throws StandardException
StandardException
void updateDeferredRows() throws StandardException
StandardException
void runChecker(boolean restrictCheckOnly) throws StandardException
StandardException
public static boolean foundRow(ExecRow checkRow, int[] colsToCheck, TemporaryRowHolderImpl rowHolder) throws StandardException
StandardException
public void cleanUp() throws StandardException
ResultSet
StandardException
- Thrown on errorResultSet.cleanUp()
void rowChangerFinish() throws StandardException
StandardException
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.