Class symantec.itools.db.beans.binding.DataSynchronizer
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.db.beans.binding.DataSynchronizer
Object
|
+----symantec.itools.db.beans.binding.DataSynchronizer
- public class DataSynchronizer
- extends Object
- implements Serializable
This class keeps multiple Data Items on the Data Bus in sync.
- Version:
- 1.0 08/19/98
-
symantec.itools.db.beans.binding.DataSynchronizer(String, String)
- Constructor.
-
getSourceDataItem()
- Gets the name of source data item.
-
getSourceValue()
- Gets the value of source data item.
-
getTargetDataItem()
- Gets the name of target data item.
-
getTargetValue()
- Gets the value of target data item.
-
setSourceDataItem(String)
- Sets the name of source data item, and registers as a listener to this data item.
-
setSourceValue(Object)
- Sets the value of source data item.
-
setTargetDataItem(String)
- Sets the name of target data item, and registers as a listener to this data item.
-
setTargetValue(Object)
- Sets the value of target data item.
DataSynchronizer
public DataSynchronizer(String sourceDataItemName,
String targetDataItemName)
- Constructor. Any changes to the source data item in the Data Bus
will be replicated to the target data item.
The names of data item should conform to the naming convention of
Data Bus, e.g. "QNAlias@col1", "SPAlias@parm2".
- Parameters:
- sourceDataItemName - Name of source data item
- targetDataItemName - Name of target data item
getSourceDataItem
public java.lang.String getSourceDataItem()
- Gets the name of source data item.
- Returns:
- Name of source data item
getSourceValue
public synchronized java.lang.Object getSourceValue()
- Gets the value of source data item.
- Returns:
- Value of source data item as Object
getTargetDataItem
public java.lang.String getTargetDataItem()
- Gets the name of target data item.
- Returns:
- Name of target data item
getTargetValue
public synchronized java.lang.Object getTargetValue()
- Gets the value of target data item.
- Returns:
- Value of target data item as Object
setSourceDataItem
public void setSourceDataItem(String dataItemName)
- Sets the name of source data item, and registers as a listener to this data item.
- Parameters:
- dataItemName - Name of source data item
setSourceValue
public synchronized void setSourceValue(Object value)
- Sets the value of source data item.
- Parameters:
- value - of source data item as Object
setTargetDataItem
public void setTargetDataItem(String dataItemName)
- Sets the name of target data item, and registers as a listener to this data item.
- Parameters:
- dataItemName - Name of target data item
setTargetValue
public synchronized void setTargetValue(Object value)
- Sets the value of target data item.
- Parameters:
- value - of target data item as Object
All Packages Class Hierarchy This Package Previous Next Index