java.lang.Object
org.pgcodekeeper.core.database.ms.parser.rulectx.MsSelectStmt

public class MsSelectStmt extends Object
Merging wrapper for Microsoft SQL SELECT statements. Provides a unified interface for working with both parenthesized and non-parenthesized SELECT statements in Microsoft SQL syntax.
  • Constructor Details

    • MsSelectStmt

      public MsSelectStmt(TSQLParser.Select_statementContext select)
      Creates a wrapper for a Microsoft SQL SELECT statement.
      Parameters:
      select - the SELECT statement context
    • MsSelectStmt

      public MsSelectStmt(TSQLParser.Select_stmt_no_parensContext select)
      Creates a wrapper for a Microsoft SQL SELECT statement without parentheses.
      Parameters:
      select - the SELECT statement context without parentheses
  • Method Details

    • withExpression

      public TSQLParser.With_expressionContext withExpression()
      Returns the WITH expression context if present.
      Returns:
      the WITH expression context or null if not present
    • selectOps

      public MsSelectOps selectOps()
      Returns the Microsoft SQL SELECT operations wrapper.
      Returns:
      wrapper for the SELECT operations part of the statement
    • option

      Returns the OPTION clause context if present.
      Returns:
      the OPTION clause context or null if not present
    • forClause

      public TSQLParser.For_clauseContext forClause()
      Returns the FOR clause context if present.
      Returns:
      the FOR clause context or null if not present