|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.ibm.websphere.samples.plantsbywebsphereejb.ReportGeneratorBean
public class ReportGeneratorBean
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.
Report,
ReportFormat,
ReportGenerator,
ReportGeneratorHome,
Serialized Form| Constructor Summary | |
|---|---|
ReportGeneratorBean()
|
|
| Method Summary | |
|---|---|
void |
ejbActivate()
ejbActivate Session EJB lifecycle callback method. |
void |
ejbCreate()
ejbCreate Session EJB lifecycle callback method. |
void |
ejbPassivate()
ejbPassivate Session EJB lifecycle callback method. |
void |
ejbRemove()
ejbRemove Session EJB lifecycle callback method. |
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. |
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. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext Session EJB lifecycle callback method to set the EJB sessionContext for this EJB. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ReportGeneratorBean()
| Method Detail |
|---|
public Report getTopSellersForDates(java.util.Date startdate,
java.util.Date enddate,
int quantity,
ReportFormat reportFormat)
startdate - Start of date range.enddate - End of date range.quantity - Number of items to return in report.reportFormat - - Report format information.
public Report getTopSellingZipsForDates(java.util.Date startdate,
java.util.Date enddate,
int quantity,
ReportFormat reportFormat)
startdate - Start of date range.enddate - End of date range.quantity - Number of items to return in report.reportFormat - - Report format information.
public void ejbCreate()
throws javax.ejb.CreateException
javax.ejb.CreateExceptionpublic void ejbRemove()
ejbRemove in interface javax.ejb.SessionBeanpublic void ejbActivate()
ejbActivate in interface javax.ejb.SessionBeanpublic void ejbPassivate()
ejbPassivate in interface javax.ejb.SessionBeanpublic void setSessionContext(javax.ejb.SessionContext ctx)
setSessionContext in interface javax.ejb.SessionBeanctx - javax.ejb.SessionContext The context for this session EJB.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||