Package org.pgcodekeeper.core.schema
Interface IStatementContainer
- All Superinterfaces:
IStatement
- All Known Implementing Classes:
AbstractDatabase,AbstractForeignTable,AbstractPgTable,AbstractPgView,AbstractRegularTable,AbstractSchema,AbstractTable,AbstractView,ChDatabase,ChSchema,ChTable,ChTableLog,ChView,GpExternalTable,MaterializedPgView,MsDatabase,MsSchema,MsTable,MsType,MsView,PartitionForeignPgTable,PartitionGpTable,PartitionPgTable,PgDatabase,PgSchema,PgStatementContainer,PgView,SimpleForeignPgTable,SimplePgTable,TypedPgTable
Interface for database objects that can contain other statements as children.
Provides functionality for adding and retrieving child statements.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(IStatement stmt) Adds a child statement to this container.Gets a child statement by name and type.Methods inherited from interface org.pgcodekeeper.core.schema.IStatement
getBareName, getComment, getDatabase, getName, getParent, getQualifiedName, getStatementType
-
Method Details
-
addChild
Adds a child statement to this container.- Parameters:
stmt- the child statement to add
-
getChild
Gets a child statement by name and type.- Parameters:
name- the name of the child to findtype- the type of the child to find- Returns:
- the child statement, or null if not found
-