wt.replication.unit
Class UnitBaselineOperation

java.lang.Object
  extended bywt.replication.unit.UnitOperation
      extended bywt.replication.unit.UnitBaselineOperation

public class UnitBaselineOperation
extends UnitOperation


Field Summary
private  boolean asExported
           
private  boolean asImported
           
private static String CLASSNAME
           
protected static int CREATE
           
private  int mode
           
protected static int REMOVE
           
private static String RESOURCE
           
 
Fields inherited from class wt.replication.unit.UnitOperation
theUnit
 
Constructor Summary
(package private) UnitBaselineOperation(WTUnit a_unit, boolean as_Exported, boolean as_Imported, int a_mode)
           
(package private) UnitBaselineOperation(WTUnit a_unit, int a_mode)
           
 
Method Summary
private  boolean createReplicationBaseline(WTUnit a_unit)
           
 WTUnit execute()
          This method creates or deletes the Replication Baseline to/from the WTUnit.
static ReplicationBaseline getReplicationBaseline(WTUnit a_unit)
           
static boolean removeReplicationBaseline(WTUnit a_unit)
           
 
Methods inherited from class wt.replication.unit.UnitOperation
executeLockingTransaction, executeTransaction, executeTransaction
 
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

CLASSNAME

private static final String CLASSNAME

CREATE

protected static final int CREATE
See Also:
Constant Field Values

REMOVE

protected static final int REMOVE
See Also:
Constant Field Values

asExported

private boolean asExported

asImported

private boolean asImported

mode

private int mode
Constructor Detail

UnitBaselineOperation

UnitBaselineOperation(WTUnit a_unit,
                      boolean as_Exported,
                      boolean as_Imported,
                      int a_mode)

UnitBaselineOperation

UnitBaselineOperation(WTUnit a_unit,
                      int a_mode)
Method Detail

execute

public WTUnit execute()
               throws WTException
This method creates or deletes the Replication Baseline to/from the WTUnit. If the item has been added or deleted, then the WTUnit modification timestamp is updated.

Specified by:
execute in class UnitOperation
Returns:
WTUnit that the operation was performed on
Throws:
WTException

getReplicationBaseline

public static ReplicationBaseline getReplicationBaseline(WTUnit a_unit)
                                                  throws WTException
Throws:
WTException

createReplicationBaseline

private boolean createReplicationBaseline(WTUnit a_unit)
                                   throws WTException
Throws:
WTException

removeReplicationBaseline

public static boolean removeReplicationBaseline(WTUnit a_unit)
                                         throws WTException
Throws:
WTException