wt.vc.baseline
Class BaselineOperation

java.lang.Object
  extended bywt.vc.baseline.BaselineOperation
Direct Known Subclasses:
EPMStandardBaselineService.VectorFamilyTableOperation, StandardBaselineService.BaselineableOperation, StandardBaselineService.PopulateOperation, StandardBaselineService.VectorOperation, StandardBaselineService.WTCollectionOperation, StandardConfigurationService.RecurseOperation

public abstract class BaselineOperation
extends Object

This class encapsulates a Baseline operation. It is used to provide a mechanism for performing Baseline operations stand-alone, within a transaction or with locking within a transaction.


Field Summary
protected  Baseline baseline
           
private static int LOCK_RETRY
           
private static int LOCK_RETRY_SLEEP_INTERVAL
           
private static String RESOURCE
           
 
Constructor Summary
BaselineOperation(Baseline a_baseline)
          Initializes this instance.
 
Method Summary
abstract  Baseline execute()
          Executes the operation.
 Baseline executeLockingTransaction()
          Executes the operation within a transaction while the Baseline object locked.
 Baseline executeTransaction()
          Executes the operation within a transaction.
 Baseline executeTransaction(boolean lock)
          Executes the operation within a transaction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

RESOURCE

private static final String RESOURCE
See Also:
Constant Field Values

LOCK_RETRY

private static final int LOCK_RETRY
See Also:
Constant Field Values

LOCK_RETRY_SLEEP_INTERVAL

private static final int LOCK_RETRY_SLEEP_INTERVAL
See Also:
Constant Field Values

baseline

protected Baseline baseline
Constructor Detail

BaselineOperation

public BaselineOperation(Baseline a_baseline)
Initializes this instance.

Parameters:
a_baseline - object to perform operation on
Method Detail

executeLockingTransaction

public Baseline executeLockingTransaction()
                                   throws WTException
Executes the operation within a transaction while the Baseline object locked. The Baseline object is first locked within a transaction and the Baseline operation is executed.

Returns:
Baseline that the operation was performed on
Throws:
WTException

executeTransaction

public Baseline executeTransaction()
                            throws WTException
Executes the operation within a transaction.

Returns:
Baseline that the operation was performed on
Throws:
WTException

executeTransaction

public Baseline executeTransaction(boolean lock)
                            throws WTException
Executes the operation within a transaction.

Parameters:
lock - indicates whether to lock the baseline within the transaction
Returns:
Baseline that the operation was performed on
Throws:
WTException

execute

public abstract Baseline execute()
                          throws WTException
Executes the operation.

Returns:
Baseline that the operation was performed on
Throws:
WTException