Kodo 4.2.0. generated on July 28 2008

kodo.kernel
Class SingleJVMExclusiveLockManager

java.lang.Object
  extended by org.apache.openjpa.kernel.AbstractLockManager
      extended by org.apache.openjpa.kernel.VersionLockManager
          extended by kodo.kernel.SingleJVMExclusiveLockManager
All Implemented Interfaces:
LockLevels, LockManager, Closeable

public class SingleJVMExclusiveLockManager
extends VersionLockManager

An exclusive write single-JVM lock manager.


Field Summary
 
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
 
Constructor Summary
SingleJVMExclusiveLockManager()
           
 
Method Summary
 void endTransaction()
          Release all the locks held by this context.
protected  void lockInternal(OpenJPAStateManager sm, int level, int timeout, Object sdata)
           
protected  Lock newLock()
          Create a new lock.
 
Methods inherited from class org.apache.openjpa.kernel.VersionLockManager
getLockLevel, getVersionCheckOnReadLock, getVersionUpdateOnWriteLock, lock, 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
 

Constructor Detail

SingleJVMExclusiveLockManager

public SingleJVMExclusiveLockManager()
Method Detail

lockInternal

protected void lockInternal(OpenJPAStateManager sm,
                            int level,
                            int timeout,
                            Object sdata)
Overrides:
lockInternal in class VersionLockManager

newLock

protected Lock newLock()
Create a new lock.


endTransaction

public void endTransaction()
Release all the locks held by this context.

Specified by:
endTransaction in interface LockManager
Overrides:
endTransaction in class AbstractLockManager

Kodo 4.2.0. generated on July 28 2008

Copyright 2001-2006 BEA Systems, Inc. All Rights Reserved.