|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.openjpa.kernel.AbstractLockManager
public abstract class AbstractLockManager
Abstract LockManager
implementation.
Field Summary | |
---|---|
protected StoreContext |
ctx
The context against which this LockManager is operating. |
protected Log |
log
Runtime log to write locking messages to. |
Fields inherited from interface org.apache.openjpa.kernel.LockLevels |
---|
LOCK_NONE, LOCK_READ, LOCK_WRITE |
Constructor Summary | |
---|---|
AbstractLockManager()
|
Method Summary | |
---|---|
void |
beginTransaction()
Does nothing by default. |
void |
close()
Does nothing by default. |
void |
endTransaction()
Does nothing by default. |
StoreContext |
getContext()
|
void |
lockAll(Collection sms,
int level,
int timeout,
Object context)
Delegates to LockManager.lock(org.apache.openjpa.kernel.OpenJPAStateManager, int, int, java.lang.Object) with each element of the collection |
void |
setContext(StoreContext ctx)
Set the context this lock manager is associated with. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.openjpa.kernel.LockManager |
---|
getLockLevel, lock, release |
Field Detail |
---|
protected StoreContext ctx
protected Log log
Constructor Detail |
---|
public AbstractLockManager()
Method Detail |
---|
public void setContext(StoreContext ctx)
LockManager
setContext
in interface LockManager
public StoreContext getContext()
public void lockAll(Collection sms, int level, int timeout, Object context)
LockManager.lock(org.apache.openjpa.kernel.OpenJPAStateManager, int, int, java.lang.Object)
with each element of the collection
lockAll
in interface LockManager
LockManager.lock(org.apache.openjpa.kernel.OpenJPAStateManager, int, int, java.lang.Object)
public void beginTransaction()
beginTransaction
in interface LockManager
public void endTransaction()
endTransaction
in interface LockManager
public void close()
close
in interface LockManager
close
in interface Closeable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |