org.openorb.ccs.kernel
Class LockSetFactory
java.lang.Object
|
+--org.omg.PortableServer.Servant
|
+--org.openorb.ccs.LockSetFactoryPOA
|
+--org.openorb.ccs.kernel.LockSetFactory
- All Implemented Interfaces:
- org.omg.CORBA.portable.InvokeHandler, LockSetFactoryOperations, LockSetFactoryOperations
- public class LockSetFactory
- extends LockSetFactoryPOA
This class extends the LockSetFactory to retrieve lock sets if existing
- Author:
- Marina Daniel
| Methods inherited from class org.omg.PortableServer.Servant |
_default_POA, _get_delegate, _get_interface_def, _get_interface, _is_a, _non_existent, _object_id, _orb, _orb, _poa, _set_delegate, _this_object, _this_object |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LockSetFactory
public LockSetFactory()
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