LockDurations Category
The global constants for lock durations are listed in the following table.
Global Constant | Integer Value | Description |
---|---|---|
Persistent_Duration | 2 | Reserved for future use (not yet implemented). |
Session_Duration | 1 | Automatically unlocks the object at the end of the current session (that is, the current thread or process) if no manual unlocks are issued. In persistent transaction state, all unlock requests for persistent objects are ignored. |
Similarly, in transient transaction state, all unlock requests for shared transient objects are ignored. A session lock is therefore not released if the unlock request is made while in transaction state. To release a session lock, the unlock request must be made while not in transaction state. | ||
Transaction_Duration | 0 | Automatically unlocks the object at the end of transaction time. If a manual unlock is issued, this unlocks the object only if you are not in transaction or load state. |