public interface JDBCLockManager extends LockManager
LockManager
interface with methods for
datastore locking during the select and load process. Implementors of
this interface can also take advantage of the fact that in the
LockManager.lock(org.apache.openjpa.kernel.OpenJPAStateManager, int, int, java.lang.Object)
and LockManager.lockAll(java.util.Collection, int, int, java.lang.Object)
methods, the
given conn
parameter, if any, will be an instance of
ConnectionInfo
.LOCK_NONE, LOCK_READ, LOCK_WRITE
Modifier and Type | Method and Description |
---|---|
void |
loadedForUpdate(OpenJPAStateManager sm)
Notification that the given instance was loaded via a result set
produced by a FOR UPDATE select.
|
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()
Return true if locking is not desired for relation fields.
|
beginTransaction, close, endTransaction, getLockLevel, lock, lockAll, refreshLock, release, setContext
boolean selectForUpdate(Select sel, int lockLevel)
void loadedForUpdate(OpenJPAStateManager sm)
boolean skipRelationFieldLock()
Copyright © 2006–2018 Apache Software Foundation. All rights reserved.