Class MergeConstantAction
java.lang.Object
org.apache.derby.impl.sql.execute.MergeConstantAction
- All Implemented Interfaces:
Externalizable
,Serializable
,Formatable
,TypedFormat
,ConstantAction
Describes the execution machinery needed to evaluate a MERGE statement.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate MatchingClauseConstantAction[]
private static final int
Serial version produced by the serialver utility.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
ConstructorsConstructorDescription0-arg constructor needed by Formatable machineryMergeConstantAction
(ConstantAction[] matchingClauses) Construct from thin air. -
Method Summary
Modifier and TypeMethodDescriptionvoid
executeConstantAction
(Activation activation) Run the ConstantAction.getMatchingClause
(int idx) Get the ith (0-based) matching clauseint
Get the formatID which corresponds to this class.int
Get the number of matching clausesvoid
Read this object from a stream of stored objects.void
Write this object to a stream of stored objects.
-
Field Details
-
FIRST_VERSION
private static final int FIRST_VERSIONSerial version produced by the serialver utility. Needed in order to make serialization work reliably across different compilers.- See Also:
-
_matchingClauses
-
-
Constructor Details
-
MergeConstantAction
public MergeConstantAction()0-arg constructor needed by Formatable machinery -
MergeConstantAction
Construct from thin air.- Parameters:
matchingClauses
- Constant actions for WHEN [ NOT ] MATCHED clauses.
-
-
Method Details
-
matchingClauseCount
public int matchingClauseCount()Get the number of matching clauses -
getMatchingClause
Get the ith (0-based) matching clause -
executeConstantAction
Description copied from interface:ConstantAction
Run the ConstantAction.- Specified by:
executeConstantAction
in interfaceConstantAction
- Parameters:
activation
- The execution environment for this constant action.- Throws:
StandardException
- Thrown on failure
-
readExternal
Read this object from a stream of stored objects.- Specified by:
readExternal
in interfaceExternalizable
- Parameters:
in
- read this.- Throws:
IOException
- thrown on errorClassNotFoundException
- thrown on error
-
writeExternal
Write this object to a stream of stored objects.- Specified by:
writeExternal
in interfaceExternalizable
- Parameters:
out
- write bytes here.- Throws:
IOException
- thrown on error
-
getTypeFormatId
public int getTypeFormatId()Get the formatID which corresponds to this class.- Specified by:
getTypeFormatId
in interfaceTypedFormat
- Returns:
- the formatID of this class
-