borland Packages Class Hierarchy jbcl.dataset Package Index
java.util.EventListener +----borland.jbcl.dataset.CalcAggFieldsListener
Methods
Implemented by CalcAggFieldsAdapter
This class is used for notification of a row being added or deleted on a DataSet having a calculation on an aggregate column. The CalcAggFieldsListener listens for this notification in order to recompute the calculation based on the aggregation.
For example, your application uses a sum aggregator to compute the total value of an order as the sum of the extended price column for all the rows for that order. It then uses a CalcAggFieldsListener to compute the tax and shipping charges on top of the total. When a row is added or deleted from the order, the CalcAggFieldsListener is aware of this and recalculates the tax and shipping charges. In this example, you
This class differs from the CalcFieldsListener in that this class is used to do calculations on aggregates. The CalcFieldsListener class is used for calculations on rows.
public void calcAggAdd(borland.jbcl.dataset.ReadRow row, borland.jbcl.dataset.ReadWriteRow resultRow)
Called when a new or modified row is posted. In the case of a modified row, both calcAggDelete() and calcAggAdd() are called.
Parameters:
public void calcAggDelete(borland.jbcl.dataset.ReadRow row, borland.jbcl.dataset.ReadWriteRow resultRow)
Called when a row is deleted from the data set or a modified row is posted. In the case of a modified row, calcAggAdd() is also called.
Parameters: