| java.lang.Object org.apache.derby.impl.sql.execute.WriteCursorConstantAction
All known Subclasses: org.apache.derby.impl.sql.execute.UpdatableVTIConstantAction, org.apache.derby.impl.sql.execute.InsertConstantAction, org.apache.derby.impl.sql.execute.UpdateConstantAction, org.apache.derby.impl.sql.execute.DeleteConstantAction,
WriteCursorConstantAction | abstract class WriteCursorConstantAction implements ConstantAction,Formatable(Code) | | This abstract class describes compiled constants that are passed into
Delete, Insert, and Update ResultSets.
author: Rick Hillegas |
Constructor Summary | |
public | WriteCursorConstantAction() Public niladic constructor. | public | WriteCursorConstantAction(long conglomId, StaticCompiledOpenConglomInfo heapSCOCI, IndexRowGenerator[] irgs, long[] indexCIDS, StaticCompiledOpenConglomInfo[] indexSCOCIs, String[] indexNames, boolean deferred, Properties targetProperties, UUID targetUUID, int lockMode, FKInfo[] fkInfo, TriggerInfo triggerInfo, ExecRow emptyHeapRow, FormatableBitSet baseRowReadList, int[] baseRowReadMap, int[] streamStorableHeapColIds, boolean singleRowSource) Make the ConstantAction for a DELETE, INSERT, or UPDATE statement.
Parameters: conglomId - Conglomerate ID of heap. 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 update Parameters: targetProperties - Properties on the target table Parameters: targetUUID - UUID of target table Parameters: lockMode - The lock mode to use on the target table Parameters: fkInfo - Structure containing foreign key info, if any (may be null) Parameters: triggerInfo - Structure containing trigger info, if any (may be null) Parameters: emptyHeapRow - an empty heap row Parameters: baseRowReadMap - BaseRowReadMap[heapColId]->ReadRowColumnId. |
conglomId | long conglomId(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.
|
deferred | boolean deferred(Code) | | |
indexCIDS | long[] indexCIDS(Code) | | |
singleRowSource | boolean singleRowSource(Code) | | |
WriteCursorConstantAction | public WriteCursorConstantAction()(Code) | | Public niladic constructor. Needed for Formatable interface to work.
|
WriteCursorConstantAction | public WriteCursorConstantAction(long conglomId, StaticCompiledOpenConglomInfo heapSCOCI, IndexRowGenerator[] irgs, long[] indexCIDS, StaticCompiledOpenConglomInfo[] indexSCOCIs, String[] indexNames, boolean deferred, Properties targetProperties, UUID targetUUID, int lockMode, FKInfo[] fkInfo, TriggerInfo triggerInfo, ExecRow emptyHeapRow, FormatableBitSet baseRowReadList, int[] baseRowReadMap, int[] streamStorableHeapColIds, boolean singleRowSource)(Code) | | Make the ConstantAction for a DELETE, INSERT, or UPDATE statement.
Parameters: conglomId - Conglomerate ID of heap. 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 update Parameters: targetProperties - Properties on the target table Parameters: targetUUID - UUID of target table Parameters: lockMode - The lock mode to use on the target table Parameters: fkInfo - Structure containing foreign key info, if any (may be null) Parameters: triggerInfo - Structure containing trigger info, if any (may be null) Parameters: emptyHeapRow - an empty heap row Parameters: baseRowReadMap - BaseRowReadMap[heapColId]->ReadRowColumnId. (0 based) Parameters: streamStorableHeapColIds - Null for non rep. (0 based) Parameters: singleRowSource - Whether or not source is a single row source |
getBaseRowReadMap | public int[] getBaseRowReadMap()(Code) | | |
getConglomerateId | public long getConglomerateId()(Code) | | Get the conglomerate id for the changed heap.
the conglomerate id. |
getFKInfo | public FKInfo[] getFKInfo(ExecutionContext ec) throws StandardException(Code) | | Gets the foreign key information for this constant action.
A full list of foreign keys was compiled into this constant
action. However, we prune this list at run time so that we
enforce only the foreign keys that we absolutely must.
What's going on here? Well, in certain contexts (REFRESH and
when intially booting a Target), we don't have to enforce some
foreign keys. We allow the ExecutionContext to rule on which
foreign keys are relevant and which aren't.
Parameters: ec - the ExecutionContext the list of foreign keys to enforce for this action exception: StandardException - Thrown on failure |
getIndexNameFromCID | public String getIndexNameFromCID(long indexCID)(Code) | | get the index name given the conglomerate id of the index.
Parameters: indexCID - conglomerate ID of the index. index name of given index. |
getProperty | public String getProperty(String key)(Code) | | The the value of the specified key, if it exists, from
the targetProperties.
Parameters: key - The key to search for The value for the specified key if it exists, otherwise null.(Return null if targetProperties is null.) |
getStreamStorableHeapColIds | public int[] getStreamStorableHeapColIds()(Code) | | |
getTargetProperties | public Properties getTargetProperties()(Code) | | Get the targetProperties from the constant action.
The targetProperties |
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 |
|
|