|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.samples.ejbquery.employeefinderejb.DeptBean
public abstract class DeptBean
The DeptBean CMP EJB Bean implements the EntityBean interface. It contains the accessor and business methods necessary to work with an Dept. In addition, it contains the Home Interface Methods, and Callback Methods.
Field Summary | |
---|---|
protected javax.ejb.EntityContext |
entityContext
|
Constructor Summary | |
---|---|
DeptBean()
|
Method Summary | |
---|---|
int |
add1()
add1 method returns deptno + 1. |
void |
ejbActivate()
ejbActivate required callback method for lifecycle notification. |
DeptKey |
ejbCreate(java.lang.Integer deptno)
ejbCreate method responsible for the creation of a skeleton Dept. |
DeptKey |
ejbCreate(java.lang.Integer deptno,
java.lang.String name,
double budget)
ejbCreate method responsible for the creation of a Dept. |
void |
ejbLoad()
ejbLoad required callback method gets called after the EJB is loaded from the database. |
void |
ejbPassivate()
ejbPassivate required callback method for lifecycle notification. |
void |
ejbPostCreate(DeptKey key)
ejbPostCreate Home Interface Method responsible for post creation steps, there are none for Dept. |
void |
ejbPostCreate(java.lang.Integer deptno)
ejbPostCreate method responsible for the post creation of a skeleton Dept. |
void |
ejbPostCreate(java.lang.Integer deptno,
java.lang.String name,
double budget)
ejbPostCreate method responsible for the post creation of a Dept. |
void |
ejbRemove()
ejbRemove required callback method for Contaimer Managed Persistence. |
void |
ejbStore()
ejbStore required callback method for Contaimer Managed Persistence. |
abstract double |
getBudget()
This abstract CMP field accessor method gets the budget attribute. |
abstract java.lang.Integer |
getDeptno()
This abstract CMP field accessor method gets the deptno attribute. |
abstract java.util.Collection |
getEmps()
This abstract CMR field accessor method gets the emps attribute. |
abstract EmpLocal |
getMgr()
This abstract CMR field accessor method gets the mgr attribute. |
abstract java.lang.String |
getName()
This abstract CMP field accessor method gets the name attribute. |
abstract void |
setBudget(double budget)
This abstract CMP field accessor method sets the budget attribute. |
abstract void |
setDeptno(java.lang.Integer deptno)
This abstract CMP field accessor method sets the deptno attribute. |
abstract void |
setEmps(java.util.Collection newEmps)
This abstract CMR field accessor method sets the emps attribute. |
void |
setEntityContext(javax.ejb.EntityContext ctx)
setEntityContext required callback method for Container Managed Persistence. |
abstract void |
setMgr(EmpLocal newMgr)
This abstract CMR field accessor method sets the mgr attribute. |
abstract void |
setName(java.lang.String name)
This abstract CMP field accessor method sets the name attribute. |
void |
unsetEntityContext()
unsetEntityContext required callback method for Container Managed Persistence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.ejb.EntityContext entityContext
Constructor Detail |
---|
public DeptBean()
Method Detail |
---|
public abstract java.lang.Integer getDeptno()
public abstract void setDeptno(java.lang.Integer deptno)
deptno
- java.lang.Integerpublic abstract java.lang.String getName()
public abstract void setName(java.lang.String name)
name
- java.lang.Stringpublic abstract double getBudget()
public abstract void setBudget(double budget)
budget
- doublepublic abstract java.util.Collection getEmps()
public abstract void setEmps(java.util.Collection newEmps)
newEmps
- java.util.Collectionpublic abstract EmpLocal getMgr()
public abstract void setMgr(EmpLocal newMgr)
newMgr
- EmpLocalpublic int add1()
public DeptKey ejbCreate(java.lang.Integer deptno) throws javax.ejb.CreateException
deptno
- java.lang.Integer
javax.ejb.CreateException
- This exception is thrown to
indicate a failure to create the entity EJB.public DeptKey ejbCreate(java.lang.Integer deptno, java.lang.String name, double budget) throws javax.ejb.CreateException
deptno
- java.lang.Integername
- java.lang.Stringbudget
- double
javax.ejb.CreateException
- This exception is thrown to
indicate a failure to create the entity EJB.public void ejbPostCreate(java.lang.Integer deptno) throws javax.ejb.CreateException
deptno
- java.lang.Integer
javax.ejb.CreateException
- This exception is thrown to
indicate a failure to create the entity EJB.public void ejbPostCreate(java.lang.Integer deptno, java.lang.String name, double budget) throws javax.ejb.CreateException
deptno
- java.lang.Integername
- java.lang.Stringbudget
- double
javax.ejb.CreateException
- This exception is thrown to
indicate a failure to create the entity EJB.public void ejbPostCreate(DeptKey key) throws javax.ejb.CreateException
key
- DeptKey
javax.ejb.CreateException
- This exception is thrown to
indicate a failure to create the entity EJB.public void setEntityContext(javax.ejb.EntityContext ctx) throws javax.ejb.EJBException
setEntityContext
in interface javax.ejb.EntityBean
ctx
- javax.ejb.EntityContext
javax.ejb.EJBException
- This exception is thrown to
indicate a failure to create the entity EJB.public void unsetEntityContext() throws javax.ejb.EJBException
unsetEntityContext
in interface javax.ejb.EntityBean
javax.ejb.EJBException
- The exception description.public void ejbLoad() throws javax.ejb.EJBException
ejbLoad
in interface javax.ejb.EntityBean
javax.ejb.EJBException
- Signals that an EJB exception can occur.public void ejbStore() throws javax.ejb.EJBException
ejbStore
in interface javax.ejb.EntityBean
javax.ejb.EJBException
- Signals that an EJB exception can occur.public void ejbRemove() throws javax.ejb.EJBException, javax.ejb.RemoveException
ejbRemove
in interface javax.ejb.EntityBean
javax.ejb.EJBException
- Signals that an EJB exception can occur.
javax.ejb.RemoveException
- Signals that a Remove exception can occur.public void ejbActivate() throws javax.ejb.EJBException
ejbActivate
in interface javax.ejb.EntityBean
javax.ejb.EJBException
- Signals that an EJB exception can occur.public void ejbPassivate() throws javax.ejb.EJBException
ejbPassivate
in interface javax.ejb.EntityBean
javax.ejb.EJBException
- Signals that an EJB exception can occur.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |