Top Description Fields Constructors Methods
org.apache.derby.impl.sql.execute

pack-priv Class DeleteResultSet

extends DMLWriteResultSet
Class Inheritance
Known Direct Subclasses
org.apache.derby.impl.sql.execute.DeleteCascadeResultSet
Imports
java.util.Properties, org.apache.derby.iapi.db.TriggerExecutionContext, org.apache.derby.shared.common.error.StandardException, org.apache.derby.shared.common.reference.SQLState, org.apache.derby.iapi.services.io.FormatableBitSet, org.apache.derby.iapi.sql.Activation, .ResultSet, org.apache.derby.iapi.sql.execute.ConstantAction, .CursorResultSet, .ExecRow, .NoPutResultSet, .RowChanger, org.apache.derby.iapi.store.access.ConglomerateController, .TransactionController, org.apache.derby.iapi.types.DataValueDescriptor, .RowLocation, org.apache.derby.shared.common.sanity.SanityManager

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

Modifier and TypeField and Description
private FormatableBitSet
protected boolean
pack-priv DeleteConstantAction
protected ConglomerateController
pack-priv ExecRow
pack-priv ExecRow
pack-priv ExecRow
private boolean
private RISetChecker
protected FKInfo[]
pack-priv int
private boolean
pack-priv int
pack-priv int
private int
protected RowChanger
private int
private ExecRow
protected TemporaryRowHolderImpl
pack-priv NoPutResultSet
protected NoPutResultSet
private TransactionController
private TriggerEventActivator
private TriggerInfo
Inherited from org.apache.derby.impl.sql.execute.DMLWriteResultSet:
baseRowReadMapcachedDestinationsconstantActionheapDCOCIindexDCOCIsresultDescriptionrowCountstreamStorableHeapColIds

Constructor Summary

AccessConstructor and Description
pack-priv
pack-priv
DeleteResultSet(NoPutResultSet source, ConstantAction passedInConstantAction, Activation activation)

REMIND: At present this takes just the conglomerate id of the table.

Method Summary

Modifier and TypeMethod and Description
public void
cleanUp()

Implements org.apache.derby.iapi.sql.ResultSet.cleanUp.

Tells the system to clean up on an error.

public void
close()

Implements org.apache.derby.iapi.sql.ResultSet.close.

Tells the system that there will be no more calls to getNextRow() (until the next open() call), so it can free up the resources associated with the ResultSet.

pack-priv boolean
pack-priv NoPutResultSet
createDependentSource(RowChanger rc)

create a source for the dependent table

Delete Cascade ResultSet class will override this method.

pack-priv void
public void
finish()

Overrides org.apache.derby.impl.sql.execute.NoRowsResultSetImpl.finish.

Implements org.apache.derby.iapi.sql.ResultSet.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().

pack-priv void
pack-priv void
public void
open()

Implements org.apache.derby.iapi.sql.ResultSet.open.

Needs to be called before the result set will do anything.

pack-priv void
runFkChecker(boolean restrictCheckOnly)

Make sure foreign key constraints are not violated

pack-priv void
setup()

Overrides org.apache.derby.impl.sql.execute.NoRowsResultSetImpl.setup.

Set up the result set for use.

Inherited from org.apache.derby.impl.sql.execute.DMLWriteResultSet:
decodeLockModegetIndexNameFromCIDgetNextRowCoregetResultDescriptionmakeDeferredSparseRowmodifiedRowCountnormalizeRowrememberConstraint

Field Detail

