| java.lang.Object org.apache.derby.impl.sql.execute.WriteCursorConstantAction org.apache.derby.impl.sql.execute.InsertConstantAction
InsertConstantAction | public class InsertConstantAction extends WriteCursorConstantAction (Code) | | This class describes compiled constants that are passed into
InsertResultSets.
author: Rick Hillegas |
Constructor Summary | |
public | InsertConstantAction() Public niladic constructor. | public | InsertConstantAction(TableDescriptor tableDescriptor, long conglomId, StaticCompiledOpenConglomInfo heapSCOCI, IndexRowGenerator[] irgs, long[] indexCIDS, StaticCompiledOpenConglomInfo[] indexSCOCIs, String[] indexNames, boolean deferred, Properties targetProperties, UUID targetUUID, int lockMode, FKInfo[] fkInfo, TriggerInfo triggerInfo, int[] streamStorableHeapColIds, boolean[] indexedCols, boolean singleRowSource, RowLocation[] autoincRowLocation) Make the ConstantAction for an INSERT statement.
Parameters: conglomId - Conglomerate ID. Parameters: heapSCOCI - StaticCompiledOpenConglomInfo for heap. Parameters: irgs - Index descriptors Parameters: indexCIDS - Conglomerate IDs of indices Parameters: indexSCOCIs - StaticCompiledOpenConglomInfos for indexes. Parameters: indexNames - Names of indices on this table for error reporting. Parameters: deferred - True means process as a deferred insert. Parameters: targetProperties - Properties on the target table. Parameters: targetUUID - UUID of target table Parameters: lockMode - The lockMode to use on the target table Parameters: fkInfo - Array of structures containing foreign key info, if any (may be null) Parameters: triggerInfo - Array of structures containing trigger info, if any (may be null) Parameters: streamStorableHeapColIds - Null for non rep. |
autoincRowLocation | protected RowLocation[] autoincRowLocation(Code) | | An array of row location objects (0 based), one for each
column in the table. If the column is an
autoincrement table then the array points to
the row location of the column in SYSCOLUMNS.
if not, then it contains null.
|
indexedCols | boolean[] indexedCols(Code) | | 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.
|
InsertConstantAction | public InsertConstantAction()(Code) | | Public niladic constructor. Needed for Formatable interface to work.
|
InsertConstantAction | public InsertConstantAction(TableDescriptor tableDescriptor, long conglomId, StaticCompiledOpenConglomInfo heapSCOCI, IndexRowGenerator[] irgs, long[] indexCIDS, StaticCompiledOpenConglomInfo[] indexSCOCIs, String[] indexNames, boolean deferred, Properties targetProperties, UUID targetUUID, int lockMode, FKInfo[] fkInfo, TriggerInfo triggerInfo, int[] streamStorableHeapColIds, boolean[] indexedCols, boolean singleRowSource, RowLocation[] autoincRowLocation)(Code) | | Make the ConstantAction for an INSERT statement.
Parameters: conglomId - Conglomerate ID. Parameters: heapSCOCI - StaticCompiledOpenConglomInfo for heap. Parameters: irgs - Index descriptors Parameters: indexCIDS - Conglomerate IDs of indices Parameters: indexSCOCIs - StaticCompiledOpenConglomInfos for indexes. Parameters: indexNames - Names of indices on this table for error reporting. Parameters: deferred - True means process as a deferred insert. Parameters: targetProperties - Properties on the target table. Parameters: targetUUID - UUID of target table Parameters: lockMode - The lockMode to use on the target table Parameters: fkInfo - Array of structures containing foreign key info, if any (may be null) Parameters: triggerInfo - Array of structures containing trigger info, if any (may be null) Parameters: streamStorableHeapColIds - Null for non rep. (0 based) Parameters: indexedCols - boolean[] of which (0-based) columns are indexed. Parameters: singleRowSource - Whether or not source is a single row source Parameters: autoincRowLocation - Array of rowlocations of autoincrement valuesin SYSCOLUMNS for each ai column. |
getAutoincIncrement | public long getAutoincIncrement(int i)(Code) | | gets the increment value for a column.
Parameters: i - the column number |
getAutoincRowLocation | public RowLocation[] getAutoincRowLocation()(Code) | | gets the row location
|
getColumnName | public String getColumnName(int i)(Code) | | gets the name of the desired column in the taget table.
Parameters: i - the column number |
getSchemaName | public String getSchemaName()(Code) | | Gets the name of the schema that the table is in
schema name |
getTableName | public String getTableName()(Code) | | Gets the name of the table being inserted into
name of table being inserted into |
getTypeFormatId | public int getTypeFormatId()(Code) | | Get the formatID which corresponds to this class.
the formatID of this class |
hasAutoincrement | public boolean hasAutoincrement()(Code) | | Does the target table has autoincrement columns.
True if the table has ai columns |
writeExternal | public void writeExternal(ObjectOutput out) throws IOException(Code) | | Write this object to a stream of stored objects.
Parameters: out - write bytes here. exception: IOException - thrown on error |
|
|