org.omg.CosConcurrencyControl
Interface TransactionalLockSetOperations

All Known Subinterfaces:
TransactionalLockSet
All Known Implementing Classes:
TransactionalLockSetPOA

public interface TransactionalLockSetOperations

The TransactionalLockSet interface provides operations to acquire and release locks on a lock set on behalf of a specific transaction.


Method Summary
 void change_mode(org.omg.CosTransactions.Coordinator current, lock_mode held_mode, lock_mode new_mode)
          Changes the mode of a single lock
 LockCoordinator get_coordinator(org.omg.CosTransactions.Coordinator which)
          Returns the lock coordinator associated with the specified transaction
 void lock(org.omg.CosTransactions.Coordinator current, lock_mode mode)
          Acquires a lock on the specified lock set in the specified mode
 boolean try_lock(org.omg.CosTransactions.Coordinator current, lock_mode mode)
          Attempts to acquire a lock on the specified lock set
 void unlock(org.omg.CosTransactions.Coordinator current, lock_mode mode)
          Drops a single lock on the specified lock set in the specified mode
 

Method Detail

lock

public void lock(org.omg.CosTransactions.Coordinator current,
                 lock_mode mode)
Acquires a lock on the specified lock set in the specified mode

try_lock

public boolean try_lock(org.omg.CosTransactions.Coordinator current,
                        lock_mode mode)
Attempts to acquire a lock on the specified lock set

unlock

public void unlock(org.omg.CosTransactions.Coordinator current,
                   lock_mode mode)
            throws LockNotHeld
Drops a single lock on the specified lock set in the specified mode

change_mode

public void change_mode(org.omg.CosTransactions.Coordinator current,
                        lock_mode held_mode,
                        lock_mode new_mode)
                 throws LockNotHeld
Changes the mode of a single lock

get_coordinator

public LockCoordinator get_coordinator(org.omg.CosTransactions.Coordinator which)
Returns the lock coordinator associated with the specified transaction