Copyright © 2011 Citra Technologies. All Rights Reserved.

com.citra.treetable.db
Interface DatabaseAggregator

All Superinterfaces:
Aggregator
All Known Implementing Classes:
AbstractDatabaseAggregator, DefaultDatabaseAggregator

public interface DatabaseAggregator
extends Aggregator

DatabaseAggregator includes methods that allow the evaluation of the aggregate rows of a TreeTableModel in batches.


Method Summary
 Object getAggregateObject(Object aggregateObject, int column)
          Returns the Object found at column of aggregateObject passed as a parameter.
 List getAggregateValues(AggregateRow parent, int from, int to)
          Calculates and returns the aggregate values of the children of parent in the range from - to.
 List prepareValues(AggregateRow parent, int from, int to)
          This method retrieves the aggregate values for the children of parent in the range from - to, and assigns them on the treeModel.
 
Methods inherited from interface com.citra.treetable.Aggregator
getAggregateValue, prepareValue
 

Method Detail

getAggregateObject

Object getAggregateObject(Object aggregateObject,
                          int column)
Returns the Object found at column of aggregateObject passed as a parameter.

Parameters:
aggregateObject - the aggregate object as it was received from the fetch database call
column - the column index
Returns:
an appropriate value for the object at column

getAggregateValues

List getAggregateValues(AggregateRow parent,
                        int from,
                        int to)
Calculates and returns the aggregate values of the children of parent in the range from - to.

Parameters:
parent - the parent node
from - the index of the first child
to - the index of the last child
Returns:
the aggregate values as a List

prepareValues

List prepareValues(AggregateRow parent,
                   int from,
                   int to)
This method retrieves the aggregate values for the children of parent in the range from - to, and assigns them on the treeModel.

Parameters:
parent - the parent node
from - the index of the first child
to - the index of the last child

Copyright © 2011 Citra Technologies. All Rights Reserved.