org.omg.CosConcurrencyControl
Class _LockSetStub

java.lang.Object
  extended by org.omg.CORBA.portable.ObjectImpl
      extended by org.omg.CosConcurrencyControl._LockSetStub
All Implemented Interfaces:
java.io.Serializable, org.omg.CORBA.Object, org.omg.CORBA.portable.IDLEntity, LockSet, LockSetOperations

public class _LockSetStub
extends org.omg.CORBA.portable.ObjectImpl
implements LockSet

The LockSet interface provides operations to aquire and release locks on behalf of the calling thread or transaction

See Also:
Serialized Form

Constructor Summary
_LockSetStub()
           
 
Method Summary
 java.lang.String[] _ids()
           
 void change_mode(lock_mode held_mode, lock_mode new_mode)
          Operation change_mode
 void lock(lock_mode mode)
          Operation lock
 boolean try_lock(lock_mode mode)
          Operation try_lock
 void unlock(lock_mode mode)
          Operation unlock
 
Methods inherited from class org.omg.CORBA.portable.ObjectImpl
_create_request, _create_request, _duplicate, _get_delegate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _invoke, _is_a, _is_equivalent, _is_local, _non_existent, _orb, _release, _releaseReply, _request, _request, _servant_postinvoke, _servant_preinvoke, _set_delegate, _set_policy_override, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.omg.CORBA.Object
_create_request, _create_request, _duplicate, _get_domain_managers, _get_interface_def, _get_policy, _hash, _is_a, _is_equivalent, _non_existent, _release, _request, _set_policy_override
 

Constructor Detail

_LockSetStub

public _LockSetStub()
Method Detail

_ids

public java.lang.String[] _ids()
Specified by:
_ids in class org.omg.CORBA.portable.ObjectImpl

lock

public void lock(lock_mode mode)
Operation lock

Specified by:
lock in interface LockSetOperations

try_lock

public boolean try_lock(lock_mode mode)
Operation try_lock

Specified by:
try_lock in interface LockSetOperations

unlock

public void unlock(lock_mode mode)
            throws LockNotHeld
Operation unlock

Specified by:
unlock in interface LockSetOperations
Throws:
LockNotHeld

change_mode

public void change_mode(lock_mode held_mode,
                        lock_mode new_mode)
                 throws LockNotHeld
Operation change_mode

Specified by:
change_mode in interface LockSetOperations
Throws:
LockNotHeld