org.apache.derby.impl.sql.execute
Class UpdateConstantAction

java.lang.Object
  extended by org.apache.derby.impl.sql.execute.WriteCursorConstantAction
      extended by org.apache.derby.impl.sql.execute.UpdateConstantAction
All Implemented Interfaces:
java.io.Externalizable, java.io.Serializable, Formatable, TypedFormat, ConstantAction

public class UpdateConstantAction
extends WriteCursorConstantAction

This class describes compiled constants that are passed into UpdateResultSets.

See Also:
Serialized Form

Field Summary
(package private)  int[] changedColumnIds
          This class implements Formatable.
(package private)  int numColumns
           
private  boolean positionedUpdate
           
 
Fields inherited from class org.apache.derby.impl.sql.execute.WriteCursorConstantAction
conglomId, deferred, heapSCOCI, indexCIDS, indexNames, indexSCOCIs, irgs, lockMode, singleRowSource, targetUUID
 
Constructor Summary
UpdateConstantAction()
          Public niladic constructor.
UpdateConstantAction(long conglomId, StaticCompiledOpenConglomInfo heapSCOCI, IndexRowGenerator[] irgs, long[] indexCIDS, StaticCompiledOpenConglomInfo[] indexSCOCIs, java.lang.String[] indexNames, ExecRow emptyHeapRow, boolean deferred, UUID targetUUID, int lockMode, int[] changedColumnIds, FKInfo[] fkInfo, TriggerInfo triggerInfo, FormatableBitSet baseRowReadList, int[] baseRowReadMap, int[] streamStorableHeapColIds, int numColumns, boolean positionedUpdate, boolean singleRowSource)
          Make the ConstantAction for an UPDATE statement.
 
Method Summary
 int getTypeFormatId()
          Get the formatID which corresponds to this class.
 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.
 
Methods inherited from class org.apache.derby.impl.sql.execute.WriteCursorConstantAction
executeConstantAction, getBaseRowReadList, getBaseRowReadMap, getConglomerateId, getEmptyHeapRow, getFKInfo, getIndexNameFromCID, getIndexNames, getProperty, getStreamStorableHeapColIds, getTargetProperties, getTriggerInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

changedColumnIds

int[] changedColumnIds
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.


positionedUpdate

private boolean positionedUpdate

numColumns

int numColumns
Constructor Detail

UpdateConstantAction

public UpdateConstantAction()
Public niladic constructor. Needed for Formatable interface to work.


UpdateConstantAction

public UpdateConstantAction(long conglomId,
                            StaticCompiledOpenConglomInfo heapSCOCI,
                            IndexRowGenerator[] irgs,
                            long[] indexCIDS,
                            StaticCompiledOpenConglomInfo[] indexSCOCIs,
                            java.lang.String[] indexNames,
                            ExecRow emptyHeapRow,
                            boolean deferred,
                            UUID targetUUID,
                            int lockMode,
                            int[] changedColumnIds,
                            FKInfo[] fkInfo,
                            TriggerInfo triggerInfo,
                            FormatableBitSet baseRowReadList,
                            int[] baseRowReadMap,
                            int[] streamStorableHeapColIds,
                            int numColumns,
                            boolean positionedUpdate,
                            boolean singleRowSource)
Make the ConstantAction for an UPDATE statement.

Parameters:
conglomId - Conglomerate ID.
heapSCOCI - StaticCompiledOpenConglomInfo for heap.
irgs - Index descriptors
indexCIDS - Conglomerate IDs of indices
indexSCOCIs - StaticCompiledOpenConglomInfos for indexes.
indexNames - Names of indices on this table for error reporting.
emptyHeapRow - Template for heap row.
deferred - True means process as a deferred update.
targetUUID - UUID of target table
lockMode - The lock mode to use (row or table, see TransactionController)
changedColumnIds - Array of ids of changed columns
fkInfo - 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 update
singleRowSource - Whether or not source is a single row source
Method Detail

readExternal

public void readExternal(java.io.ObjectInput in)
                  throws java.io.IOException,
                         java.lang.ClassNotFoundException
Description copied from class: WriteCursorConstantAction
Read this object from a stream of stored objects.

Specified by:
readExternal in interface java.io.Externalizable
Overrides:
readExternal in class WriteCursorConstantAction
Parameters:
in - read this.
Throws:
java.io.IOException - thrown on error
java.lang.ClassNotFoundException - thrown on error
See Also:
Externalizable.readExternal(java.io.ObjectInput)

writeExternal

public void writeExternal(java.io.ObjectOutput out)
                   throws java.io.IOException
Description copied from class: WriteCursorConstantAction
Write this object to a stream of stored objects.

Specified by:
writeExternal in interface java.io.Externalizable
Overrides:
writeExternal in class WriteCursorConstantAction
Parameters:
out - write bytes here.
Throws:
java.io.IOException - thrown on error
See Also:
Externalizable.writeExternal(java.io.ObjectOutput)

getTypeFormatId

public int getTypeFormatId()
Get the formatID which corresponds to this class.

Returns:
the formatID of this class

Built on Thu 2012-03-29 21:53:33+0000, from revision ???

Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.