planetj.database.report
Class ColumnFunction

java.lang.Object
  |
  +--planetj.database.report.ColumnFunction
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ColumnAverage, ColumnCount, ColumnMax, ColumnMin, ColumnSum

public abstract class ColumnFunction
extends Object
implements Serializable

Represents a function that operates on a column of values in a table

See Also:
Serialized Form

Method Summary
abstract  void clear()
          Clears all the previously processed values from the column function
static ColumnFunction getColumnFunction(String pToken, String pFieldName)
          Gets a ColumnFunction object for the specified token and field name.
 String getFieldName()
          Gets the field name identifying the column this ColumnFunction is operating on
 String getFunctionToken()
          Gets the function token for this ColumnFunction.
abstract  Object getValue()
          Gets the current value of the column function
 void processRow(Row pRow)
          Inputs a new row to the column function
abstract  void processValue(Object pValue)
          Inputs a new value to the column function
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

clear

public abstract void clear()
Clears all the previously processed values from the column function


getColumnFunction

public static ColumnFunction getColumnFunction(String pToken,
                                               String pFieldName)
                                        throws DataEngineException
Gets a ColumnFunction object for the specified token and field name.

Parameters:
pToken - A token defined in the ColumnFunctionToken class
pFieldName - A field name identifying the column on which the ColumnFunction object will operate
DataEngineException

getFieldName

public String getFieldName()
Gets the field name identifying the column this ColumnFunction is operating on


getFunctionToken

public String getFunctionToken()
Gets the function token for this ColumnFunction. The token should be a constant defined in the ColumnFunctionToken class.


getValue

public abstract Object getValue()
Gets the current value of the column function


processRow

public void processRow(Row pRow)
                throws DataEngineException
Inputs a new row to the column function

DataEngineException

processValue

public abstract void processValue(Object pValue)
                           throws DataEngineException
Inputs a new value to the column function

DataEngineException