org.outerj.xreporter.report.definition
Class TableBuilder

java.lang.Object
  extended byorg.outerj.xreporter.report.definition.TableBuilder

public class TableBuilder
extends java.lang.Object

Utility class for Building the Table objects required for grouping.


Constructor Summary
TableBuilder()
           
 
Method Summary
static Table buildTable(java.sql.ResultSet resultSet, ColumnDefinition[] columnDefinitions)
          Builds a Table object from a ResultSet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableBuilder

public TableBuilder()
Method Detail

buildTable

public static Table buildTable(java.sql.ResultSet resultSet,
                               ColumnDefinition[] columnDefinitions)
                        throws java.sql.SQLException
Builds a Table object from a ResultSet. The table will contain all columns defined in the report definition, not only the visible columns. This is because the columns on which is grouped or on which certain formulas are calculated may not be visible but their data is still needed.

Throws:
java.sql.SQLException