public final class MsCreateView extends MsBatchContextProcessor
Parser for Microsoft SQL CREATE VIEW statements. Handles view creation with support for view attributes like SCHEMABINDING, ANSI_NULLS and QUOTED_IDENTIFIER settings, and analysis of SELECT statements.
  • Constructor Details

    • MsCreateView

      public MsCreateView(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 VIEW statements from batch context.
      Parameters:
      ctx - the batch statement context containing the view definition
      db - the Microsoft SQL database schema being processed
      ansiNulls - the ANSI_NULLS setting for the view
      quotedIdentifier - the QUOTED_IDENTIFIER setting for the view
      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>
    • fillObject

      public void fillObject(MsView view)
      Fills the view object with parsed information including attributes and SELECT statement. Processes ANSI_NULLS, QUOTED_IDENTIFIER, SCHEMABINDING, and sets up view analysis.
      Parameters:
      view - the view object to populate with parsed information