Class MatchingClauseConstantAction

java.lang.Object
org.apache.derby.impl.sql.execute.MatchingClauseConstantAction
All Implemented Interfaces:
Externalizable, Serializable, Formatable, TypedFormat, ConstantAction

public class MatchingClauseConstantAction extends Object implements ConstantAction, Formatable
Describes the execution machinery needed to evaluate a WHEN [ NOT ] MATCHING clause of a MERGE statement.
See Also:
  • Field Details

    • serialVersionUID

      private static final long serialVersionUID
      Serial version produced by the serialver utility. Needed in order to make serialization work reliably across different compilers.
      See Also:
    • FIRST_VERSION

      private static final int FIRST_VERSION
      See Also:
    • _clauseType

      private int _clauseType
    • _matchRefinementName

      private String _matchRefinementName
    • _thenColumnSignature

      private ResultDescription _thenColumnSignature
    • _rowMakingMethodName

      private String _rowMakingMethodName
    • _resultSetFieldName

      private String _resultSetFieldName
    • _actionMethodName

      private String _actionMethodName
    • _thenAction

      private ConstantAction _thenAction
    • _matchRefinementMethod

      private transient GeneratedMethod _matchRefinementMethod
    • _rowMakingMethod

      private transient GeneratedMethod _rowMakingMethod
    • _actionRS

      private transient ResultSet _actionRS
  • Constructor Details

    • MatchingClauseConstantAction

      public MatchingClauseConstantAction()
      0-arg constructor needed by Formatable machinery
    • MatchingClauseConstantAction

      public MatchingClauseConstantAction(int clauseType, String matchRefinementName, ResultDescription thenColumnSignature, String rowMakingMethodName, String resultSetFieldName, String actionMethodName, ConstantAction thenAction)
      Construct from thin air.
      Parameters:
      clauseType - WHEN_NOT_MATCHED_THEN_INSERT, WHEN_MATCHED_THEN_UPDATE, WHEN_MATCHED_THEN_DELETE
      matchRefinementName - 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 Details