Class AlterOwner
java.lang.Object
org.pgcodekeeper.core.parsers.antlr.base.statement.ParserAbstract<PgDatabase>
org.pgcodekeeper.core.parsers.antlr.pg.statement.PgParserAbstract
org.pgcodekeeper.core.parsers.antlr.pg.statement.AlterOwner
Parser for PostgreSQL ALTER ... OWNER TO statements.
This class handles parsing of ownership changes for various database objects including schemas, functions, operators, tables, views, domains, types, and other PostgreSQL objects. It supports both direct ownership changes and statement overrides for batch processing.
-
Constructor Summary
ConstructorsConstructorDescriptionAlterOwner(SQLParser.Alter_owner_statementContext ctx, PgDatabase db, Map<PgStatement, StatementOverride> overrides, ISettings settings) Constructs a new AlterOwner parser with optional statement overrides.AlterOwner(SQLParser.Alter_owner_statementContext ctx, PgDatabase db, ISettings settings) Constructs a new AlterOwner parser without statement overrides. -
Method Summary
Modifier and TypeMethodDescriptionvoidParses a database object from the current context.Methods inherited from class org.pgcodekeeper.core.parsers.antlr.pg.statement.PgParserAbstract
getIdentifiers, getIdentifiers, getIdentifiers, getTypeName, parseArguments, parseOperatorSignature, parseSignature, unquoteQuotedStringMethods inherited from class org.pgcodekeeper.core.parsers.antlr.base.statement.ParserAbstract
fillOptionParams, fillOptionParams, getFullCtxText, getFullCtxText, getFullCtxText, getSafe, getSafe, parseArgMode, parseObject
-
Constructor Details
-
AlterOwner
Constructs a new AlterOwner parser without statement overrides.- Parameters:
ctx- the ALTER ... OWNER TO statement contextdb- the PostgreSQL database objectsettings- the ISettings object
-
AlterOwner
public AlterOwner(SQLParser.Alter_owner_statementContext ctx, PgDatabase db, Map<PgStatement, StatementOverride> overrides, ISettings settings) Constructs a new AlterOwner parser with optional statement overrides.- Parameters:
ctx- the ALTER ... OWNER TO statement contextdb- the PostgreSQL database objectoverrides- optional map for statement overrides, may be nullsettings- the ISettings object
-
-
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<PgDatabase>
-