org.openorb.ccs.kernel

Class LockSetFactory

public class LockSetFactory extends LockSetFactoryPOA

This class extends the LockSetFactory to retrieve lock sets if existing

Author: Marina Daniel

Method Summary
LockSetcreate()
creates a new lock set
LockSetcreateLockSet(String objectName)
creates a new lock set or retrieve the existing lock set if existing
LockSetcreate_related(LockSet which)
Creates a new lock set that is related to an existing lock set
TransactionalLockSetcreate_transactional()
creates a new transactional lock set.
TransactionalLockSetcreate_transactional_related(TransactionalLockSet which)
Creates a new transactional lock set that is related to an existing lock set
LockSetgetLockSet(String objectName, boolean create)
Retrieves the lock set of an object.

Method Detail

create

public LockSet create()
creates a new lock set

Returns: the new lock set

createLockSet

public LockSet createLockSet(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

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

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

getLockSet

public LockSet getLockSet(String objectName, boolean create)
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: org.openorb.ccs.LockSetNotFound When the lock set is not found.