public class DeleteCascadeResultSet extends DeleteResultSet
| Modifier and Type | Field and Description |
|---|---|
private boolean |
affectedRows |
ResultSet[] |
dependentResultSets |
private long |
fkIndexConglomNumber |
private boolean |
mainNodeForTable |
private int |
noDependents |
private FKInfo |
parentFKInfo |
private CursorResultSet |
parentSource |
private java.lang.String |
resultSetId |
private int |
tempRowHolderId |
cascadeDelete, constants, deferredBaseCC, deferredBaseRow, deferredRLRow, deferredSparseRow, fkInfoArray, lockMode, numberOfBaseColumns, numIndexes, rc, resultDescription, rowHolder, savedSource, sourcebaseRowReadMap, constantAction, heapDCOCI, indexDCOCIs, rowCount, streamStorableHeapColIdsactivation, beginExecutionTime, beginTime, endExecutionTime, endTime, lccCURRENT_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.Hashtable msht) |
private boolean |
isMultipleDeletePathsExist() |
private void |
mergeResultSets() |
private void |
mergeRowHolders(java.util.Hashtable msht) |
void |
open()
Needs to be called before the result set will do anything.
|
private void |
rowChangerFinish() |
(package private) void |
runFkChecker(boolean restrictCheckOnly) |
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.
|
collectAffectedRows, createDependentSource, fireBeforeTriggers, getResultDescriptiondecodeLockMode, getIndexNameFromCID, getNextRowCore, makeDeferredSparseRow, modifiedRowCountaddWarning, checkRowPosition, clearCurrentRow, close, doesCommit, evaluateACheckConstraint, evaluateCheckConstraints, evaluateGenerationClauses, getAbsoluteRow, getActivation, getAutoGeneratedKeysResultset, getBeginExecutionTimestamp, getCurrentTimeMillis, getCursorName, getEndExecutionTimestamp, getExecuteTime, getFirstRow, getLastRow, getNextRow, getPreviousRow, getQueryPlanText, getRelativeRow, getRowNumber, getSubqueryTrackingArray, getTimeSpent, getWarnings, isClosed, returnsRows, setAfterLastRow, setBeforeFirstRowpublic ResultSet[] dependentResultSets
private int noDependents
private CursorResultSet parentSource
private FKInfo parentFKInfo
private long fkIndexConglomNumber
private 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
StandardExceptionpublic void open()
throws StandardException
ResultSetopen in interface ResultSetopen in class DeleteResultSetStandardException - Standard Derby error policyvoid setup()
throws StandardException
setup in class DeleteResultSetStandardException - thrown on errorboolean collectAffectedRows(boolean rowsFound)
throws StandardException
StandardExceptionvoid fireBeforeTriggers(java.util.Hashtable msht)
throws StandardException
StandardExceptionvoid fireAfterTriggers()
throws StandardException
fireAfterTriggers in class DeleteResultSetStandardExceptionvoid deleteDeferredRows()
throws StandardException
deleteDeferredRows in class DeleteResultSetStandardExceptionvoid runFkChecker(boolean restrictCheckOnly)
throws StandardException
runFkChecker in class DeleteResultSetStandardExceptionpublic void cleanUp()
throws StandardException
ResultSetcleanUp in interface ResultSetcleanUp in class DeleteResultSetStandardException - Thrown on errorResultSet.cleanUp()private void rowChangerFinish()
throws StandardException
StandardExceptionprivate void mergeRowHolders(java.util.Hashtable msht)
throws StandardException
StandardExceptionprivate void mergeResultSets()
throws StandardException
StandardExceptionpublic void finish()
throws StandardException
ResultSetfinish in interface ResultSetfinish in class DeleteResultSetStandardException - on errorprivate boolean isMultipleDeletePathsExist()
private void setRowHoldersTypeToUniqueStream()
Apache Derby V10.10 Internals - Copyright © 2004,2014 The Apache Software Foundation. All Rights Reserved.