|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.rice.rubis.beans.IDManagerBean
IDManagerBean BMP is used to generate id since the AUTO_INCREMENT feature of the database that automatically generate id on the primary key is not supported by JBoss.
Field Summary | |
java.lang.Integer |
bidCount
|
java.lang.Integer |
buyNowCount
|
java.lang.Integer |
categoryCount
|
java.lang.Integer |
commentCount
|
java.lang.Integer |
id
|
java.lang.Integer |
itemCount
|
java.lang.Integer |
regionCount
|
java.lang.Integer |
userCount
|
Constructor Summary | |
IDManagerBean()
|
Method Summary | |
void |
ejbActivate()
Mandatory methods |
IDManagerPK |
ejbCreate()
This method is used to create a new IDManager Bean but should never be called. |
IDManagerPK |
ejbFindByPrimaryKey(IDManagerPK id)
This method is used to retrieve a IDManager Bean from its primary key, that is to say its id. |
void |
ejbLoad()
Read the reccord from the database and update the bean. |
void |
ejbPassivate()
|
void |
ejbPostCreate()
This method does currently nothing |
void |
ejbRemove()
This method delete a record from the database but should never be called. |
void |
ejbStore()
Update the record. |
java.sql.Connection |
getConnection()
Retrieve a connection.. |
java.lang.Integer |
getNextBidID()
Generate the bid id. |
java.lang.Integer |
getNextBuyNowID()
Generate the buyNow id. |
java.lang.Integer |
getNextCategoryID()
Generate the category id. |
java.lang.Integer |
getNextCommentID()
Generate the comment id. |
java.lang.Integer |
getNextItemID()
Generate the item id. |
java.lang.Integer |
getNextRegionID()
Generate the region id. |
java.lang.Integer |
getNextUserID()
Generate the user id. |
void |
setEntityContext(javax.ejb.EntityContext context)
Sets the associated entity context. |
void |
unsetEntityContext()
Unsets the associated entity context. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.Integer id
public java.lang.Integer categoryCount
public java.lang.Integer regionCount
public java.lang.Integer userCount
public java.lang.Integer itemCount
public java.lang.Integer commentCount
public java.lang.Integer bidCount
public java.lang.Integer buyNowCount
Constructor Detail |
public IDManagerBean()
Method Detail |
public java.lang.Integer getNextCategoryID() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occurspublic java.lang.Integer getNextRegionID() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occurspublic java.lang.Integer getNextUserID() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occurspublic java.lang.Integer getNextItemID() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occurspublic java.lang.Integer getNextCommentID() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occurspublic java.lang.Integer getNextBidID() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occurspublic java.lang.Integer getNextBuyNowID() throws java.rmi.RemoteException
java.rmi.RemoteException
- if an error occurspublic java.sql.Connection getConnection() throws java.lang.Exception
java.lang.Exception
- if an error occurspublic IDManagerPK ejbFindByPrimaryKey(IDManagerPK id) throws javax.ejb.FinderException, java.rmi.RemoteException
id
- IDManager id (primary key)javax.ejb.FinderException
- if an error occursjava.rmi.RemoteException
- if an error occurspublic IDManagerPK ejbCreate() throws javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.RemoveException
javax.ejb.CreateException
- if an error occursjava.rmi.RemoteException
- if an error occursjavax.ejb.RemoveException
- if an error occurspublic void ejbPostCreate()
public void ejbActivate() throws java.rmi.RemoteException
ejbActivate
in interface javax.ejb.EntityBean
public void ejbPassivate() throws java.rmi.RemoteException
ejbPassivate
in interface javax.ejb.EntityBean
public void ejbRemove() throws java.rmi.RemoteException, javax.ejb.RemoveException
ejbRemove
in interface javax.ejb.EntityBean
java.rmi.RemoteException
- if an error occursjavax.ejb.RemoveException
- if an error occurspublic void ejbStore() throws java.rmi.RemoteException
ejbStore
in interface javax.ejb.EntityBean
java.rmi.RemoteException
- if an error occurspublic void ejbLoad() throws java.rmi.RemoteException
ejbLoad
in interface javax.ejb.EntityBean
java.rmi.RemoteException
- if an error occurspublic void setEntityContext(javax.ejb.EntityContext context) throws java.rmi.RemoteException
setEntityContext
in interface javax.ejb.EntityBean
context
- - An EntityContext interface for the instance. The instance should
store the reference to the context in an instance variable.javax.ejb.EJBException
- Thrown by the method to indicate a failure
caused by a system-level error.java.rmi.RemoteException
- - This exception is defined in the method signature
to provide backward compatibility for enterprise beans
written for the EJB 1.0 specification.
Enterprise beans written for the EJB 1.1 and
higher specification should throw the javax.ejb.EJBException
instead of this exception.public void unsetEntityContext() throws java.rmi.RemoteException
unsetEntityContext
in interface javax.ejb.EntityBean
javax.ejb.EJBException
- Thrown by the method to indicate a failure
caused by a system-level error.java.rmi.RemoteException
- - This exception is defined in the method signature
to provide backward compatibility for enterprise beans
written for the EJB 1.0 specification.
Enterprise beans written for the EJB 1.1 and
higher specification should throw the javax.ejb.EJBException
instead of this exception.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |