Class CockroachDBTable

  • All Implemented Interfaces:
    SchemaObject, Table

    public class CockroachDBTable
    extends BaseTable
    CockroachDB-specific table.

    Note that CockroachDB doesn't support table locks.

    • Method Detail

      • doLock

        protected void doLock()
                       throws SQLException
        Description copied from class: BaseTable
        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.
        Specified by:
        doLock in class BaseTable
        Throws:
        SQLException - when this table in this schema could not be locked.
      • doUnlock

        protected void doUnlock()
        Description copied from class: BaseTable
        For databases that require an explicit unlocking, not an implicit end-of-transaction one.
        Overrides:
        doUnlock in class BaseTable