org.apache.ojb.otm.lock
Class LockManager
java.lang.Object
org.apache.ojb.otm.lock.LockManager
- public class LockManager
- extends java.lang.Object
Manages locks on objects across transactions.
- Author:
- Raghu Rajah
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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)
Authors: Thomas Mahler and others. (C) 2000 - 2003 Apache Software Foundation
All rights reserved. Published under the Apache License.
http://db.apache.org/ojb
Version: 1.0.rc5, 2003-12-14