Class symantec.itools.db.beans.brl.derivation.DerivationHelper
All Packages Class Hierarchy This Package Previous Next Index
Class symantec.itools.db.beans.brl.derivation.DerivationHelper
Object
|
+----symantec.itools.db.beans.brl.derivation.DerivationHelper
- public class DerivationHelper
- extends Object
Helper class used by all derivation formulas
- Version:
- 1.0 07/23/98
- Author:
- Puru Balakrishnan
-
EXCPTITLE
-
-
logWinHelper
-
-
symantec.itools.db.beans.brl.derivation.DerivationHelper()
- Default constructor
-
calculate(ComputeRow, int, int)
- Method which actually does the calculation for different
operators
-
convertNumberToDesiredType(Object, int, int)
-
-
convertRow(ComputeRow)
-
-
getPromotedDataType(Vector)
-
-
performCalculation(Vector, int, int)
-
-
performCalculationForDouble(Vector, int)
-
-
performCalculationForLong(Vector, int)
-
-
promoteObjectsToType(Vector, int)
-
EXCPTITLE
protected static java.lang.String EXCPTITLE
logWinHelper
protected symantec.itools.db.beans.util.LogWindowHelper logWinHelper
DerivationHelper
public DerivationHelper()
- Default constructor
calculate
public java.lang.Object calculate(ComputeRow inputRow,
int outputDataType,
int operatorType)
- Method which actually does the calculation for different
operators
- Parameters:
- ComputeRow - row containing all inputs
- int - specifying type of change performed
- int - specifying the desired output data type
- int - specifying the type of operator
- Returns:
- Object after performing the specified operation
convertNumberToDesiredType
protected java.lang.Object convertNumberToDesiredType(Object source,
int promotedType,
int type)
convertRow
protected java.util.Vector convertRow(ComputeRow inputRow)
getPromotedDataType
protected int getPromotedDataType(Vector vObjs)
performCalculation
protected java.lang.Object performCalculation(Vector vObjValues,
int promotedType,
int operatorType)
performCalculationForDouble
protected java.lang.Object performCalculationForDouble(Vector vObjValues,
int operatorType)
performCalculationForLong
protected java.lang.Object performCalculationForLong(Vector vObjValues,
int operatorType)
promoteObjectsToType
protected java.util.Vector promoteObjectsToType(Vector orig,
int type)
All Packages Class Hierarchy This Package Previous Next Index