org.apache.derby.impl.sql.execute
Class UpdatableVTIConstantAction
- java.lang.Object
-
- org.apache.derby.impl.sql.execute.UpdatableVTIConstantAction
-
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, Formatable, TypedFormat, ConstantAction
public class UpdatableVTIConstantAction extends java.lang.ObjectThis class describes compiled constants that are passed into Updatable VTIResultSets.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description int[]changedColumnIdsThis class implements Formatable.intstatementType-
Fields inherited from interface org.apache.derby.iapi.sql.execute.ConstantAction
WHEN_MATCHED_THEN_DELETE, WHEN_MATCHED_THEN_UPDATE, WHEN_NOT_MATCHED_THEN_INSERT
-
-
Constructor Summary
Constructors Constructor and Description UpdatableVTIConstantAction()Public niladic constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidexecuteConstantAction(Activation activation)NOP routine.FormatableBitSetgetBaseRowReadList()int[]getBaseRowReadMap()longgetConglomerateId()Get the conglomerate id for the changed heap.java.lang.StringgetIndexNameFromCID(long indexCID)get the index name given the conglomerate id of the index.java.lang.String[]getIndexNames()java.lang.StringgetProperty(java.lang.String key)The the value of the specified key, if it exists, from the targetProperties.int[]getStreamStorableHeapColIds()java.util.PropertiesgetTargetProperties()Get the targetProperties from the constant action.intgetTypeFormatId()Get the formatID which corresponds to this class.voidreadExternal(java.io.ObjectInput in)Read this object from a stream of stored objects.booleanunderMerge()Return true if this is an action of a MERGE statementvoidwriteExternal(java.io.ObjectOutput out)Write this object to a stream of stored objects.
-
-
-
Field Detail
-
changedColumnIds
public 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.
-
statementType
public int statementType
-
-
Constructor Detail
-
UpdatableVTIConstantAction
public UpdatableVTIConstantAction()
Public niladic constructor. Needed for Formatable interface to work.
-
-
Method Detail
-
getTypeFormatId
public int getTypeFormatId()
Get the formatID which corresponds to this class.- Returns:
- the formatID of this class
-
executeConstantAction
public final void executeConstantAction(Activation activation) throws StandardException
NOP routine. The work is done in InsertResultSet.- Specified by:
executeConstantActionin interfaceConstantAction- Parameters:
activation- The execution environment for this constant action.- Throws:
StandardException- Thrown on failure- See Also:
ConstantAction.executeConstantAction(org.apache.derby.iapi.sql.Activation)
-
readExternal
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundExceptionRead this object from a stream of stored objects.- Specified by:
readExternalin interfacejava.io.Externalizable- Parameters:
in- read this.- Throws:
java.io.IOException- thrown on errorjava.lang.ClassNotFoundException- thrown on error
-
writeExternal
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOExceptionWrite this object to a stream of stored objects.- Specified by:
writeExternalin interfacejava.io.Externalizable- Parameters:
out- write bytes here.- Throws:
java.io.IOException- thrown on error
-
underMerge
public boolean underMerge()
Return true if this is an action of a MERGE statement
-
getConglomerateId
public long getConglomerateId()
Get the conglomerate id for the changed heap.- Returns:
- the conglomerate id.
-
getTargetProperties
public java.util.Properties getTargetProperties()
Get the targetProperties from the constant action.- Returns:
- The targetProperties
-
getProperty
public java.lang.String getProperty(java.lang.String key)
The the value of the specified key, if it exists, from the targetProperties.- Parameters:
key- The key to search for- Returns:
- The value for the specified key if it exists, otherwise null. (Return null if targetProperties is null.)
-
getBaseRowReadList
public FormatableBitSet getBaseRowReadList()
-
getBaseRowReadMap
public int[] getBaseRowReadMap()
-
getStreamStorableHeapColIds
public int[] getStreamStorableHeapColIds()
-
getIndexNameFromCID
public java.lang.String getIndexNameFromCID(long indexCID)
get the index name given the conglomerate id of the index.- Parameters:
indexCID- conglomerate ID of the index.- Returns:
- index name of given index.
-
getIndexNames
public java.lang.String[] getIndexNames()
-
-
DataMelt 3.0 © DataMelt by jWork.ORG