public class MixedLockManager extends PessimisticLockManager
_store, LOCK_DATASTORE_ONLY
ctx, log
LOCK_NONE, LOCK_READ, LOCK_WRITE
Constructor and Description |
---|
MixedLockManager() |
Modifier and Type | Method and Description |
---|---|
protected List<SQLBuffer> |
getLockRows(DBDictionary dict,
Object id,
ClassMapping mapping,
JDBCFetchConfiguration fetch,
SQLFactory factory) |
protected void |
lockInternal(OpenJPAStateManager sm,
int level,
int timeout,
Object sdata,
boolean postLockVersionCheck)
Marks the instance's transactional status in accordance with
the settings of
VersionLockManager.getVersionCheckOnReadLock()
and VersionLockManager.getVersionUpdateOnWriteLock() . |
protected void |
optimisticLockInternal(OpenJPAStateManager sm,
int level,
int timeout,
Object sdata,
boolean postLockVersionCheck) |
boolean |
selectForUpdate(Select sel,
int lockLevel)
Return whether to issue the given select FOR UPDATE, depending on
the capabilities of the dictionary and the fetch configuration.
|
boolean |
skipRelationFieldLock()
Default not to skip relation field to maintain PessimisticLockManager semantics.
|
checkLock, executeQuery, getStore, loadedForUpdate, lockJoinTables, prepareStatement, setContext
getLockLevel, getVersionCheckOnReadLock, getVersionUpdateOnWriteLock, lock, refreshLock, release, setLockLevel, setVersionCheckOnReadLock, setVersionUpdateOnWriteLock
beginTransaction, close, endTransaction, getContext, lockAll
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
beginTransaction, close, endTransaction, getLockLevel, lock, lockAll, refreshLock, release
public boolean selectForUpdate(Select sel, int lockLevel)
JDBCLockManager
selectForUpdate
in interface JDBCLockManager
selectForUpdate
in class PessimisticLockManager
protected void lockInternal(OpenJPAStateManager sm, int level, int timeout, Object sdata, boolean postLockVersionCheck)
VersionLockManager
VersionLockManager.getVersionCheckOnReadLock()
and VersionLockManager.getVersionUpdateOnWriteLock()
. Override to perform
additional locking.lockInternal
in class PessimisticLockManager
StoreContext.transactional(java.lang.Object, boolean, org.apache.openjpa.kernel.OpCallbacks)
protected List<SQLBuffer> getLockRows(DBDictionary dict, Object id, ClassMapping mapping, JDBCFetchConfiguration fetch, SQLFactory factory)
getLockRows
in class PessimisticLockManager
protected void optimisticLockInternal(OpenJPAStateManager sm, int level, int timeout, Object sdata, boolean postLockVersionCheck)
optimisticLockInternal
in class VersionLockManager
public boolean skipRelationFieldLock()
AbstractLockManager
skipRelationFieldLock
in interface JDBCLockManager
skipRelationFieldLock
in class AbstractLockManager
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.