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 Detail

      • triggerName

        private java.lang.String triggerName
      • triggerSchemaName

        private java.lang.String triggerSchemaName
      • 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 java.lang.String whenText
      • actionSPSId

        private UUID actionSPSId
      • actionText

        private java.lang.String actionText
      • originalWhenText

        private final java.lang.String originalWhenText
      • originalActionText

        private java.lang.String originalActionText
      • oldReferencingName

        private java.lang.String oldReferencingName
      • newReferencingName

        private java.lang.String newReferencingName
      • spsCompSchemaId

        private UUID spsCompSchemaId
      • referencedCols

        private int[] referencedCols
      • referencedColsInTriggerAction

        private int[] referencedColsInTriggerAction
    • Constructor Detail

      • CreateTriggerConstantAction

        CreateTriggerConstantAction​(java.lang.String triggerSchemaName,
                                    java.lang.String triggerName,
                                    int eventMask,
                                    boolean isBefore,
                                    boolean isRow,
                                    boolean isEnabled,
                                    TableDescriptor triggerTable,
                                    UUID whenSPSId,
                                    java.lang.String whenText,
                                    UUID actionSPSId,
                                    java.lang.String actionText,
                                    UUID spsCompSchemaId,
                                    int[] referencedCols,
                                    int[] referencedColsInTriggerAction,
                                    java.lang.String originalWhenText,
                                    java.lang.String originalActionText,
                                    boolean referencingOld,
                                    boolean referencingNew,
                                    java.lang.String oldReferencingName,
                                    java.lang.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