|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.openmms.ejb.server.MM2StorageBean
Title: MM2StorageBean
Description: This class implements methods for communicating with EJB and the Mysql database.
Copyright: Copyright (c) 2003 OpenMMS.org
| Constructor Summary | |
MM2StorageBean()
Constructor which creates a new MM2StorageBean |
|
| Method Summary | |
boolean |
deleteMM(java.lang.String ID)
Boolean function, which deletes an MM, given it's unique-ID |
void |
ejbActivate()
Activates the ejb |
void |
ejbCreate()
required function for creating an ejb-database connection |
void |
ejbPassivate()
sets the ejb-status to standby again |
void |
ejbRemove()
Removes the ejb-instance of the bean |
MM_Data |
fetchMM(java.lang.String ID,
MM_Data mmd)
Fetches an MM from storage given a unique ID |
void |
setSessionContext(javax.ejb.SessionContext sc)
Sets the session context |
boolean |
storeMM(java.lang.String ID,
MM_Data mm,
java.lang.String expiry,
java.lang.String deliveryTime,
java.lang.String deliveryReportValue,
java.lang.String readReportValue)
Boolean function, which stores an MM in the database |
boolean |
updateMM(java.lang.String ID,
MM_Data mm,
java.lang.String expiry,
java.lang.String deliveryTime,
java.lang.String deliveryReportValue,
java.lang.String readReportValue)
Boolean function, which updates a given row in the database, based on its unique-ID |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public MM2StorageBean()
| Method Detail |
public boolean storeMM(java.lang.String ID,
MM_Data mm,
java.lang.String expiry,
java.lang.String deliveryTime,
java.lang.String deliveryReportValue,
java.lang.String readReportValue)
throws java.rmi.RemoteException,
OpenMMSException
ID - mm - expiry - deliveryTime - deliveryReportValue - readReportValue -
java.rmi.RemoteException
OpenMMSException
public MM_Data fetchMM(java.lang.String ID,
MM_Data mmd)
throws java.rmi.RemoteException,
OpenMMSException
ID - mmd -
java.rmi.RemoteException
OpenMMSException
public boolean updateMM(java.lang.String ID,
MM_Data mm,
java.lang.String expiry,
java.lang.String deliveryTime,
java.lang.String deliveryReportValue,
java.lang.String readReportValue)
throws java.rmi.RemoteException,
OpenMMSException
ID - mm - expiry - deliveryTime - deliveryReportValue - readReportValue -
java.rmi.RemoteException
OpenMMSException
public boolean deleteMM(java.lang.String ID)
throws java.rmi.RemoteException,
OpenMMSException
ID -
java.rmi.RemoteException
OpenMMSExceptionpublic void ejbCreate()
public void setSessionContext(javax.ejb.SessionContext sc)
throws javax.ejb.EJBException,
java.rmi.RemoteException
setSessionContext in interface javax.ejb.SessionBeansc -
EJBException
java.rmi.RemoteException
public void ejbRemove()
throws javax.ejb.EJBException,
java.rmi.RemoteException
ejbRemove in interface javax.ejb.SessionBeanEJBException
java.rmi.RemoteException
public void ejbPassivate()
throws javax.ejb.EJBException,
java.rmi.RemoteException
ejbPassivate in interface javax.ejb.SessionBeanEJBException
java.rmi.RemoteException
public void ejbActivate()
throws javax.ejb.EJBException,
java.rmi.RemoteException
ejbActivate in interface javax.ejb.SessionBeanEJBException
java.rmi.RemoteException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||