liquibase.lock
Class LockHandler

java.lang.Object
  extended by liquibase.lock.LockHandler

public class LockHandler
extends java.lang.Object


Method Summary
 boolean acquireLock()
           
 void forceReleaseLock()
          Releases whatever locks are on the database change log table
static LockHandler getInstance(Database database)
           
 DatabaseChangeLogLock[] listLocks()
           
 void releaseLock()
           
 void reset()
          Clears information the lock handler knows about the tables.
 void waitForLock()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LockHandler getInstance(Database database)

acquireLock

public boolean acquireLock()
                    throws LockException
Throws:
LockException

releaseLock

public void releaseLock()
                 throws LockException
Throws:
LockException

listLocks

public DatabaseChangeLogLock[] listLocks()
                                  throws LockException
Throws:
LockException

waitForLock

public void waitForLock()
                 throws LockException
Throws:
LockException

forceReleaseLock

public void forceReleaseLock()
                      throws LockException,
                             JDBCException
Releases whatever locks are on the database change log table

Throws:
LockException
JDBCException

reset

public void reset()
Clears information the lock handler knows about the tables. Should only be called by LiquiBase internal calls