org.omg.CosConcurrencyControl
Interface TransactionalLockSetOperations

All Known Subinterfaces:
TransactionalLockSet
All Known Implementing Classes:
_TransactionalLockSetStub, TransactionalLockSet, TransactionalLockSetPOA, TransactionalLockSetPOATie

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

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


try_lock

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


unlock

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

Throws:
LockNotHeld

change_mode

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

Throws:
LockNotHeld

get_coordinator

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