com.java4less.rreport
Class WebReportJDBC

java.lang.Object
  |
  +--com.java4less.rreport.WebReportJDBC
All Implemented Interfaces:
IWebReport

public class WebReportJDBC
extends java.lang.Object
implements IWebReport

implementation of the IWebRepot interface. This class is used to run reports that use JDBC/ODBC as data source.
The input parameters are REPORTFILE (*.rep file) and any other parameter the RJDBCSource of the areas defined in the rep file might need.
Parameters for the RJDBCSources of the report must start with "PAR_".


Field Summary
 boolean debug
           
 
Constructor Summary
WebReportJDBC()
           
 
Method Summary
 RReport createReport(com.java4less.rreport.HttpServletRequest request)
          create report loading the template file (*.rep).
 boolean runReport()
          run report, call prepare() and endReport().
Note: all detail areas must be linked to the report header directly or indirectly since the prepare() method prints only the header and all linked areas.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

debug

public boolean debug
Constructor Detail

WebReportJDBC

public WebReportJDBC()
Method Detail

createReport

public RReport createReport(com.java4less.rreport.HttpServletRequest request)
create report loading the template file (*.rep). The request parameter "REPORTFILE" must contain the name of the report template file, as relative or absolute url.
For example:

http://localhost:8080/rreport/servlet/RReportServlet?REPORTFILE=file://employee.rep&FORMAT=PDF
Specified by:
createReport in interface IWebReport

runReport

public boolean runReport()
run report, call prepare() and endReport().
Note: all detail areas must be linked to the report header directly or indirectly since the prepare() method prints only the header and all linked areas.
Specified by:
runReport in interface IWebReport