org.outerj.grouping
Class Grouper

java.lang.Object
  extended byorg.outerj.grouping.Grouper

public class Grouper
extends java.lang.Object

This class creates the Group structure.


Constructor Summary
Grouper()
           
 
Method Summary
static Group makeGroups(Table table, GroupDefinition[] groupDefinitions)
          Creates a tree of Group objects given a certain Table and an array of GroupDefinition's.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Grouper

public Grouper()
Method Detail

makeGroups

public static Group makeGroups(Table table,
                               GroupDefinition[] groupDefinitions)
Creates a tree of Group objects given a certain Table and an array of GroupDefinition's. The first element in the GroupDefinition array should be a TopLevelGroupDefinition, the other elements should be GroupDefinition's whose columndId properties refer to columns existing in the Table.

The returned Group (= the root of the Group-tree) is a group that corresponds to the whole table, thus its startRow property will point to the first row of the Table, and its endRow property to the last row of the table.