java.io.Externalizable
, java.io.Serializable
, Formatable
, TypedFormat
, ConstantAction
public class UpdateConstantAction extends WriteCursorConstantAction
Modifier and Type | Field | Description |
---|---|---|
private long[] |
autoincIncrement |
|
(package private) RowLocation[] |
autoincRowLocation |
An array of row location objects (0 based), one for each
column in the table.
|
(package private) int[] |
changedColumnIds |
This class implements Formatable.
|
private java.lang.String[] |
columnNames |
|
(package private) java.lang.String |
identitySequenceUUIDString |
|
(package private) int |
numColumns |
|
private boolean |
positionedUpdate |
|
private java.lang.String |
schemaName |
|
private java.lang.String |
tableName |
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT
conglomId, deferred, heapSCOCI, indexCIDS, indexNames, indexSCOCIs, irgs, lockMode, singleRowSource, targetUUID
Constructor | Description |
---|---|
UpdateConstantAction() |
Public niladic constructor.
|
UpdateConstantAction(TableDescriptor targetTableDesc,
StaticCompiledOpenConglomInfo heapSCOCI,
IndexRowGenerator[] irgs,
long[] indexCIDS,
StaticCompiledOpenConglomInfo[] indexSCOCIs,
java.lang.String[] indexNames,
boolean deferred,
UUID targetUUID,
int lockMode,
int[] changedColumnIds,
FKInfo[] fkInfo,
TriggerInfo triggerInfo,
FormatableBitSet baseRowReadList,
int[] baseRowReadMap,
int[] streamStorableHeapColIds,
int numColumns,
boolean positionedUpdate,
boolean singleRowSource,
RowLocation[] autoincRowLocation,
boolean underMerge,
java.lang.String identitySequenceUUIDString) |
Make the ConstantAction for an UPDATE statement.
|
Modifier and Type | Method | Description |
---|---|---|
long |
getAutoincIncrement(int i) |
gets the increment value for a column.
|
(package private) RowLocation[] |
getAutoincRowLocation() |
gets the row location
|
java.lang.String |
getColumnName(int i) |
gets the name of the desired column in the taget table.
|
(package private) java.lang.String[] |
getColumnNames() |
get the array of column names in the target table.
|
java.lang.String |
getSchemaName() |
|
java.lang.String |
getTableName() |
|
int |
getTypeFormatId() |
Get the formatID which corresponds to this class.
|
boolean |
hasAutoincrement() |
Does the target table has autoincrement columns.
|
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeConstantAction, getBaseRowReadList, getBaseRowReadMap, getConglomerateId, getFKInfo, getIndexNameFromCID, getIndexNames, getProperty, getStreamStorableHeapColIds, getTargetProperties, getTriggerInfo, underMerge
int[] changedColumnIds
private boolean positionedUpdate
int numColumns
private java.lang.String schemaName
private java.lang.String tableName
private java.lang.String[] columnNames
java.lang.String identitySequenceUUIDString
RowLocation[] autoincRowLocation
private long[] autoincIncrement
public UpdateConstantAction()
UpdateConstantAction(TableDescriptor targetTableDesc, StaticCompiledOpenConglomInfo heapSCOCI, IndexRowGenerator[] irgs, long[] indexCIDS, StaticCompiledOpenConglomInfo[] indexSCOCIs, java.lang.String[] indexNames, boolean deferred, UUID targetUUID, int lockMode, int[] changedColumnIds, FKInfo[] fkInfo, TriggerInfo triggerInfo, FormatableBitSet baseRowReadList, int[] baseRowReadMap, int[] streamStorableHeapColIds, int numColumns, boolean positionedUpdate, boolean singleRowSource, RowLocation[] autoincRowLocation, boolean underMerge, java.lang.String identitySequenceUUIDString) throws StandardException
targetTableDesc
- descriptor for the table to be updatedheapSCOCI
- StaticCompiledOpenConglomInfo for heap.irgs
- Index descriptorsindexCIDS
- Conglomerate IDs of indicesindexSCOCIs
- StaticCompiledOpenConglomInfos for indexes.indexNames
- Names of indices on this table for error reporting.deferred
- True means process as a deferred update.targetUUID
- UUID of target tablelockMode
- The lock mode to use
(row or table, see TransactionController)changedColumnIds
- Array of ids of changed columnsfkInfo
- 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.baseRowReadMap
- BaseRowReadMap[heapColId]->ReadRowColumnId. (0 based)streamStorableHeapColIds
- Null for non rep. (0 based)numColumns
- Number of columns being read.positionedUpdate
- is this a positioned updatesingleRowSource
- Whether or not source is a single row sourceautoincRowLocation
- Array of rowlocations of autoincrement
values in SYSCOLUMNS for each ai column.underMerge
- True if this is an action of a MERGE statement.identitySequenceUUIDString
- For 10.11 and higher, the handle on the sequence for the identity columnStandardException
public boolean hasAutoincrement()
RowLocation[] getAutoincRowLocation()
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
WriteCursorConstantAction
readExternal
in interface java.io.Externalizable
readExternal
in class WriteCursorConstantAction
in
- read this.java.io.IOException
- thrown on errorjava.lang.ClassNotFoundException
- thrown on errorExternalizable.readExternal(java.io.ObjectInput)
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
WriteCursorConstantAction
writeExternal
in interface java.io.Externalizable
writeExternal
in class WriteCursorConstantAction
out
- write bytes here.java.io.IOException
- thrown on errorExternalizable.writeExternal(java.io.ObjectOutput)
public int getTypeFormatId()
public java.lang.String getSchemaName()
public java.lang.String getTableName()
public java.lang.String getColumnName(int i)
i
- the column numberjava.lang.String[] getColumnNames()
public long getAutoincIncrement(int i)
i
- the column numberApache Derby V10.14 Internals - Copyright © 2004,2018 The Apache Software Foundation. All Rights Reserved.