Class CreateTriggerConstantAction

All Implemented Interfaces:
ConstantAction

class CreateTriggerConstantAction extends DDLSingleTableConstantAction
This class describes actions that are ALWAYS performed for a CREATE TRIGGER Statement at Execution time.
  • Field Details

    • triggerName

      private String triggerName
    • triggerSchemaName

      private String triggerSchemaName
    • triggerTable

      private TableDescriptor triggerTable
    • triggerTableId

      private UUID triggerTableId
    • eventMask

      private int eventMask
    • isBefore

      private boolean isBefore
    • isRow

      private boolean isRow
    • isEnabled

      private boolean isEnabled
    • referencingOld

      private boolean referencingOld
    • referencingNew

      private boolean referencingNew
    • whenSPSId

      private UUID whenSPSId
    • whenText

      private String whenText
    • actionSPSId

      private UUID actionSPSId
    • actionText

      private String actionText
    • originalWhenText

      private final String originalWhenText
    • originalActionText

      private String originalActionText
    • oldReferencingName

      private String oldReferencingName
    • newReferencingName

      private String newReferencingName
    • spsCompSchemaId

      private UUID spsCompSchemaId
    • referencedCols

      private int[] referencedCols
    • referencedColsInTriggerAction

      private int[] referencedColsInTriggerAction
    • providerInfo

      private final ProviderInfo[] providerInfo
  • Constructor Details

    • CreateTriggerConstantAction

      CreateTriggerConstantAction(String triggerSchemaName, String triggerName, int eventMask, boolean isBefore, boolean isRow, boolean isEnabled, TableDescriptor triggerTable, UUID whenSPSId, String whenText, UUID actionSPSId, String actionText, UUID spsCompSchemaId, int[] referencedCols, int[] referencedColsInTriggerAction, String originalWhenText, String originalActionText, boolean referencingOld, boolean referencingNew, String oldReferencingName, String newReferencingName, ProviderInfo[] providerInfo)
      Make the ConstantAction for a CREATE TRIGGER statement.
      Parameters:
      triggerSchemaName - name for the schema that trigger lives in.
      triggerName - Name of trigger
      eventMask - TriggerDescriptor.TRIGGER_EVENT_XXXX
      isBefore - is this a before (as opposed to after) trigger
      isRow - is this a row trigger or statement trigger
      isEnabled - is this trigger enabled or disabled
      triggerTable - the table upon which this trigger is defined
      whenSPSId - the sps id for the when clause (may be null)
      whenText - the text of the when clause (may be null)
      actionSPSId - the spsid for the trigger action (may be null)
      actionText - the text of the trigger action
      spsCompSchemaId - the compilation schema for the action and when spses. If null, will be set to the current default schema
      referencedCols - what columns does this trigger reference (may be null)
      referencedColsInTriggerAction - what columns does the trigger action reference through old/new transition variables (may be null)
      originalWhenText - The original user text of the WHEN clause (may be null)
      originalActionText - The original user text of the trigger action
      referencingOld - whether or not OLD appears in REFERENCING clause
      referencingNew - whether or not NEW appears in REFERENCING clause
      oldReferencingName - old referencing table name, if any, that appears in REFERENCING clause
      newReferencingName - new referencing table name, if any, that appears in REFERENCING clause
      providerInfo - array of providers that the trigger depends on
  • Method Details