Class symantec.itools.db.beans.binding.MediatorDS
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.db.beans.binding.MediatorDS

Object
   |
   +----Mediator
           |
           +----symantec.itools.db.beans.binding.MediatorDS

public class MediatorDS
extends Mediator
implements TriggerUIListener

Variable Index

 o dataBinding
Contains all the DataItem requested by the components.
 o getMethods
 o notifyOnDS
 o output
 o setMethods

Constructor Index

 o symantec.itools.db.beans.binding.MediatorDS()
Constructs the default mediatorDS.
 o symantec.itools.db.beans.binding.MediatorDS(Object, String)
Constructs a MediatorDS given its output component and the full name of the fields it is supposed to show

Method Index

 o commit()
Updates the DataItem with the values present in the output component.
 o commit(DataItem, int, int[])
 o commitUI(TriggerUIEvent)
 o findDI()
finds a DataItem given its name
 o getDataBinding()
Returns the full name of the DataItem.
 o getDataItemName(DataItem)
 o handleDataBusEvent(DataBusEvent)
Handles the DataBus events, in particular the Data available events sent by the QueryNavigators.
 o killAll()
 o killAll(String)
 o notifyDataItemChanged(DataItemChangedEvent)
Responds to the sollicitations of the DataItems.
 o notifyEnabled(boolean)
Sets the notify flag.
 o requestDataItem(DataBusEvent)
Changes the value of the DataItem when requested by the DataBus.
 o setDataBinding(String)
Sets the name for the actual Data Item.And searches the DataBus for it This method is very important in the sense that it is the one that actually connects the mediator to the data bus The format is "Tablename
 o setDataBus(DataBus)
Connects to the DataBus
 o setDataItemName(DataItem, String)
 o setOutput(Object)
Sets the QueryNavigator for the MediatorDS.
 o update(DataItem)
Updates the values contained in the QueryNavigator if they are different from those in the DataItem.

Variables

 o dataBinding
protected symantec.itools.db.beans.binding.Name dataBinding
Contains all the DataItem requested by the components.

 o getMethods
protected java.lang.String[] getMethods
 o notifyOnDS
protected boolean notifyOnDS
 o output
protected symantec.itools.db.beans.binding.BasicDataSource output
 o setMethods
protected java.lang.String[] setMethods

Constructors

 o MediatorDS
public MediatorDS()
Constructs the default mediatorDS.

 o MediatorDS
public MediatorDS(Object Out,
                  String Name)
Constructs a MediatorDS given its output component and the full name of the fields it is supposed to show

Parameters:
Out - the output component
Name - the fullname of the fields

Methods

 o commit
public void commit()
Updates the DataItem with the values present in the output component.

Overrides:
commit in class Mediator
 o commit
public void commit(DataItem DI,
                   int row,
                   int cols)
 o commitUI
public void commitUI(TriggerUIEvent trui)
Overrides:
commitUI in class Mediator
 o findDI
protected void findDI()
finds a DataItem given its name

Overrides:
findDI in class Mediator
 o getDataBinding
public java.lang.String getDataBinding()
Returns the full name of the DataItem.

Overrides:
getDataBinding in class Mediator
 o getDataItemName
protected java.lang.String getDataItemName(DataItem DI)
 o handleDataBusEvent
public void handleDataBusEvent(DataBusEvent ibe)
Handles the DataBus events, in particular the Data available events sent by the QueryNavigators.

Overrides:
handleDataBusEvent in class Mediator
 o killAll
public void killAll()
 o killAll
public void killAll(String tableName)
 o notifyDataItemChanged
public void notifyDataItemChanged(DataItemChangedEvent e)
Responds to the sollicitations of the DataItems.

Parameters:
e - the DataItemChangedEvent
Overrides:
notifyDataItemChanged in class Mediator
 o notifyEnabled
protected void notifyEnabled(boolean value)
Sets the notify flag.

Overrides:
notifyEnabled in class Mediator
 o requestDataItem
public void requestDataItem(DataBusEvent ibe)
Changes the value of the DataItem when requested by the DataBus. Also creates new dataItems when it does not exist

Parameters:
ibe - the DataBusEvent
Overrides:
requestDataItem in class Mediator
 o setDataBinding
public void setDataBinding(String name)
Sets the name for the actual Data Item.And searches the DataBus for it This method is very important in the sense that it is the one that actually connects the mediator to the data bus The format is "Tablename

Overrides:
setDataBinding in class Mediator
 o setDataBus
public void setDataBus(DataBus b) throws PropertyVetoException
Connects to the DataBus

Parameters:
b - the DataBus the mediator connects to
Throws: PropertyVetoException
when the attempt to set the property is vetoed
Overrides:
setDataBus in class Mediator
 o setDataItemName
protected void setDataItemName(DataItem DI,
                               String name)
 o setOutput
public void setOutput(Object Out)
Sets the QueryNavigator for the MediatorDS.

Parameters:
Out - the data source
Overrides:
setOutput in class Mediator
 o update
protected void update(DataItem Input)
Updates the values contained in the QueryNavigator if they are different from those in the DataItem.

Parameters:
Input - the current dataItem
Overrides:
update in class Mediator

All Packages  Class Hierarchy  This Package  Previous  Next  Index