public final class TempLock
extends java.lang.Object
reset().| Modifier and Type | Field and Description |
|---|---|
private RecordIdentifier<java.lang.String> |
ident
Unique record identifier
|
private LockType |
originalLockType
Previous lock type of DMO
|
private Persistence |
persistence
Object which services lock requests
|
| Constructor and Description |
|---|
TempLock(Persistence persistence,
LockType lockType,
java.lang.String table,
java.lang.Long recordID)
Constructor which acquires a record lock of the specified type.
|
| Modifier and Type | Method and Description |
|---|---|
(package private) void |
reset()
Reset the record lock back to its original type.
|
private final RecordIdentifier<java.lang.String> ident
private final LockType originalLockType
private final Persistence persistence
TempLock(Persistence persistence, LockType lockType, java.lang.String table, java.lang.Long recordID) throws LockUnavailableException
persistence - Object which services lock requests.lockType - Type of lock to be acquired.table - Table containing target DMO.recordID - Primary key ID of DMO being locked.LockUnavailableException