Class symantec.itools.db.beans.brl.adapter.CalculationAdapter
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class symantec.itools.db.beans.brl.adapter.CalculationAdapter

Object
   |
   +----ComputedColAdapter
           |
           +----symantec.itools.db.beans.brl.adapter.CalculationAdapter

public class CalculationAdapter
extends ComputedColAdapter
implements Serializable
Class which glues derivation business rule implementation classes with QueryNavigator, RecordDefinition and database events.

Version:
1.0 07/24/98
Author:
Puru Balakrishnan

Variable Index

 o CALCULATION_TITLE
 o outputDataType

Constructor Index

 o symantec.itools.db.beans.brl.adapter.CalculationAdapter()
Default Constructor

Method Index

 o calculate()

Method to force the calculation by the adapter.

 o delegateComputation()
 o getDerivationRow()
 o getOutputDataType()
get the desired output data type
 o getOutputNameNotAvailMsg()
 o processAfterColumnChangeEvent(ColumnDataEvent)
 o processAfterRecordNavigateEvent(RecordNavigateEvent)
 o processAfterRecordSaveEvent(RecordSaveEvent)
 o processBeforeColumnChangeEvent(ColumnDataEvent)
 o processBeforeRecordNavigateEvent(RecordNavigateEvent)
 o processBeforeRecordSaveEvent(RecordSaveEvent)
 o processBorderRecordEvent(RecordNavigateEvent)
 o setAggregateComputedValue(Object)
 o setOutputDataType(int)
set the desired output data type
 o setType(int)
Method to set the type of computed column

Variables

 o CALCULATION_TITLE
public static java.lang.String CALCULATION_TITLE
 o outputDataType
protected int outputDataType

Constructors

 o CalculationAdapter
public CalculationAdapter()
Default Constructor

Methods

 o calculate
public synchronized void calculate()

Method to force the calculation by the adapter. Note: This method is useful if the calculation formula does not have any inputs. If it has inputs, it is best to leave it to the adapter to determine when to fire the rule.

 o delegateComputation
protected void delegateComputation()
Overrides:
delegateComputation in class ComputedColAdapter
 o getDerivationRow
protected symantec.itools.db.beans.brl.DerivationRow getDerivationRow()
 o getOutputDataType
public int getOutputDataType()
get the desired output data type

Returns:
the output data type
 o getOutputNameNotAvailMsg
protected java.lang.String getOutputNameNotAvailMsg()
Overrides:
getOutputNameNotAvailMsg in class ComputedColAdapter
 o processAfterColumnChangeEvent
protected void processAfterColumnChangeEvent(ColumnDataEvent e)
Overrides:
processAfterColumnChangeEvent in class ComputedColAdapter
 o processAfterRecordNavigateEvent
protected void processAfterRecordNavigateEvent(RecordNavigateEvent e)
Overrides:
processAfterRecordNavigateEvent in class ComputedColAdapter
 o processAfterRecordSaveEvent
protected void processAfterRecordSaveEvent(RecordSaveEvent e)
Overrides:
processAfterRecordSaveEvent in class ComputedColAdapter
 o processBeforeColumnChangeEvent
protected void processBeforeColumnChangeEvent(ColumnDataEvent e)
Overrides:
processBeforeColumnChangeEvent in class ComputedColAdapter
 o processBeforeRecordNavigateEvent
protected void processBeforeRecordNavigateEvent(RecordNavigateEvent e)
Overrides:
processBeforeRecordNavigateEvent in class ComputedColAdapter
 o processBeforeRecordSaveEvent
protected void processBeforeRecordSaveEvent(RecordSaveEvent e)
Overrides:
processBeforeRecordSaveEvent in class ComputedColAdapter
 o processBorderRecordEvent
protected void processBorderRecordEvent(RecordNavigateEvent e)
Overrides:
processBorderRecordEvent in class ComputedColAdapter
 o setAggregateComputedValue
protected void setAggregateComputedValue(Object val)
 o setOutputDataType
public void setOutputDataType(int type)
set the desired output data type

Parameters:
type - the new output data type
 o setType
public void setType(int type)
Method to set the type of computed column

Parameters:
int - - type of computed column

All Packages  Class Hierarchy  This Package  Previous  Next  Index