Class CreateMsProcedure
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.CreateMsProcedure
Parser for Microsoft SQL CREATE PROCEDURE statements.
Handles both regular T-SQL procedures and CLR procedures with support for
arguments, procedure options, and proper analysis setup.
-
Constructor Summary
ConstructorsConstructorDescriptionCreateMsProcedure(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 PROCEDURE statements. -
Method Summary
Modifier and TypeMethodDescriptiongetObject(AbstractSchema schema, boolean isJdbc) Creates and configures the procedure object from the parse context.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
-
CreateMsProcedure
public CreateMsProcedure(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 PROCEDURE statements.- Parameters:
ctx- the batch statement context containing the procedure definitiondb- the Microsoft SQL database schema being processedansiNulls- the ANSI_NULLS setting for the procedurequotedIdentifier- the QUOTED_IDENTIFIER setting for the procedurestream- 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>
-
getObject
Creates and configures the procedure object from the parse context. Handles both CLR external procedures and regular T-SQL procedures with appropriate analysis setup.- Parameters:
schema- the schema to add the procedure toisJdbc- whether this is being parsed in JDBC mode- Returns:
- the created procedure object
-