|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.derby.impl.sql.execute.WriteCursorConstantAction
org.apache.derby.impl.sql.execute.InsertConstantAction
This class describes compiled constants that are passed into InsertResultSets.
| Field Summary | |
private long[] |
autoincIncrement
|
protected RowLocation[] |
autoincRowLocation
An array of row location objects (0 based), one for each column in the table. |
private java.lang.String[] |
columnNames
|
long |
conglomId
This class implements Formatable. |
boolean |
deferred
|
StaticCompiledOpenConglomInfo |
heapSCOCI
|
long[] |
indexCIDS
|
(package private) boolean[] |
indexedCols
This class implements Formatable. |
java.lang.String[] |
indexNames
|
StaticCompiledOpenConglomInfo[] |
indexSCOCIs
|
IndexRowGenerator[] |
irgs
|
int |
lockMode
|
private java.lang.String |
schemaName
|
boolean |
singleRowSource
|
private java.lang.String |
tableName
|
java.util.Properties |
targetProperties
|
UUID |
targetUUID
|
| Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction |
RUNTIMESTATISTICS, STATISTICSTIMING |
| Constructor Summary | |
InsertConstantAction()
Public niladic constructor. |
|
InsertConstantAction(TableDescriptor tableDescriptor,
long conglomId,
StaticCompiledOpenConglomInfo heapSCOCI,
IndexRowGenerator[] irgs,
long[] indexCIDS,
StaticCompiledOpenConglomInfo[] indexSCOCIs,
java.lang.String[] indexNames,
boolean deferred,
java.util.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. |
|
| Method Summary | |
void |
executeConstantAction(Activation activation)
NOP routine. |
long |
getAutoincIncrement(int i)
gets the increment value for a column. |
RowLocation[] |
getAutoincRowLocation()
gets the row location |
FormatableBitSet |
getBaseRowReadList()
|
int[] |
getBaseRowReadMap()
|
java.lang.String |
getColumnName(int i)
gets the name of the desired column in the taget table. |
long |
getConglomerateId()
Get the conglomerate id for the changed heap. |
ExecRow |
getEmptyHeapRow(LanguageConnectionContext lcc)
Get emptyHeapRow |
FKInfo[] |
getFKInfo(ExecutionContext ec)
Gets the foreign key information for this constant action. |
java.lang.String |
getIndexNameFromCID(long indexCID)
get the index name given the conglomerate id of the index. |
java.lang.String[] |
getIndexNames()
|
java.lang.String |
getProperty(java.lang.String key)
The the value of the specified key, if it exists, from the targetProperties. |
java.lang.String |
getSchemaName()
Gets the name of the schema that the table is in |
int[] |
getStreamStorableHeapColIds()
|
java.lang.String |
getTableName()
Gets the name of the table being inserted into |
java.util.Properties |
getTargetProperties()
Get the targetProperties from the constant action. |
TriggerInfo |
getTriggerInfo(ExecutionContext ec)
Basically, the same as getFKInfo but for triggers. |
int |
getTypeFormatId()
Get the formatID which corresponds to this class. |
boolean |
hasAutoincrement()
Does the target table has autoincrement columns. |
boolean |
modifiesTableId(UUID tableId)
Does this constant action modify the passed in table uuid? |
void |
readExternal(java.io.ObjectInput in)
Read this object from a stream of stored objects. |
boolean |
upToDate()
Reports whether these constants are up-to-date. |
void |
writeExternal(java.io.ObjectOutput out)
Write this object to a stream of stored objects. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
boolean[] indexedCols
private java.lang.String schemaName
private java.lang.String tableName
private java.lang.String[] columnNames
protected RowLocation[] autoincRowLocation
private long[] autoincIncrement
public long conglomId
public StaticCompiledOpenConglomInfo heapSCOCI
public IndexRowGenerator[] irgs
public long[] indexCIDS
public StaticCompiledOpenConglomInfo[] indexSCOCIs
public java.lang.String[] indexNames
public boolean deferred
public java.util.Properties targetProperties
public UUID targetUUID
public int lockMode
public boolean singleRowSource
| Constructor Detail |
public InsertConstantAction()
public InsertConstantAction(TableDescriptor tableDescriptor,
long conglomId,
StaticCompiledOpenConglomInfo heapSCOCI,
IndexRowGenerator[] irgs,
long[] indexCIDS,
StaticCompiledOpenConglomInfo[] indexSCOCIs,
java.lang.String[] indexNames,
boolean deferred,
java.util.Properties targetProperties,
UUID targetUUID,
int lockMode,
FKInfo[] fkInfo,
TriggerInfo triggerInfo,
int[] streamStorableHeapColIds,
boolean[] indexedCols,
boolean singleRowSource,
RowLocation[] autoincRowLocation)
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.targetProperties - 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.| Method Detail |
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
WriteCursorConstantAction
readExternal in interface java.io.ExternalizablereadExternal in class WriteCursorConstantActionin - read this.
java.io.IOException - thrown on error
java.lang.ClassNotFoundException - thrown on error
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.ExternalizablewriteExternal in class WriteCursorConstantActionout - write bytes here.
java.io.IOException - thrown on errorpublic java.lang.String getSchemaName()
public java.lang.String getTableName()
public java.lang.String getColumnName(int i)
i - the column numberpublic long getAutoincIncrement(int i)
i - the column numberpublic boolean hasAutoincrement()
public RowLocation[] getAutoincRowLocation()
public int getTypeFormatId()
public FKInfo[] getFKInfo(ExecutionContext ec)
throws StandardException
ec - the ExecutionContext
StandardException - Thrown on failure
public TriggerInfo getTriggerInfo(ExecutionContext ec)
throws StandardException
StandardException - Thrown on failurepublic boolean upToDate()
upToDate in interface ConstantAction
public void executeConstantAction(Activation activation)
throws StandardException
executeConstantAction in interface ConstantActionactivation - The execution environment for this constant action.
StandardException - Thrown on failureConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)public long getConglomerateId()
public ExecRow getEmptyHeapRow(LanguageConnectionContext lcc)
throws StandardException
lcc - The LanguageConnectionContext to use.
StandardException - on errorpublic java.util.Properties getTargetProperties()
public java.lang.String getProperty(java.lang.String key)
key - The key to search for
public FormatableBitSet getBaseRowReadList()
public int[] getBaseRowReadMap()
public int[] getStreamStorableHeapColIds()
public java.lang.String getIndexNameFromCID(long indexCID)
indexCID - conglomerate ID of the index.
public java.lang.String[] getIndexNames()
public boolean modifiesTableId(UUID tableId)
modifiesTableId in interface ConstantActiontableId - on error
|
Built on Tue 2006-10-10 19:23:47+0200, from revision exported | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||