Class MsSelectStmt
java.lang.Object
org.pgcodekeeper.core.parsers.antlr.ms.rulectx.MsSelectStmt
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 Summary
ConstructorsConstructorDescriptionCreates a wrapper for a Microsoft SQL SELECT statement.Creates a wrapper for a Microsoft SQL SELECT statement without parentheses. -
Method Summary
Modifier and TypeMethodDescriptionReturns the FOR clause context if present.option()Returns the OPTION clause context if present.Returns the Microsoft SQL SELECT operations wrapper.Returns the WITH expression context if present.
-
Constructor Details
-
MsSelectStmt
Creates a wrapper for a Microsoft SQL SELECT statement.- Parameters:
select- the SELECT statement context
-
MsSelectStmt
Creates a wrapper for a Microsoft SQL SELECT statement without parentheses.- Parameters:
select- the SELECT statement context without parentheses
-
-
Method Details
-
withExpression
Returns the WITH expression context if present.- Returns:
- the WITH expression context or null if not present
-
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
Returns the FOR clause context if present.- Returns:
- the FOR clause context or null if not present
-