Patent ID: 7756846

Claim:
A method for managing locks through nested logical units of work (LUW), comprising: registering a lock manager to receive notice of events from an LUW manager responsible for managing a nested LUW in a first buffer, the nested LUW comprising an inner LUW and an outer LUW; locking an object affected by the inner LUW of the nested LUW with a lock; transmitting from the LUW manager to the lock manager notice of an event pertaining to the inner LUW, wherein the notice of the event comprises one of: notice of a rollback event, notice of a commit event, and notice of a flush event; determining by the lock manager and based on the notice of event pertaining to the inner LUW, whether the lock should be retained or released; based on the determination, either releasing the lock or retaining the lock; and registering another entity interested in a locking state of the object with the LUW manager to receive the notice of events from the LUW manager and registering the interested entity with the lock manager to receive notification of one of a locking event and an unlocking event pertaining to the object from the lock manager, so that the interested entity receives the notice of events from the LUW manager which indicate application state changes caused by LUW operations and so that the interested entity does not receive a notification of the unlocking event from the lock manager when the notice of the events received from the LUW manager is a notice of a rollback event, and the interested entity instead determines the locking state of the object by using the notice of the rollback event received by the LUW manager.