Interface Schema<D extends Database<?>,T extends Table<?,?>>

All Known Implementing Classes:
BaseSchema, BigQuerySchema, CockroachDBSchema, DB2Schema, DerbySchema, FirebirdSchema, H2Schema, HSQLDBSchema, IgniteThinSchema, InformixSchema, MySQLSchema, OracleSchema, PostgreSQLSchema, RedshiftSchema, SAPHANASchema, SnowflakeSchema, SpannerSchema, SQLiteSchema, SQLServerSchema, SybaseASESchema, SynapseSchema, YugabyteDBSchema

public interface Schema<D extends Database<?>,T extends Table<?,?>>
  • Method Summary

    Modifier and Type
    Method
    Description
    T[]
    Retrieves all the tables in this schema.
    void
    Cleans all the objects in this schema.
    void
    Creates this schema in the database.
    void
    Drops this schema from the database.
    boolean
     
    boolean
     
    getFunction(String functionName, String... args)
    Retrieves the function with this name in this schema.
     
    Table<?,?>
    getTable(String tableName)
    Retrieves the table with this name in this schema.
  • Method Details

    • getName

      String getName()
    • exists

      boolean exists()
    • empty

      boolean empty()
    • create

      void create()
      Creates this schema in the database.
    • drop

      void drop()
      Drops this schema from the database.
    • clean

      void clean()
      Cleans all the objects in this schema.
    • allTables

      T[] allTables()
      Retrieves all the tables in this schema.
    • getTable

      Table<?,?> getTable(String tableName)
      Retrieves the table with this name in this schema.
    • getFunction

      Function<?,?> getFunction(String functionName, String... args)
      Retrieves the function with this name in this schema.