Interface Table
-
- All Superinterfaces:
SchemaObject
- 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 extends SchemaObject
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanexists()voidlock()Locks this table in this schema using a read/write pessimistic lock until the end of the current transaction.voidunlock()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
getDatabase, getName, getSchema, toString
-
-
-
-
Method Detail
-
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 thatunlock()still needs to be called even if your database unlocks the table implicitly (in which casedoUnlock()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.
-
-