Note
(beetle:5197) Dependent Resultsets of DeleteCascade Resultset can in any one of the multiple resultsets generated for the same table because of multiple foreign key relationship to the same table. At the bind time , dependents are binded only once per table. We can not depend on mainNodeTable Flag to fire actions on dependents, it should be done based on whether the resultset has dependent resultsets or not.
| Modifier and Type | Field and Description |
|---|---|
| private boolean | |
| pack-priv ResultSet[] | |
| private boolean | |
| private int | |
| private final String | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | DeleteCascadeResultSet(NoPutResultSet source, Activation activation, int constantActionItem, ResultSet[] dependentResultSets, String resultSetId)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | cleanUp()
Overrides org. Implements org. Tells the system to clean up on an error. |
| pack-priv boolean | |
| pack-priv void | |
| public void | finish()
Overrides org. Implements org. 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(). |
| pack-priv void | |
| pack-priv void | |
| private boolean | |
| private void | |
| private void | |
| public void | open()
Overrides org. Implements org. Needs to be called before the result set will do anything. |
| private void | |
| pack-priv void | runFkChecker(boolean restrictCheckOnly)
Overrides org. Make sure foreign key constraints are not violated |
| private void | |
| pack-priv void | setup()
Overrides org. 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. |
| affectedRows | back to summary |
|---|---|
| private boolean affectedRows | |
| dependentResultSets | back to summary |
|---|---|
| pack-priv ResultSet[] dependentResultSets | |
| mainNodeForTable | back to summary |
|---|---|
| private boolean mainNodeForTable | |
| noDependents | back to summary |
|---|---|
| private int noDependents | |
| resultSetId | back to summary |
|---|---|
| private final String resultSetId | |
| tempRowHolderId | back to summary |
|---|---|
| private int tempRowHolderId | |
| DeleteCascadeResultSet | back to summary |
|---|---|
| public DeleteCascadeResultSet(NoPutResultSet source, Activation activation, int constantActionItem, ResultSet[] dependentResultSets, String resultSetId) throws StandardException | |
| cleanUp | back to summary |
|---|---|
| public void cleanUp() throws StandardException Overrides org. Implements org. Doc from org. Tells the system to clean up on an error.
| |
| collectAffectedRows | back to summary |
|---|---|
| pack-priv boolean collectAffectedRows(boolean rowsFound) throws StandardException | |
| deleteDeferredRows | back to summary |
|---|---|
| pack-priv void deleteDeferredRows() throws StandardException Overrides org.
| |
| finish | back to summary |
|---|---|
| public void finish() throws StandardException Overrides org. Implements org. Doc from org. 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(). Will close the result set if it is not already closed.
| |
| fireAfterTriggers | back to summary |
|---|---|
| pack-priv void fireAfterTriggers() throws StandardException Overrides org.
| |
| fireBeforeTriggers | back to summary |
|---|---|
| pack-priv void fireBeforeTriggers(HashMap<String, String> msht) throws StandardException | |
| isMultipleDeletePathsExist | back to summary |
|---|---|
private boolean isMultipleDeletePathsExist()
| |
| mergeResultSets | back to summary |
|---|---|
private void mergeResultSets() throws StandardException
| |
| mergeRowHolders | back to summary |
|---|---|
| private void mergeRowHolders(HashMap<String, String> msht) throws StandardException | |
| open | back to summary |
|---|---|
| public void open() throws StandardException Overrides org. Implements org. Doc from org. Needs to be called before the result set will do anything. Need to call before getNextRow(), or for a result set that doesn't return rows, this is the call that will cause all the work to be done.
| |
| rowChangerFinish | back to summary |
|---|---|
| private void rowChangerFinish() throws StandardException | |
| runFkChecker | back to summary |
|---|---|
| pack-priv void runFkChecker(boolean restrictCheckOnly) throws StandardException Overrides org. Doc from org. Make sure foreign key constraints are not violated
| |
| setRowHoldersTypeToUniqueStream | back to summary |
|---|---|
private void setRowHoldersTypeToUniqueStream()
| |
| setup | back to summary |
|---|---|
| pack-priv void setup() throws StandardException Overrides org. 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.
| |