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

All Superinterfaces:
SchemaObject<D,S>
All Known Implementing Classes:
BaseTable, BigQueryTable, CockroachDBTable, DB2Table, DerbyTable, FirebirdTable, H2Table, HSQLDBTable, IgniteThinTable, InformixTable, MySQLTable, OracleTable, PostgreSQLTable, RedshiftTable, SAPHANATable, SnowflakeTable, SpannerTable, SQLiteTable, SQLServerTable, SybaseASETable, SynapseTable, YugabyteDBTable

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

    Modifier and Type
    Method
    Description
    boolean
     
    void
    Locks this table in this schema using a read/write pessimistic lock until the end of the current transaction.
    void
    For databases that require an explicit unlocking, not an implicit end-of-transaction one.

    Methods inherited from interface migratedb.v1.core.api.internal.database.base.SchemaObject

    drop, getDatabase, getName, getSchema, toString
  • Method Details

    • exists

      boolean exists()
    • lock

      void lock()
      Locks this table in this schema using a read/write pessimistic lock until the end of the current transaction. Note that unlock() still needs to be called even if your database unlocks the table implicitly (in which case doUnlock() may be a no-op) in order to maintain the lock count correctly.
    • unlock

      void unlock()
      For databases that require an explicit unlocking, not an implicit end-of-transaction one.