org.openorb.ccs.kernel
Class LockSetFactory

java.lang.Object
  extended by org.omg.PortableServer.Servant
      extended by org.openorb.ccs.LockSetFactoryPOA
          extended by org.openorb.ccs.kernel.LockSetFactory
All Implemented Interfaces:
org.omg.CORBA.portable.InvokeHandler, LockSetFactoryOperations

public class LockSetFactory
extends LockSetFactoryPOA

This class extends the LockSetFactory to retrieve lock sets if existing

Author:
Marina Daniel

Constructor Summary
LockSetFactory()
           
 
Method Summary
 LockSet create_related(LockSet which)
          Creates a new lock set that is related to an existing lock set
 TransactionalLockSet create_transactional_related(TransactionalLockSet which)
          Creates a new transactional lock set that is related to an existing lock set
 TransactionalLockSet create_transactional()
          creates a new transactional lock set.
 LockSet create()
          creates a new lock set
 LockSet createLockSet(java.lang.String objectName)
          creates a new lock set or retrieve the existing lock set if existing
 LockSet getLockSet(java.lang.String objectName, boolean create)
          Retrieves the lock set of an object.
 
Methods inherited from class org.openorb.ccs.LockSetFactoryPOA
_all_interfaces, _invoke, _this, _this
 
Methods inherited from class org.omg.PortableServer.Servant
_default_POA, _get_delegate, _get_interface_def, _is_a, _non_existent, _object_id, _orb, _poa, _set_delegate, _this_object, _this_object
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LockSetFactory

public LockSetFactory()
Method Detail

create

public LockSet create()
creates a new lock set

Returns:
the new lock set

create_related

public LockSet create_related(LockSet which)
Creates a new lock set that is related to an existing lock set

Parameters:
which - the existing lock set
Returns:
the new lock set

createLockSet

public LockSet createLockSet(java.lang.String objectName)
creates a new lock set or retrieve the existing lock set if existing

Parameters:
objectName - the object name
Returns:
the lock set associated to the object name

getLockSet

public LockSet getLockSet(java.lang.String objectName,
                          boolean create)
                   throws LockSetNotFound
Retrieves the lock set of an object. The lock set can be created if it does not exist.

Parameters:
objectName - The object name.
create - If true, it creates a new lock set if not found.
Returns:
The lock set of the object.
Throws:
LockSetNotFound - When the lock set is not found.

create_transactional

public TransactionalLockSet create_transactional()
creates a new transactional lock set.

Returns:
the new lock set

create_transactional_related

public TransactionalLockSet create_transactional_related(TransactionalLockSet which)
Creates a new transactional lock set that is related to an existing lock set

Parameters:
which - the existing lock set
Returns:
the new lock set