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

public Class DeleteConstantAction

extends WriteCursorConstantAction
Class Inheritance
Imports
org.apache.derby.shared.common.util.ArrayUtil, org.apache.derby.iapi.services.io.StoredFormatIds, .FormatableBitSet, org.apache.derby.iapi.sql.dictionary.IndexRowGenerator, org.apache.derby.iapi.sql.execute.ConstantAction, org.apache.derby.iapi.store.access.StaticCompiledOpenConglomInfo, org.apache.derby.catalog.UUID, org.apache.derby.iapi.sql.ResultDescription, java.io.ObjectOutput, .ObjectInput, .IOException, java.util.Properties

This class describes compiled constants that are passed into DeleteResultSets.

Field Summary

Modifier and TypeField and Description
pack-priv ConstantAction[]
pack-priv int
numColumns

This class implements Formatable.

pack-priv ResultDescription
Inherited from org.apache.derby.impl.sql.execute.WriteCursorConstantAction:
conglomIddeferredheapSCOCIindexCIDSindexNamesindexSCOCIsirgslockModesingleRowSourcetargetUUID

Constructor Summary

AccessConstructor and Description
public
DeleteConstantAction()

Public niladic constructor.

pack-priv
DeleteConstantAction(long
Conglomerate ID.
conglomId
,
StaticCompiledOpenConglomInfo
StaticCompiledOpenConglomInfo for heap.
heapSCOCI
,
IndexRowGenerator[]
Index descriptors
irgs
,
long[]
Conglomerate IDs of indices
indexCIDS
,
StaticCompiledOpenConglomInfo[]
StaticCompiledOpenConglomInfos for indexes.
indexSCOCIs
,
boolean
True means process as a deferred insert.
deferred
,
UUID
UUID of target table
targetUUID
,
int
The lock mode to use (row or table, see TransactionController)
lockMode
,
FKInfo[]
Array of structures containing foreign key info, if any (may be null)
fkInfo
,
TriggerInfo
Array of structures containing trigger info, if any (may be null)
triggerInfo
,
FormatableBitSet
Map of columns read in. 1 based.
baseRowReadList
,
int[] baseRowReadMap, int[]
Null for non rep. (0 based)
streamStorableHeapColIds
,
int
Number of columns to read.
numColumns
,
boolean
Whether or not source is a single row source
singleRowSource
,
ResultDescription resultDescription, ConstantAction[] dependentCActions, boolean
True if this is an action of a MERGE statement.
underMerge
)

Make the ConstantAction for an DELETE statement.

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

the formatID of this class
getTypeFormatId
()

Implements org.apache.derby.iapi.services.io.TypedFormat.getTypeFormatId.

Get the formatID which corresponds to this class.

public void
readExternal(ObjectInput
read this.
in
)

Overrides org.apache.derby.impl.sql.execute.WriteCursorConstantAction.readExternal.

Implements java.io.Externalizable.readExternal.

Read this object from a stream of stored objects.

public void
writeExternal(ObjectOutput
write bytes here.
out
)

Overrides org.apache.derby.impl.sql.execute.WriteCursorConstantAction.writeExternal.

Implements java.io.Externalizable.writeExternal.

Write this object to a stream of stored objects.

Inherited from org.apache.derby.impl.sql.execute.WriteCursorConstantAction:
executeConstantActiongetBaseRowReadListgetBaseRowReadMapgetConglomerateIdgetFKInfogetIndexNameFromCIDgetIndexNamesgetPropertygetStreamStorableHeapColIdsgetTargetPropertiesgetTriggerInfounderMerge

Field Detail

dependentCActionsback to summary
pack-priv ConstantAction[] dependentCActions
numColumnsback to summary
pack-priv int numColumns

This class implements Formatable. But it is NOT used across either major or minor releases. It is only written persistently in stored prepared statements, not in the replication stage. SO, IT IS OK TO CHANGE ITS read/writeExternal.

resultDescriptionback to summary
pack-priv ResultDescription resultDescription

Constructor Detail

DeleteConstantActionback to summary
public DeleteConstantAction()

Public niladic constructor. Needed for Formatable interface to work.

DeleteConstantActionback to summary
pack-priv DeleteConstantAction(long conglomId, StaticCompiledOpenConglomInfo heapSCOCI, IndexRowGenerator[] irgs, long[] indexCIDS, StaticCompiledOpenConglomInfo[] indexSCOCIs, boolean deferred, UUID targetUUID, int lockMode, FKInfo[] fkInfo, TriggerInfo triggerInfo, FormatableBitSet baseRowReadList, int[] baseRowReadMap, int[] streamStorableHeapColIds, int numColumns, boolean singleRowSource, ResultDescription resultDescription, ConstantAction[] dependentCActions, boolean underMerge)

Make the ConstantAction for an DELETE statement.

Parameters
conglomId:long

Conglomerate ID.

heapSCOCI:StaticCompiledOpenConglomInfo

StaticCompiledOpenConglomInfo for heap.

irgs:IndexRowGenerator[]

Index descriptors

indexCIDS:long[]

Conglomerate IDs of indices

indexSCOCIs:StaticCompiledOpenConglomInfo[]

StaticCompiledOpenConglomInfos for indexes.

deferred:boolean

True means process as a deferred insert.

targetUUID:UUID

UUID of target table

lockMode:int

The lock mode to use (row or table, see TransactionController)

fkInfo:FKInfo[]

Array of structures containing foreign key info, if any (may be null)

triggerInfo:TriggerInfo

Array of structures containing trigger info, if any (may be null)

baseRowReadList:FormatableBitSet

Map of columns read in. 1 based.

streamStorableHeapColIds:int[]

Null for non rep. (0 based)

numColumns:int

Number of columns to read.

singleRowSource:boolean

Whether or not source is a single row source

underMerge:boolean

True if this is an action of a MERGE statement.

Method Detail

getTypeFormatIdback to summary
public int getTypeFormatId()

Implements org.apache.derby.iapi.services.io.TypedFormat.getTypeFormatId.

Get the formatID which corresponds to this class.

Returns:int

the formatID of this class

readExternalback to summary
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException

Overrides org.apache.derby.impl.sql.execute.WriteCursorConstantAction.readExternal.

Implements java.io.Externalizable.readExternal.

Doc from org.apache.derby.impl.sql.execute.WriteCursorConstantAction.readExternal.

Read this object from a stream of stored objects.

Parameters
in:ObjectInput

read this.

Exceptions
IOException:
thrown on error
ClassNotFoundException:
thrown on error
See Also
java.io.Externalizable#readExternal
writeExternalback to summary
public void writeExternal(ObjectOutput out) throws IOException

Overrides org.apache.derby.impl.sql.execute.WriteCursorConstantAction.writeExternal.

Implements java.io.Externalizable.writeExternal.

Doc from org.apache.derby.impl.sql.execute.WriteCursorConstantAction.writeExternal.

Write this object to a stream of stored objects.

Parameters
out:ObjectOutput

write bytes here.

Exceptions
IOException:
thrown on error