R
- the type of the report being wrapped.D
- the type of the report datasourcepublic interface ReportWrapper<R,D>
Modifier and Type | Field and Description |
---|---|
static PropertyValue<java.lang.String> |
REPORT_PATH
The report path used for the default report generation,
either file or http based
|
Modifier and Type | Method and Description |
---|---|
ReportResult<R> |
fillReport(java.sql.Connection connection)
Fills the report using the given database connection
|
ReportResult<R> |
fillReport(ReportDataWrapper<D> dataWrapper)
Fills the report using the data source wrapped by the given data wrapper
|
java.lang.String |
getReportName() |
static java.lang.String |
getReportPath() |
static final PropertyValue<java.lang.String> REPORT_PATH
java.lang.String getReportName()
ReportResult<R> fillReport(java.sql.Connection connection) throws ReportException
connection
- the connection to use for the report generationReportException
- in case of an exceptionReportResult<R> fillReport(ReportDataWrapper<D> dataWrapper) throws ReportException
dataWrapper
- the data provider to use for the report generationReportException
- in case of an exceptionstatic java.lang.String getReportPath()
REPORT_PATH
java.lang.IllegalArgumentException
- in case it is not specified