Interface IStatementContainer

All Superinterfaces:
IStatement
All Known Subinterfaces:
IDatabase, IForeignTable, IPartitionTable, ISchema, ITable, IView
All Known Implementing Classes:
ChDatabase, ChSchema, ChTable, ChTableLog, ChView, GpExternalTable, GpPartitionTable, MsAbstractStatementContainer, MsDatabase, MsSchema, MsTable, MsType, MsView, PgAbstractForeignTable, PgAbstractRegularTable, PgAbstractStatementContainer, PgAbstractTable, PgAbstractView, PgDatabase, PgMaterializedView, PgPartitionForeignTable, PgPartitionTable, PgSchema, PgSimpleForeignTable, PgSimpleTable, PgTypedTable, PgView

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

      IStatement 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
    • getChildrenByType

      Collection<IStatement> getChildrenByType(DbObjType type)
      get all children by type
      Parameters:
      type - the type of the children
      Returns:
      unmodifiable collection of child statement, or empty list