public class InsertConstantAction extends WriteCursorConstantAction
Modifier and Type | Field and Description |
---|---|
private long[] |
autoincIncrement |
(package private) RowLocation[] |
autoincRowLocation
An array of row location objects (0 based), one for each
column in the table.
|
private java.lang.String[] |
columnNames |
private int |
firstAutoGenColumn
Position of autogenerated column
|
boolean |
hasDeferrableChecks |
(package private) java.lang.String |
identitySequenceUUIDString |
(package private) boolean[] |
indexedCols
This class implements Formatable.
|
private java.lang.String |
schemaName |
private java.lang.String |
tableName |
conglomId, deferred, heapSCOCI, indexCIDS, indexNames, indexSCOCIs, irgs, lockMode, singleRowSource, targetUUID
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT
Constructor and Description |
---|
InsertConstantAction()
Public niladic constructor.
|
InsertConstantAction(TableDescriptor tableDescriptor,
long conglomId,
StaticCompiledOpenConglomInfo heapSCOCI,
IndexRowGenerator[] irgs,
long[] indexCIDS,
StaticCompiledOpenConglomInfo[] indexSCOCIs,
java.lang.String[] indexNames,
boolean deferred,
boolean hasDeferrableChecks,
java.util.Properties targetProperties,
UUID targetUUID,
int lockMode,
FKInfo[] fkInfo,
TriggerInfo triggerInfo,
int[] streamStorableHeapColIds,
boolean[] indexedCols,
boolean singleRowSource,
RowLocation[] autoincRowLocation,
boolean underMerge,
java.lang.String identitySequenceUUIDString)
Make the ConstantAction for an INSERT statement.
|
Modifier and Type | Method and Description |
---|---|
int |
getAutoGenColumn()
Get the 0-based position of the autogenerated column
|
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()
Gets the name of the schema that the table is in
|
java.lang.String |
getTableName()
Gets the name of the table being inserted into
|
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.
|
executeConstantAction, getBaseRowReadList, getBaseRowReadMap, getConglomerateId, getFKInfo, getIndexNameFromCID, getIndexNames, getProperty, getStreamStorableHeapColIds, getTargetProperties, getTriggerInfo, underMerge
boolean[] indexedCols
private java.lang.String schemaName
private java.lang.String tableName
private java.lang.String[] columnNames
RowLocation[] autoincRowLocation
private long[] autoincIncrement
private transient int firstAutoGenColumn
public final boolean hasDeferrableChecks
java.lang.String identitySequenceUUIDString
public InsertConstantAction()
InsertConstantAction(TableDescriptor tableDescriptor, long conglomId, StaticCompiledOpenConglomInfo heapSCOCI, IndexRowGenerator[] irgs, long[] indexCIDS, StaticCompiledOpenConglomInfo[] indexSCOCIs, java.lang.String[] indexNames, boolean deferred, boolean hasDeferrableChecks, java.util.Properties targetProperties, UUID targetUUID, int lockMode, FKInfo[] fkInfo, TriggerInfo triggerInfo, int[] streamStorableHeapColIds, boolean[] indexedCols, boolean singleRowSource, RowLocation[] autoincRowLocation, boolean underMerge, java.lang.String identitySequenceUUIDString)
tableDescriptor
- conglomId
- Conglomerate ID.heapSCOCI
- 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 insert.hasDeferrableChecks
- The target table has deferrable CHECK constraintstargetProperties
- Properties on the target table.targetUUID
- UUID of target tablelockMode
- The lockMode to use on the target tablefkInfo
- Array of structures containing foreign key info,
if any (may be null)triggerInfo
- Array of structures containing trigger info,
if any (may be null)streamStorableHeapColIds
- Null for non rep. (0 based)indexedCols
- boolean[] of which (0-based) columns are indexed.singleRowSource
- 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 columnpublic 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 errorpublic void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
writeExternal
in class WriteCursorConstantAction
out
- write bytes here.java.io.IOException
- thrown on errorpublic int getAutoGenColumn()
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 numberpublic boolean hasAutoincrement()
RowLocation[] getAutoincRowLocation()
public int getTypeFormatId()
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.