| java.lang.Object org.jfree.report.function.AbstractExpression org.jfree.report.function.ColumnAggregationExpression
All known Subclasses: org.pentaho.jfreereport.legacy.ColumnAverageExpression, org.jfree.report.function.ColumnMultiplyExpression, org.jfree.report.function.bool.OrExpression, org.jfree.report.function.ColumnSumExpression, org.pentaho.jfreereport.legacy.ColumnDivisionExpression, org.pentaho.jfreereport.legacy.ColumnSumExpression, org.pentaho.jfreereport.legacy.ColumnMultiplyExpression, org.jfree.report.function.bool.AndExpression, org.jfree.report.function.ColumnDivisionExpression, org.jfree.report.function.ColumnMaximumExpression, org.jfree.report.function.ColumnMinimumExpression, org.pentaho.jfreereport.legacy.ColumnDifferenceExpression, org.jfree.report.function.ColumnAverageExpression, org.jfree.report.function.ColumnDifferenceExpression, org.jfree.report.function.sys.SingleValueQueryFunction,
ColumnAggregationExpression | abstract public class ColumnAggregationExpression extends AbstractExpression (Code) | | The base-class for all expressions that aggregate values from multiple columns.
author: Thomas Morgner |
Method Summary | |
public String | getField(int index) Returns the defined field at the given index-position.
Parameters: index - the position of the field name that should be queried. | public String[] | getField() Returns all defined fields as array of strings. | public int | getFieldCount() Returns the number of fields defined in this expression. | protected Object[] | getFieldValues() Collects the values of all fields defined in the fieldList. | public Expression | getInstance() Return a completly separated copy of this function. | public void | setField(int index, String field) Defines the field in the field-list at the given index. | public void | setField(String[] fields) Defines all fields as array. |
ColumnAggregationExpression | protected ColumnAggregationExpression()(Code) | | Default Constructor.
|
getField | public String getField(int index)(Code) | | Returns the defined field at the given index-position.
Parameters: index - the position of the field name that should be queried. the field name at the given position. |
getField | public String[] getField()(Code) | | Returns all defined fields as array of strings.
all the fields. |
getFieldCount | public int getFieldCount()(Code) | | Returns the number of fields defined in this expression.
the number of fields. |
getFieldValues | protected Object[] getFieldValues()(Code) | | Collects the values of all fields defined in the fieldList.
an Object-array containing all defined values from the datarow |
getInstance | public Expression getInstance()(Code) | | Return a completly separated copy of this function. The copy does no longer share any changeable objects with the
original function.
a copy of this function. |
setField | public void setField(int index, String field)(Code) | | Defines the field in the field-list at the given index.
Parameters: index - the position in the list, where the field should be defined. Parameters: field - the name of the field. |
setField | public void setField(String[] fields)(Code) | | Defines all fields as array. This completely replaces any previously defined fields.
Parameters: fields - the new list of fields. |
|
|