|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.derby.impl.sql.execute.NoRowsResultSetImpl
org.apache.derby.impl.sql.execute.DMLWriteResultSet
org.apache.derby.impl.sql.execute.DeleteResultSet
class DeleteResultSet
Delete the rows from the specified base table. This will cause constraints to be checked and triggers to be executed based on the c's and t's compiled into the insert plan.
Field Summary | |
---|---|
private FormatableBitSet |
baseRowReadList
|
protected boolean |
cascadeDelete
|
(package private) DeleteConstantAction |
constants
|
protected ConglomerateController |
deferredBaseCC
|
(package private) ExecRow |
deferredBaseRow
|
(package private) ExecRow |
deferredRLRow
|
(package private) ExecRow |
deferredSparseRow
|
private boolean |
firstExecute
|
private RISetChecker |
fkChecker
|
protected FKInfo[] |
fkInfoArray
|
(package private) int |
lockMode
|
private boolean |
noTriggersOrFks
|
(package private) int |
numberOfBaseColumns
|
(package private) int |
numIndexes
|
private int |
numOpens
|
protected RowChanger |
rc
|
protected ResultDescription |
resultDescription
|
private int |
rlColumnNumber
|
private ExecRow |
row
|
protected TemporaryRowHolderImpl |
rowHolder
|
(package private) NoPutResultSet |
savedSource
|
protected NoPutResultSet |
source
|
private TransactionController |
tc
|
private TriggerEventActivator |
triggerActivator
|
private TriggerInfo |
triggerInfo
|
Fields inherited from class org.apache.derby.impl.sql.execute.DMLWriteResultSet |
---|
baseRowReadMap, constantAction, heapDCOCI, indexDCOCIs, rowCount, streamStorableHeapColIds |
Fields inherited from class org.apache.derby.impl.sql.execute.NoRowsResultSetImpl |
---|
activation, beginExecutionTime, beginTime, endExecutionTime, endTime, lcc |
Fields inherited from interface org.apache.derby.iapi.sql.ResultSet |
---|
CURRENT_RESULTSET_ONLY, ENTIRE_RESULTSET_TREE, ISAFTERLAST, ISBEFOREFIRST, ISFIRST, ISLAST |
Constructor Summary | |
---|---|
DeleteResultSet(NoPutResultSet source,
Activation activation)
|
|
DeleteResultSet(NoPutResultSet source,
ConstantAction passedInConstantAction,
Activation activation)
REMIND: At present this takes just the conglomerate id of the table. |
Method Summary | |
---|---|
void |
cleanUp()
Tells the system to clean up on an error. |
(package private) boolean |
collectAffectedRows()
|
(package private) NoPutResultSet |
createDependentSource(RowChanger rc)
create a source for the dependent table Delete Cascade ResultSet class will override this method. |
(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()
|
ResultDescription |
getResultDescription()
Returns the description of the deleted rows. |
void |
open()
Needs to be called before the result set will do anything. |
(package private) void |
runFkChecker(boolean restrictCheckOnly)
|
(package private) void |
setup()
Set up the result set for use. |
Methods inherited from class org.apache.derby.impl.sql.execute.DMLWriteResultSet |
---|
decodeLockMode, getIndexNameFromCID, getNextRowCore, makeDeferredSparseRow, modifiedRowCount |
Methods inherited from class org.apache.derby.impl.sql.execute.NoRowsResultSetImpl |
---|
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, setBeforeFirstRow |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private TransactionController tc
DeleteConstantAction constants
protected ResultDescription resultDescription
protected NoPutResultSet source
NoPutResultSet savedSource
int numIndexes
protected RowChanger rc
private ExecRow row
protected ConglomerateController deferredBaseCC
protected TemporaryRowHolderImpl rowHolder
private int numOpens
private boolean firstExecute
private FormatableBitSet baseRowReadList
private int rlColumnNumber
protected FKInfo[] fkInfoArray
private TriggerInfo triggerInfo
private RISetChecker fkChecker
private TriggerEventActivator triggerActivator
private boolean noTriggersOrFks
ExecRow deferredSparseRow
ExecRow deferredBaseRow
int lockMode
protected boolean cascadeDelete
ExecRow deferredRLRow
int numberOfBaseColumns
Constructor Detail |
---|
DeleteResultSet(NoPutResultSet source, Activation activation) throws StandardException
StandardException
DeleteResultSet(NoPutResultSet source, ConstantAction passedInConstantAction, Activation activation) throws StandardException
StandardException
- Thrown on errorMethod Detail |
---|
public 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
- thrown on errorboolean collectAffectedRows() throws StandardException
StandardException
void fireBeforeTriggers() throws StandardException
StandardException
void fireAfterTriggers() throws StandardException
StandardException
void deleteDeferredRows() throws StandardException
StandardException
void runFkChecker(boolean restrictCheckOnly) throws StandardException
StandardException
NoPutResultSet createDependentSource(RowChanger rc) throws StandardException
Delete Cascade ResultSet class will override this method.
StandardException
- Thrown on errorpublic void cleanUp() throws StandardException
ResultSet
StandardException
- Thrown on errorResultSet.cleanUp()
public void finish() throws StandardException
ResultSet
finish
in interface ResultSet
finish
in class NoRowsResultSetImpl
StandardException
- on error
|
Built on Thu 2010-12-23 20:49:13+0000, from revision ??? | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |