class DeleteCascadeResultSet extends DeleteResultSet
Modifier and Type | Field and Description |
---|---|
private boolean |
affectedRows |
(package private) ResultSet[] |
dependentResultSets |
private boolean |
mainNodeForTable |
private int |
noDependents |
private java.lang.String |
resultSetId |
private int |
tempRowHolderId |
cascadeDelete, constants, deferredBaseCC, deferredBaseRow, deferredRLRow, deferredSparseRow, fkInfoArray, lockMode, numberOfBaseColumns, numIndexes, rc, rowHolder, savedSource, source
baseRowReadMap, cachedDestinations, constantAction, heapDCOCI, indexDCOCIs, resultDescription, rowCount, streamStorableHeapColIds
activation, beginExecutionTime, beginTime, endExecutionTime, endTime, lcc
CURRENT_RESULTSET_ONLY, ENTIRE_RESULTSET_TREE, ISAFTERLAST, ISBEFOREFIRST, ISFIRST, ISLAST
Constructor and Description |
---|
DeleteCascadeResultSet(NoPutResultSet source,
Activation activation,
int constantActionItem,
ResultSet[] dependentResultSets,
java.lang.String resultSetId) |
Modifier and Type | Method and Description |
---|---|
void |
cleanUp()
Tells the system to clean up on an error.
|
(package private) boolean |
collectAffectedRows(boolean rowsFound) |
(package private) void |
deleteDeferredRows() |
void |
finish()
Tells the system that there will be no more access
to any database information via this result set;
in particular, no more calls to open().
|
(package private) void |
fireAfterTriggers() |
(package private) void |
fireBeforeTriggers(java.util.HashMap<java.lang.String,java.lang.String> msht) |
private boolean |
isMultipleDeletePathsExist() |
private void |
mergeResultSets() |
private void |
mergeRowHolders(java.util.HashMap<java.lang.String,java.lang.String> msht) |
void |
open()
Needs to be called before the result set will do anything.
|
private void |
rowChangerFinish() |
(package private) void |
runFkChecker(boolean restrictCheckOnly)
Make sure foreign key constraints are not violated
|
private void |
setRowHoldersTypeToUniqueStream() |
(package private) void |
setup()
Gathers the rows that needs to be deleted/updated
and creates a temporary resulsets that will be passed
as source to its dependent result sets.
|
close, collectAffectedRows, createDependentSource, fireBeforeTriggers
decodeLockMode, getIndexNameFromCID, getNextRowCore, getResultDescription, makeDeferredSparseRow, modifiedRowCount, normalizeRow, rememberConstraint
addWarning, checkRowPosition, clearCurrentRow, close, doesCommit, evaluateGenerationClauses, getAbsoluteRow, getActivation, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCurrentTimeMillis, getCursorName, getEndExecutionTimestamp, getExecuteTime, getFirstRow, getLastRow, getNextRow, getPreviousRow, getQueryPlanText, getRelativeRow, getRowNumber, getSubqueryTrackingArray, getTimeSpent, getWarnings, isClosed, returnsRows, setAfterLastRow, setBeforeFirstRow, toXML
ResultSet[] dependentResultSets
private int noDependents
private final java.lang.String resultSetId
private boolean mainNodeForTable
private boolean affectedRows
private int tempRowHolderId
public DeleteCascadeResultSet(NoPutResultSet source, Activation activation, int constantActionItem, ResultSet[] dependentResultSets, java.lang.String resultSetId) throws StandardException
StandardException
public void open() throws StandardException
ResultSet
open
in interface ResultSet
open
in class DeleteResultSet
StandardException
- Standard Derby error policyvoid setup() throws StandardException
setup
in class DeleteResultSet
StandardException
- thrown on errorboolean collectAffectedRows(boolean rowsFound) throws StandardException
StandardException
void fireBeforeTriggers(java.util.HashMap<java.lang.String,java.lang.String> msht) throws StandardException
StandardException
void fireAfterTriggers() throws StandardException
fireAfterTriggers
in class DeleteResultSet
StandardException
void deleteDeferredRows() throws StandardException
deleteDeferredRows
in class DeleteResultSet
StandardException
void runFkChecker(boolean restrictCheckOnly) throws StandardException
DeleteResultSet
runFkChecker
in class DeleteResultSet
StandardException
public void cleanUp() throws StandardException
ResultSet
cleanUp
in interface ResultSet
cleanUp
in class DeleteResultSet
StandardException
- Thrown on errorResultSet.cleanUp()
private void rowChangerFinish() throws StandardException
StandardException
private void mergeRowHolders(java.util.HashMap<java.lang.String,java.lang.String> msht) throws StandardException
StandardException
private void mergeResultSets() throws StandardException
StandardException
public void finish() throws StandardException
ResultSet
finish
in interface ResultSet
finish
in class DeleteResultSet
StandardException
- on errorprivate boolean isMultipleDeletePathsExist()
private void setRowHoldersTypeToUniqueStream()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.