org.apache.ojb.otm.lock
Class LockManager

java.lang.Object
  extended by org.apache.ojb.otm.lock.LockManager

public class LockManager
extends Object

Manages locks on objects across transactions.

Author:
Raghu Rajah

Method Summary
 void ensureLock(Identity oid, Transaction tx, int lock, PersistenceBroker pb)
           
static LockManager getInstance()
           
 int getLockHeld(Identity oid, Transaction tx)
           
 void releaseLock(Identity oid, Transaction tx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static LockManager getInstance()

ensureLock

public void ensureLock(Identity oid,
                       Transaction tx,
                       int lock,
                       PersistenceBroker pb)
                throws LockingException
Throws:
LockingException

getLockHeld

public int getLockHeld(Identity oid,
                       Transaction tx)

releaseLock

public void releaseLock(Identity oid,
                        Transaction tx)


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.