public abstract class ReportManager extends Object
| Modifier and Type | Class and Description |
|---|---|
class |
ReportManager.ConnectionFileStrategy
Implementation of FileStrategy using a Connection as report data source
|
class |
ReportManager.JRDataSourceFileStrategy
Implementation of FileStrategy using a JRDataSource as report data source
|
class |
ReportManager.ProcessFileStrategy
Strategy to process the jasper file.
|
| Constructor and Description |
|---|
ReportManager()
Default ctor.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract JRParameterEditorDialog |
createEditorDialog() |
DataSource |
getDataSource() |
static String |
getPrefix(String fileName) |
static String |
getSuffix(String fileName) |
void |
setDataSource(DataSource dataSource) |
void |
showReport(Report report,
Dao<Object,Serializable> service,
Object filter,
String sortPropertyName,
Page.Order sortOrder,
String outputType)
Display a report in
outputType using the service and available ids to create
the data source |
void |
showReport(Report report,
DataSource dataSource,
String outputType)
Displays the report in a new window as a file
|
public void showReport(Report report, Dao<Object,Serializable> service, Object filter, String sortPropertyName, Page.Order sortOrder, String outputType) throws Exception
outputType using the service and available ids to create
the data sourcereport - report to displayfilter - filter to use when query data to persistent servicesortPropertyName - sort property namesortOrder - sort order (ASC, DESC)service - persistent service to useoutputType - report output type (pdf, xml)Exceptionpublic void showReport(Report report, DataSource dataSource, String outputType) throws ReportingException
report - the report to be displayedReportingExceptionprotected abstract JRParameterEditorDialog createEditorDialog()
public DataSource getDataSource()
public void setDataSource(DataSource dataSource)
dataSource - the dataSource to setCopyright © 2014 JDAL. All Rights Reserved.