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 intSerial version produced by the serialver utility.Fields inherited from interface 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 TypeMethodDescriptionvoidexecuteConstantAction(Activation activation) ////////////////////////////////////////////////////////////////////////////////getMatchingClause(int idx) Get the ith (0-based) matching clauseintGet the formatID which corresponds to this class.intGet the number of matching clausesvoidRead this object from a stream of stored objects.voidWrite 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
////////////////////////////////////////////////////////////////////////////////- Specified by:
executeConstantActionin 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:
readExternalin 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:
writeExternalin 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:
getTypeFormatIdin interfaceTypedFormat- Returns:
- the formatID of this class
-