Interface IStatementContainer

All Superinterfaces:
IStatement
All Known Subinterfaces:
IDatabase, ISchema
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

public interface IStatementContainer extends IStatement
Interface for database objects that can contain other statements as children. Provides functionality for adding and retrieving child statements.
  • Method Details

    • addChild

      void addChild(IStatement stmt)
      Adds a child statement to this container.
      Parameters:
      stmt - the child statement to add
    • getChild

      PgStatement getChild(String name, DbObjType type)
      Gets a child statement by name and type.
      Parameters:
      name - the name of the child to find
      type - the type of the child to find
      Returns:
      the child statement, or null if not found