org.apache.derby.impl.sql.execute
Class MatchingClauseConstantAction
- java.lang.Object
-
- org.apache.derby.impl.sql.execute.MatchingClauseConstantAction
-
- All Implemented Interfaces:
- java.io.Externalizable, java.io.Serializable, Formatable, TypedFormat, ConstantAction
public class MatchingClauseConstantAction extends java.lang.Object implements ConstantAction, Formatable
Describes the execution machinery needed to evaluate a WHEN [ NOT ] MATCHING clause of a MERGE statement.- See Also:
- Serialized Form
-
-
Field Summary
-
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 MatchingClauseConstantAction()0-arg constructor needed by Formatable machineryMatchingClauseConstantAction(int clauseType, java.lang.String matchRefinementName, ResultDescription thenColumnSignature, java.lang.String rowMakingMethodName, java.lang.String resultSetFieldName, java.lang.String actionMethodName, ConstantAction thenAction)Construct from thin air.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description intclauseType()Get the clause type: WHEN_NOT_MATCHED_THEN_INSERT, WHEN_MATCHED_THEN_UPDATE, WHEN_MATCHED_THEN_DELETEvoidexecuteConstantAction(Activation activation)Run the ConstantAction.voidexecuteConstantAction(Activation activation, org.apache.derby.impl.sql.execute.TemporaryRowHolderImpl thenRows)intgetTypeFormatId()Get the formatID which corresponds to this class.voidreadExternal(java.io.ObjectInput in)Read this object from a stream of stored objects.voidwriteExternal(java.io.ObjectOutput out)Write this object to a stream of stored objects.
-
-
-
Constructor Detail
-
MatchingClauseConstantAction
public MatchingClauseConstantAction()
0-arg constructor needed by Formatable machinery
-
MatchingClauseConstantAction
public MatchingClauseConstantAction(int clauseType, java.lang.String matchRefinementName, ResultDescription thenColumnSignature, java.lang.String rowMakingMethodName, java.lang.String resultSetFieldName, java.lang.String actionMethodName, ConstantAction thenAction)Construct from thin air.- Parameters:
clauseType- WHEN_NOT_MATCHED_THEN_INSERT, WHEN_MATCHED_THEN_UPDATE, WHEN_MATCHED_THEN_DELETEmatchRefinementName- Name of the method which evaluates the boolean expression in the WHEN clause.thenColumnSignature- The shape of the row which goes into the temporary table.rowMakingMethodName- Name of the method which populates the "then" row with expressions from the driving left join.resultSetFieldName- Name of the field which will be stuffed at runtime with the temporary table of relevant rows.actionMethodName- Name of the method which invokes the INSERT/UPDATE/DELETE action.thenAction- The ConstantAction describing the associated INSERT/UPDATE/DELETE action.
-
-
Method Detail
-
clauseType
public int clauseType()
Get the clause type: WHEN_NOT_MATCHED_THEN_INSERT, WHEN_MATCHED_THEN_UPDATE, WHEN_MATCHED_THEN_DELETE
-
executeConstantAction
public void executeConstantAction(Activation activation) throws StandardException
Description copied from interface:ConstantActionRun the ConstantAction.- Specified by:
executeConstantActionin interfaceConstantAction- Parameters:
activation- The execution environment for this constant action.- Throws:
StandardException- Thrown on failure
-
executeConstantAction
public void executeConstantAction(Activation activation, org.apache.derby.impl.sql.execute.TemporaryRowHolderImpl thenRows) throws StandardException
- Throws:
StandardException
-
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
-
getTypeFormatId
public int getTypeFormatId()
Get the formatID which corresponds to this class.- Specified by:
getTypeFormatIdin interfaceTypedFormat- Returns:
- the formatID of this class
-
-
DataMelt 3.0 © DataMelt by jWork.ORG