public abstract class PaginatedReportHandler extends java.lang.Object implements PaginationProviderIf, TabularReportGeneratorIf
| Constructor and Description |
|---|
PaginatedReportHandler() |
| Modifier and Type | Method and Description |
|---|---|
TabularReport |
createTabularReport(java.lang.String reportName,
ReportContext context,
TabularReportMetadata md,
java.util.List<?> data) |
TabularReport |
getPage(java.lang.String reportName,
ReportContext rc,
java.lang.Class modelClass,
Query query,
SortCriteria[] sort,
int startIndex,
int endIndex,
boolean isExport) |
TabularReport |
getPage(java.lang.String reportName,
ReportContext rc,
Query query,
SortCriteria[] sort,
int startIndex,
int endIndex,
boolean isExport)
Returns the set of rows matching the given query between start and end.
|
int |
getPageCount(java.lang.String reportName,
ReportContext rc,
Query query,
SortCriteria sort,
int rowsPerPage) |
int |
getRowCount(java.lang.String reportName,
ReportContext rc,
Query query,
SortCriteria sort)
Returns the total number of rows matching the given query.
|
int |
getRowCount(java.lang.String reportName,
ReportContext rc,
ReportRegistryEntry entry,
Query query,
SortCriteria sort) |
TabularReportMetadata |
getTabularReportMetadata(java.lang.String reportName,
java.lang.Class modelClass) |
TabularReportMetadata |
getTabularReportMetadata(java.lang.String reportName,
ReportContext rc)
Returns the column definitions and any ui customizations for the given report.
|
TabularReport |
getTabularReportReport(ReportRegistryEntry reportEntry,
ReportContext context)
The method is the main method that will be called for displaying tabular data.
|
static void |
main(java.lang.String[] args) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitappendContextSubQuerypublic TabularReport getPage(java.lang.String reportName, ReportContext rc, Query query, SortCriteria[] sort, int startIndex, int endIndex, boolean isExport) throws java.lang.Exception
PaginationProviderIfgetPage in interface PaginationProviderIfreportName - Name of the report to gather rows for.rc - The report context to retrieve rows with.query - Any additional clauses to tack on to the base query.sort - The sort order for columns.startIndex - The starting index to get rows for.endIndex - The ending index to get rows for.java.lang.Exceptionpublic TabularReport getPage(java.lang.String reportName, ReportContext rc, java.lang.Class modelClass, Query query, SortCriteria[] sort, int startIndex, int endIndex, boolean isExport) throws java.lang.Exception
java.lang.Exceptionpublic TabularReport createTabularReport(java.lang.String reportName, ReportContext context, TabularReportMetadata md, java.util.List<?> data) throws java.lang.Exception
java.lang.Exceptionpublic int getPageCount(java.lang.String reportName,
ReportContext rc,
Query query,
SortCriteria sort,
int rowsPerPage)
throws java.lang.Exception
java.lang.Exceptionpublic int getRowCount(java.lang.String reportName,
ReportContext rc,
Query query,
SortCriteria sort)
throws java.lang.Exception
PaginationProviderIfgetRowCount in interface PaginationProviderIfreportName - Name of report to get row count for.rc - The report context to retrieve rows with.query - Any additional clauses to tack on to base query.sort - Sort order, but is irrelevant in this case.java.lang.Exceptionpublic int getRowCount(java.lang.String reportName,
ReportContext rc,
ReportRegistryEntry entry,
Query query,
SortCriteria sort)
throws java.lang.Exception
java.lang.Exceptionpublic TabularReportMetadata getTabularReportMetadata(java.lang.String reportName, ReportContext rc)
PaginationProviderIfgetTabularReportMetadata in interface PaginationProviderIfreportName - Name of report to get metadata for.rc - The report context to get metadata for.public TabularReportMetadata getTabularReportMetadata(java.lang.String reportName, java.lang.Class modelClass)
public TabularReport getTabularReportReport(ReportRegistryEntry reportEntry, ReportContext context) throws java.lang.Exception
TabularReportGeneratorIfgetTabularReportReport in interface TabularReportGeneratorIfreportEntry - This class has the info about the report (Report Name, Report Label, menu...)context - Context information for this report (Passed from the context from Open Automation
report)java.lang.ExceptionTabularReport, TabularReportInternalModel, ReportRegistryEntry, ReportContextpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.Exception