public abstract class AbstractLockManager extends Object implements LockManager
LockManager implementation.| Modifier and Type | Field and Description |
|---|---|
protected StoreContext |
ctx
The context against which this LockManager is operating.
|
protected Log |
log
Runtime log to write locking messages to.
|
LOCK_NONE, LOCK_READ, LOCK_WRITE| Constructor and Description |
|---|
AbstractLockManager() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
skipRelationFieldLock()
Default not to skip relation field to maintain PessimisticLockManager semantics.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetLockLevel, lock, refreshLock, releaseprotected StoreContext ctx
protected Log log
public void setContext(StoreContext ctx)
LockManagersetContext in interface LockManagerpublic 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 collectionlockAll in interface LockManagerLockManager.lock(org.apache.openjpa.kernel.OpenJPAStateManager, int, int, java.lang.Object)public void beginTransaction()
beginTransaction in interface LockManagerpublic void endTransaction()
endTransaction in interface LockManagerpublic void close()
close in interface LockManagerclose in interface Closeablepublic boolean skipRelationFieldLock()
Copyright © 2006–2019 Apache Software Foundation. All rights reserved.