kodo.kernel
Class SingleJVMExclusiveLockManager
java.lang.Object
org.apache.openjpa.kernel.AbstractLockManager
org.apache.openjpa.kernel.VersionLockManager
kodo.kernel.SingleJVMExclusiveLockManager
- All Implemented Interfaces:
- org.apache.openjpa.kernel.LockLevels, org.apache.openjpa.kernel.LockManager, org.apache.openjpa.lib.util.Closeable
public class SingleJVMExclusiveLockManager
- extends org.apache.openjpa.kernel.VersionLockManager
An exclusive write single-JVM lock manager.
| Fields inherited from class org.apache.openjpa.kernel.AbstractLockManager |
ctx, log |
| Fields inherited from interface org.apache.openjpa.kernel.LockLevels |
LOCK_NONE, LOCK_READ, LOCK_WRITE |
|
Method Summary |
void |
endTransaction()
Release all the locks held by this context. |
protected void |
lockInternal(org.apache.openjpa.kernel.OpenJPAStateManager sm,
int level,
int timeout,
Object sdata)
|
protected org.apache.openjpa.lib.util.concurrent.Lock |
newLock()
Create a new lock. |
| Methods inherited from class org.apache.openjpa.kernel.VersionLockManager |
getLockLevel, getVersionCheckOnReadLock, getVersionUpdateOnWriteLock, lock, lockInternal, release, setLockLevel, setVersionCheckOnReadLock, setVersionUpdateOnWriteLock |
| Methods inherited from class org.apache.openjpa.kernel.AbstractLockManager |
beginTransaction, close, getContext, lockAll, setContext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SingleJVMExclusiveLockManager
public SingleJVMExclusiveLockManager()
lockInternal
protected void lockInternal(org.apache.openjpa.kernel.OpenJPAStateManager sm,
int level,
int timeout,
Object sdata)
newLock
protected org.apache.openjpa.lib.util.concurrent.Lock newLock()
- Create a new lock.
endTransaction
public void endTransaction()
- Release all the locks held by this context.
- Specified by:
endTransaction in interface org.apache.openjpa.kernel.LockManager- Overrides:
endTransaction in class org.apache.openjpa.kernel.AbstractLockManager
Copyright 2001-2006 BEA Systems, Inc. All Rights Reserved.