|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.klg.jclass.higrid.BaseAggregate
Implements the base Aggregate type behavior. This class should be extended to create useful types.
| Field Summary | |
protected BigDecimal |
bigDecimal
BigDecimal version of aggregated value |
protected com.klg.jclass.higrid.SummaryColumn |
column
The column to aggregate over |
protected double |
doubleValue
Double version of aggregated value |
protected long |
longValue
Long version of aggregated value |
protected int |
metaID
The metaData ID associated with the given column |
| Constructor Summary | |
BaseAggregate()
Default Constructor |
|
BaseAggregate(com.klg.jclass.higrid.SummaryColumn column)
Default Constructor |
|
| Method Summary | |
void |
addValue(Object value)
Helper method to add a value. |
boolean |
cacheResultData()
Indicates whether the result data is to be cached for display. |
abstract void |
calculate(com.klg.jclass.higrid.RowNode rowNode)
Perform the aggregation. |
void |
divideValue(int value)
Helper method to divide the aggregate value. |
boolean |
done()
Determine if aggregation is done. |
double |
getDoubleValue(Object value)
Helper method to get a double value from an Object. |
double |
getLongValue(Object value)
Helper method to get a long value from an Object. |
Object |
getResultData()
Returns the result data as an Object. |
Object |
getRowNodeResultData(com.klg.jclass.higrid.RowNode rowNode,
String name)
Helper method to get the result data from the row node given the column identifier. |
void |
init(com.klg.jclass.higrid.SummaryColumn column)
Initialize the aggregate. |
boolean |
isSameMetaID(com.klg.jclass.higrid.RowNode rowNode)
Helper method to check if the row node metaID is the same as the summary column one. |
boolean |
nextLevel(com.klg.jclass.higrid.RowNode rowNode)
Determine if the next row level should be traversed. |
void |
setValue(Object value)
Helper method to set a value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected int metaID
protected com.klg.jclass.higrid.SummaryColumn column
protected long longValue
protected double doubleValue
protected BigDecimal bigDecimal
| Constructor Detail |
public BaseAggregate()
public BaseAggregate(com.klg.jclass.higrid.SummaryColumn column)
| Method Detail |
public void setValue(Object value)
value - A value in Object form.public void addValue(Object value)
value - A value in Object form.public void divideValue(int value)
value - The integer divisor.public double getLongValue(Object value)
value - A value in Object form.public double getDoubleValue(Object value)
value - A value in Object form.public boolean isSameMetaID(com.klg.jclass.higrid.RowNode rowNode)
rowNode - The row node.
public Object getRowNodeResultData(com.klg.jclass.higrid.RowNode rowNode,
String name)
rowNode - The row node.name - The column identifierpublic void init(com.klg.jclass.higrid.SummaryColumn column)
init in interface Aggregatecolumn - The summary column.public boolean done()
done in interface Aggregatepublic boolean nextLevel(com.klg.jclass.higrid.RowNode rowNode)
nextLevel in interface AggregaterowNode - The row node.
public abstract void calculate(com.klg.jclass.higrid.RowNode rowNode)
calculate in interface AggregaterowNode - The row node.public boolean cacheResultData()
cacheResultData in interface Aggregatepublic Object getResultData()
getResultData in interface Aggregate
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||