public class MixedLockManager extends PessimisticLockManager
_store, LOCK_DATASTORE_ONLYctx, logLOCK_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, setContextgetLockLevel, getVersionCheckOnReadLock, getVersionUpdateOnWriteLock, lock, refreshLock, release, setLockLevel, setVersionCheckOnReadLock, setVersionUpdateOnWriteLockbeginTransaction, close, endTransaction, getContext, lockAllclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitbeginTransaction, close, endTransaction, getLockLevel, lock, lockAll, refreshLock, releasepublic boolean selectForUpdate(Select sel, int lockLevel)
JDBCLockManagerselectForUpdate in interface JDBCLockManagerselectForUpdate in class PessimisticLockManagerprotected void lockInternal(OpenJPAStateManager sm, int level, int timeout, Object sdata, boolean postLockVersionCheck)
VersionLockManagerVersionLockManager.getVersionCheckOnReadLock()
and VersionLockManager.getVersionUpdateOnWriteLock(). Override to perform
additional locking.lockInternal in class PessimisticLockManagerStoreContext.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 PessimisticLockManagerprotected void optimisticLockInternal(OpenJPAStateManager sm, int level, int timeout, Object sdata, boolean postLockVersionCheck)
optimisticLockInternal in class VersionLockManagerpublic boolean skipRelationFieldLock()
AbstractLockManagerskipRelationFieldLock in interface JDBCLockManagerskipRelationFieldLock in class AbstractLockManagerCopyright © 2006–2022 Apache Software Foundation. All rights reserved.