it.eng.qbe.newexport
Class ReportRunner

java.lang.Object
  extended by it.eng.qbe.newexport.ReportRunner

public class ReportRunner
extends java.lang.Object

Compile, fill and export a report template to a file or stream.

Author:
Gioia

Constructor Summary
ReportRunner()
          Instantiates a new report runner.
 
Method Summary
 net.sf.jasperreports.engine.fill.JRFileVirtualizer getVirtualizer(int maxNumOfPages, java.lang.String tmpDirectory)
          Gets the virtualizer.
 void run(java.lang.String templateContent, java.io.File reportFile, java.lang.String outputType, java.sql.Connection conn)
          Run.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReportRunner

public ReportRunner()
Instantiates a new report runner.

Method Detail

run

public void run(java.lang.String templateContent,
                java.io.File reportFile,
                java.lang.String outputType,
                java.sql.Connection conn)
         throws java.lang.Exception
Run.

Parameters:
templateFile - the template file
reportFile - the report file
outputType - the output type
conn - the conn
Throws:
java.lang.Exception - the exception

getVirtualizer

public net.sf.jasperreports.engine.fill.JRFileVirtualizer getVirtualizer(int maxNumOfPages,
                                                                         java.lang.String tmpDirectory)
Gets the virtualizer.

Parameters:
maxNumOfPages - the max num of pages
tmpDirectory - the tmp directory
Returns:
the virtualizer