|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectplanetj.database.report.ColumnFunction
Represents a function that operates on a column of values in a table
Constructor Summary | |
protected |
ColumnFunction()
ColumnFunction constructor comment. |
protected |
ColumnFunction(java.lang.String pFunctionToken)
ColumnFunction constructor |
protected |
ColumnFunction(java.lang.String pFunctionToken,
java.lang.String pFieldName)
ColumnFunction constructor |
Method Summary | |
abstract void |
clear()
Clears all the previously processed values from the column function |
java.lang.Object |
clone()
Clones this ColumnFunction |
ColumnFunction |
cloneColumnFunction()
Clones this ColumnFunction |
static ColumnFunction |
getColumnFunction(java.lang.String pToken,
java.lang.String pFieldName)
Gets a ColumnFunction object for the specified token and field name. |
java.lang.String |
getFieldName()
Gets the field name identifying the column this ColumnFunction is operating on |
java.lang.String |
getFunctionToken()
Gets the function token for this ColumnFunction. |
protected int |
getPrecision()
Gets the number of digits after the decimal |
abstract java.lang.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(java.lang.Object pValue)
Inputs a new value to the column function |
abstract void |
set(ColumnFunction cf)
Sets the internal state of this ColumnFunction to be the same as the state of another ColumnFunction. |
protected void |
setFieldName(java.lang.String newFieldName)
Gets the field name identifying the column this ColumnFunction is operating on |
protected void |
setFunctionToken(java.lang.String newFunctionToken)
Sets the function token for this ColumnFunction. |
protected void |
setPrecision(int newPrecision)
Sets the number of digits after the decimal |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected ColumnFunction()
protected ColumnFunction(java.lang.String pFunctionToken)
protected ColumnFunction(java.lang.String pFunctionToken, java.lang.String pFieldName)
pFunctionToken
- The token indicating which function this class should use. The token should be a constant
defined in the ColumnFunctionToken class.pFieldName
- The field name identifying the column this ColumnFunction is operating onMethod Detail |
public abstract void clear()
public java.lang.Object clone()
public ColumnFunction cloneColumnFunction()
public static ColumnFunction getColumnFunction(java.lang.String pToken, java.lang.String pFieldName) throws DataEngineException
pToken
- A token defined in the ColumnFunctionToken classpFieldName
- A field name identifying the column on which the ColumnFunction object
will operate
DataEngineException
public java.lang.String getFieldName()
public java.lang.String getFunctionToken()
protected int getPrecision()
public abstract java.lang.Object getValue()
public void processRow(Row pRow) throws DataEngineException
DataEngineException
public abstract void processValue(java.lang.Object pValue) throws DataEngineException
DataEngineException
public abstract void set(ColumnFunction cf)
cf
- A ColumnFunction, which must be compatible with this column function and which will be used
to set the internal state of this ColumnFunctionprotected void setFieldName(java.lang.String newFieldName)
protected void setFunctionToken(java.lang.String newFunctionToken)
protected void setPrecision(int newPrecision)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |