Class DeleteConstantAction
- java.lang.Object
-
- org.apache.derby.impl.sql.execute.WriteCursorConstantAction
-
- org.apache.derby.impl.sql.execute.DeleteConstantAction
-
- All Implemented Interfaces:
java.io.Externalizable
,java.io.Serializable
,Formatable
,TypedFormat
,ConstantAction
public class DeleteConstantAction extends WriteCursorConstantAction
This class describes compiled constants that are passed into DeleteResultSets.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description (package private) ConstantAction[]
dependentCActions
(package private) int
numColumns
This class implements Formatable.(package private) ResultDescription
resultDescription
-
Fields inherited from class org.apache.derby.impl.sql.execute.WriteCursorConstantAction
conglomId, deferred, heapSCOCI, indexCIDS, indexNames, indexSCOCIs, irgs, lockMode, singleRowSource, targetUUID
-
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT
-
-
Constructor Summary
Constructors Constructor Description DeleteConstantAction()
Public niladic constructor.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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getTypeFormatId()
Get the formatID which corresponds to this class.void
readExternal(java.io.ObjectInput in)
Read this object from a stream of stored objects.void
writeExternal(java.io.ObjectOutput out)
Write this object to a stream of stored objects.-
Methods inherited from class org.apache.derby.impl.sql.execute.WriteCursorConstantAction
executeConstantAction, getBaseRowReadList, getBaseRowReadMap, getConglomerateId, getFKInfo, getIndexNameFromCID, getIndexNames, getProperty, getStreamStorableHeapColIds, getTargetProperties, getTriggerInfo, underMerge
-
-
-
-
Field Detail
-
numColumns
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.
-
dependentCActions
ConstantAction[] dependentCActions
-
resultDescription
ResultDescription resultDescription
-
-
Constructor Detail
-
DeleteConstantAction
public DeleteConstantAction()
Public niladic constructor. Needed for Formatable interface to work.
-
DeleteConstantAction
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
- Conglomerate ID.heapSCOCI
- StaticCompiledOpenConglomInfo for heap.irgs
- Index descriptorsindexCIDS
- Conglomerate IDs of indicesindexSCOCIs
- StaticCompiledOpenConglomInfos for indexes.deferred
- True means process as a deferred insert.targetUUID
- UUID of target tablelockMode
- The lock mode to use (row or table, see TransactionController)fkInfo
- Array of structures containing foreign key info, if any (may be null)triggerInfo
- Array of structures containing trigger info, if any (may be null)baseRowReadList
- Map of columns read in. 1 based.streamStorableHeapColIds
- Null for non rep. (0 based)numColumns
- Number of columns to read.singleRowSource
- Whether or not source is a single row sourceunderMerge
- True if this is an action of a MERGE statement.
-
-
Method Detail
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
Description copied from class:WriteCursorConstantAction
Read this object from a stream of stored objects.- Specified by:
readExternal
in interfacejava.io.Externalizable
- Overrides:
readExternal
in classWriteCursorConstantAction
- Parameters:
in
- read this.- Throws:
java.io.IOException
- thrown on errorjava.lang.ClassNotFoundException
- thrown on error- See Also:
Externalizable.readExternal(java.io.ObjectInput)
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
Description copied from class:WriteCursorConstantAction
Write this object to a stream of stored objects.- Specified by:
writeExternal
in interfacejava.io.Externalizable
- Overrides:
writeExternal
in classWriteCursorConstantAction
- Parameters:
out
- write bytes here.- Throws:
java.io.IOException
- thrown on error
-
getTypeFormatId
public int getTypeFormatId()
Get the formatID which corresponds to this class.- Returns:
- the formatID of this class
-
-