it.eng.spagobi.engines.qbe.query
Class ReportRunner

java.lang.Object
  extended by it.eng.spagobi.engines.qbe.query.ReportRunner

public class ReportRunner
extends java.lang.Object

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

Author:
Gioia

Field Summary
static org.apache.log4j.Logger logger
          Logger component.
 
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, java.util.Locale locale)
          Run.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

public static transient org.apache.log4j.Logger logger
Logger component.

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,
                java.util.Locale locale)
         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