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, wait
appendContextSubQuery
public TabularReport getPage(java.lang.String reportName, ReportContext rc, Query query, SortCriteria[] sort, int startIndex, int endIndex, boolean isExport) throws java.lang.Exception
PaginationProviderIf
getPage
in interface PaginationProviderIf
reportName
- 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.Exception
public 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.Exception
public TabularReport createTabularReport(java.lang.String reportName, ReportContext context, TabularReportMetadata md, java.util.List<?> data) throws java.lang.Exception
java.lang.Exception
public int getPageCount(java.lang.String reportName, ReportContext rc, Query query, SortCriteria sort, int rowsPerPage) throws java.lang.Exception
java.lang.Exception
public int getRowCount(java.lang.String reportName, ReportContext rc, Query query, SortCriteria sort) throws java.lang.Exception
PaginationProviderIf
getRowCount
in interface PaginationProviderIf
reportName
- 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.Exception
public int getRowCount(java.lang.String reportName, ReportContext rc, ReportRegistryEntry entry, Query query, SortCriteria sort) throws java.lang.Exception
java.lang.Exception
public TabularReportMetadata getTabularReportMetadata(java.lang.String reportName, ReportContext rc)
PaginationProviderIf
getTabularReportMetadata
in interface PaginationProviderIf
reportName
- 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
TabularReportGeneratorIf
getTabularReportReport
in interface TabularReportGeneratorIf
reportEntry
- 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.Exception
TabularReport, TabularReportInternalModel, ReportRegistryEntry, ReportContext
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception