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, wait
getLockLevel, lock, refreshLock, release
protected StoreContext ctx
protected Log log
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 collectionlockAll
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
public boolean skipRelationFieldLock()
Copyright © 2006–2022 Apache Software Foundation. All rights reserved.