Class MsAlterAuthorization
java.lang.Object
org.pgcodekeeper.core.database.base.parser.statement.ParserAbstract<MsDatabase>
org.pgcodekeeper.core.database.ms.parser.statement.MsParserAbstract
org.pgcodekeeper.core.database.ms.parser.statement.MsAlterAuthorization
Parser for Microsoft SQL ALTER AUTHORIZATION statements.
Handles ownership changes for database objects including tables, assemblies, roles, and schemas
with support for statement overrides.
-
Constructor Summary
ConstructorsConstructorDescriptionMsAlterAuthorization(TSQLParser.Alter_authorizationContext ctx, MsDatabase db, Map<AbstractStatement, StatementOverride> overrides, ISettings settings) Creates a parser for Microsoft SQL ALTER AUTHORIZATION statements with statement overrides.MsAlterAuthorization(TSQLParser.Alter_authorizationContext ctx, MsDatabase db, ISettings settings) Creates a parser for Microsoft SQL ALTER AUTHORIZATION statements without overrides. -
Method Summary
Modifier and TypeMethodDescriptionvoidParses a database object from the current context.Methods inherited from class org.pgcodekeeper.core.database.base.parser.statement.ParserAbstract
getFullCtxText, getFullCtxText, getFullCtxText, getSafe, getSafe, parseArgMode, parseObject
-
Constructor Details
-
MsAlterAuthorization
public MsAlterAuthorization(TSQLParser.Alter_authorizationContext ctx, MsDatabase db, ISettings settings) Creates a parser for Microsoft SQL ALTER AUTHORIZATION statements without overrides.- Parameters:
ctx- the ANTLR parse tree context for the ALTER AUTHORIZATION statementdb- the Microsoft SQL database schema being processedsettings- parsing configuration settings
-
MsAlterAuthorization
public MsAlterAuthorization(TSQLParser.Alter_authorizationContext ctx, MsDatabase db, Map<AbstractStatement, StatementOverride> overrides, ISettings settings) Creates a parser for Microsoft SQL ALTER AUTHORIZATION statements with statement overrides.- Parameters:
ctx- the ANTLR parse tree context for the ALTER AUTHORIZATION statementdb- the Microsoft SQL database schema being processedoverrides- map of statement overrides for ownership modificationssettings- 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>
-