com.ibm.websphere.samples.plantsbywebsphereejb
Class ReportGeneratorBean
java.lang.Object
com.ibm.websphere.samples.plantsbywebsphereejb.ReportGeneratorBean
- All Implemented Interfaces:
- ReportGenerator
public class ReportGeneratorBean
- extends java.lang.Object
- implements ReportGenerator
ReportGeneratorBean is the implementation class for the ReportGenerator
stateless session
EJB. ReportGeneratorBean implements each of the business methods in the ReportGenerator
EJB remote interface and each of the EJB lifecycle methods in the javax.ejb.SessionBean
interface.
- See Also:
Report
,
ReportFormat
,
ReportGenerator
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReportGeneratorBean
public ReportGeneratorBean()
getTopSellersForDates
public Report getTopSellersForDates(java.util.Date startdate,
java.util.Date enddate,
int quantity,
ReportFormat reportFormat)
- Run the report to get the top selling items for a range of dates.
- Specified by:
getTopSellersForDates
in interface ReportGenerator
- Parameters:
startdate
- Start of date range.enddate
- End of date range.quantity
- Number of items to return in report.reportFormat
- - Report format information.
- Returns:
- Report containing results.
getTopSellingZipsForDates
public Report getTopSellingZipsForDates(java.util.Date startdate,
java.util.Date enddate,
int quantity,
ReportFormat reportFormat)
- Run the report to get the top zip codes for a range of dates.
- Specified by:
getTopSellingZipsForDates
in interface ReportGenerator
- Parameters:
startdate
- Start of date range.enddate
- End of date range.quantity
- Number of items to return in report.reportFormat
- - Report format information.
- Returns:
- Report containing results.