umich.cac.queryengine
Class ReportGenerator

java.lang.Object
  extended byumich.cac.queryengine.ReportGenerator

public class ReportGenerator
extends java.lang.Object

Generates PBS accounting reports

Version:
$Header: /cvsroot/pbsaccounting/pbsaccounting/darkslide/src/umich/cac/queryengine/ReportGenerator.java,v 1.2 2003/10/21 19:38:55 rodmach Exp $
Author:
rmach@umich.edu

Constructor Summary
ReportGenerator()
          Constructor for the ReportGenerator object
 
Method Summary
 boolean generateExcelReport(java.util.Date startDate, java.util.Date endDate, java.lang.String fileName, QueryEngine queryEngine)
          Generate an Excel report
 boolean generatePdfReport(java.util.Date startDate, java.util.Date endDate, java.lang.String fileName, QueryEngine queryEngine)
          Generate a PDF report
static void main(java.lang.String[] args)
          The main program for the ReportGenerator class
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportGenerator

public ReportGenerator()
                throws ConfigurationException
Constructor for the ReportGenerator object

Throws:
ConfigurationException - if the ReportGenerator is unable to configure itself
Method Detail

generateExcelReport

public boolean generateExcelReport(java.util.Date startDate,
                                   java.util.Date endDate,
                                   java.lang.String fileName,
                                   QueryEngine queryEngine)
Generate an Excel report

Parameters:
startDate - the start date of the report
endDate - the end date of the report
fileName - the name of the output file to store the PDF into
queryEngine - used to send queries to the database
Returns:
true if generated the report okay, false otherwise.

generatePdfReport

public boolean generatePdfReport(java.util.Date startDate,
                                 java.util.Date endDate,
                                 java.lang.String fileName,
                                 QueryEngine queryEngine)
Generate a PDF report

Parameters:
startDate - the start date of the report
endDate - the end date of the report
fileName - the name of the output file to store the PDF into
queryEngine - used to send queries to the database
Returns:
true if generated the report okay, false otherwise.

main

public static void main(java.lang.String[] args)
The main program for the ReportGenerator class

Parameters:
args - The command line arguments