baseRowReadListback to summary
private FormatableBitSet baseRowReadList
cascadeDeleteback to summary
protected boolean cascadeDelete
constantsback to summary
pack-priv DeleteConstantAction constants
deferredBaseCCback to summary
protected ConglomerateController deferredBaseCC
deferredBaseRowback to summary
pack-priv ExecRow deferredBaseRow
deferredRLRowback to summary
pack-priv ExecRow deferredRLRow
deferredSparseRowback to summary
pack-priv ExecRow deferredSparseRow
firstExecuteback to summary
private boolean firstExecute
fkCheckerback to summary
private RISetChecker fkChecker
fkInfoArrayback to summary
protected FKInfo[] fkInfoArray
lockModeback to summary
pack-priv int lockMode
noTriggersOrFksback to summary
private boolean noTriggersOrFks
numberOfBaseColumnsback to summary
pack-priv int numberOfBaseColumns
numIndexesback to summary
pack-priv int numIndexes
numOpensback to summary
private int numOpens
rcback to summary
protected RowChanger rc
rlColumnNumberback to summary
private int rlColumnNumber
rowback to summary
private ExecRow row
rowHolderback to summary
protected TemporaryRowHolderImpl rowHolder
savedSourceback to summary
pack-priv NoPutResultSet savedSource
sourceback to summary
protected NoPutResultSet source
tcback to summary
private TransactionController tc
triggerActivatorback to summary
private TriggerEventActivator triggerActivator
triggerInfoback to summary
private TriggerInfo triggerInfo

Constructor Detail

DeleteResultSetback to summary
pack-priv DeleteResultSet(NoPutResultSet source, Activation activation) throws StandardException
DeleteResultSetback to summary
pack-priv DeleteResultSet(NoPutResultSet source, ConstantAction passedInConstantAction, Activation activation) throws StandardException

REMIND: At present this takes just the conglomerate id of the table. We can expect this to expand to include passing information about triggers, constraints, and any additional conglomerates on the underlying table for access methods.

Exceptions
StandardException:
Thrown on error

Method Detail

cleanUpback to summary
public void cleanUp() throws StandardException

Implements org.apache.derby.iapi.sql.ResultSet.cleanUp.

Doc from org.apache.derby.iapi.sql.ResultSet.cleanUp.

Tells the system to clean up on an error.

Annotations
@Override
Exceptions
StandardException:
Thrown on error
See Also
ResultSet#cleanUp
closeback to summary
public void close() throws StandardException

Implements org.apache.derby.iapi.sql.ResultSet.close.

Doc from org.apache.derby.iapi.sql.ResultSet.close.

Tells the system that there will be no more calls to getNextRow() (until the next open() call), so it can free up the resources associated with the ResultSet.

Annotations
@Override
Exceptions
StandardException:
Thrown on error.
collectAffectedRowsback to summary
pack-priv boolean collectAffectedRows() throws StandardException
createDependentSourceback to summary
pack-priv NoPutResultSet createDependentSource(RowChanger rc) throws StandardException

create a source for the dependent table

Delete Cascade ResultSet class will override this method.

Exceptions
StandardException:
Thrown on error
deleteDeferredRowsback to summary
pack-priv void deleteDeferredRows() throws StandardException
finishback to summary
public void finish() throws StandardException

Overrides org.apache.derby.impl.sql.execute.NoRowsResultSetImpl.finish.

Implements org.apache.derby.iapi.sql.ResultSet.finish.

Doc from org.apache.derby.iapi.sql.ResultSet.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(). Will close the result set if it is not already closed.

Annotations
@Override
Exceptions
StandardException:
on error
fireAfterTriggersback to summary
pack-priv void fireAfterTriggers() throws StandardException
fireBeforeTriggersback to summary
pack-priv void fireBeforeTriggers() throws StandardException
openback to summary
public void open() throws StandardException

Implements org.apache.derby.iapi.sql.ResultSet.open.

Doc from org.apache.derby.iapi.sql.ResultSet.open.

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.

Annotations
@Override
Exceptions
StandardException:
Standard Derby error policy
runFkCheckerback to summary
pack-priv void runFkChecker(boolean restrictCheckOnly) throws StandardException

Make sure foreign key constraints are not violated

setupback to summary
pack-priv void setup() throws StandardException

Overrides org.apache.derby.impl.sql.execute.NoRowsResultSetImpl.setup.

Doc from org.apache.derby.impl.sql.execute.NoRowsResultSetImpl.setup.

Set up the result set for use. Should always be called from open().

Annotations
@Override
Exceptions
StandardException:
thrown on error