Class CreateMsView
java.lang.Object
org.pgcodekeeper.core.parsers.antlr.base.statement.ParserAbstract<MsDatabase>
org.pgcodekeeper.core.parsers.antlr.ms.statement.MsParserAbstract
org.pgcodekeeper.core.parsers.antlr.ms.statement.BatchContextProcessor
org.pgcodekeeper.core.parsers.antlr.ms.statement.CreateMsView
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 Summary
ConstructorsConstructorDescriptionCreateMsView(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. -
Method Summary
Modifier and TypeMethodDescriptionvoidfillObject(MsView view) Fills the view object with parsed information including attributes and SELECT statement.voidParses a database object from the current context.Methods inherited from class org.pgcodekeeper.core.parsers.antlr.base.statement.ParserAbstract
fillOptionParams, fillOptionParams, getFullCtxText, getFullCtxText, getFullCtxText, getSafe, getSafe, parseArgMode, parseObject
-
Constructor Details
-
CreateMsView
public CreateMsView(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 definitiondb- the Microsoft SQL database schema being processedansiNulls- the ANSI_NULLS setting for the viewquotedIdentifier- the QUOTED_IDENTIFIER setting for the viewstream- the token stream for source code processingsettings- parsing configuration settings
-
-
Method Details
-
parseObject
public void parseObject()Description copied from class:ParserAbstractParses a database object from the current context. Must be implemented by concrete subclasses to handle specific object types.- Specified by:
parseObjectin classParserAbstract<MsDatabase>
-
fillObject
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
-