Class CreateMsTrigger


public final class CreateMsTrigger extends BatchContextProcessor
Parser for Microsoft SQL CREATE TRIGGER statements. Handles trigger creation including ANSI_NULLS and QUOTED_IDENTIFIER settings, table references, and trigger body analysis.
  • Constructor Details

    • CreateMsTrigger

      public CreateMsTrigger(TSQLParser.Batch_statementContext ctx, MsDatabase db, boolean ansiNulls, boolean quotedIdentifier, org.antlr.v4.runtime.CommonTokenStream stream, ISettings settings)
      Creates a parser for Microsoft SQL CREATE TRIGGER statements.
      Parameters:
      ctx - the batch statement context containing the trigger definition
      db - the Microsoft SQL database schema being processed
      ansiNulls - the ANSI_NULLS setting for the trigger
      quotedIdentifier - the QUOTED_IDENTIFIER setting for the trigger
      stream - the token stream for source code processing
      settings - parsing configuration settings
  • Method Details

    • parseObject

      public void parseObject()
      Description copied from class: ParserAbstract
      Parses a database object from the current context. Must be implemented by concrete subclasses to handle specific object types.
      Specified by:
      parseObject in class ParserAbstract<MsDatabase>
    • getObject

      public MsTrigger getObject(AbstractSchema schema, boolean isJdbc)
      Creates and configures the trigger object from the parse context. Handles schema resolution, source parts, and trigger analysis setup.
      Parameters:
      schema - the schema containing the table
      isJdbc - whether this is being parsed in JDBC mode
      Returns:
      the created trigger object