|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.websphere.samples.activitysessions.ASContainerManagedEJB.ASContainerManagedEJBBean
public abstract class ASContainerManagedEJBBean
The ASContainerManagedEJB CMP EJB Bean implements the EntityBean interface.
It contains two instance variables that are both of type int
. These are index
, which
is the key value for the EJB, and value
.
Points to note about it's deployment are as follows
Constructor Summary | |
---|---|
ASContainerManagedEJBBean()
|
Method Summary | |
---|---|
void |
ejbActivate()
This required callback method is used for lifecycle notification. |
ASContainerManagedEJBKey |
ejbCreate(int argIndex)
This Home Interface Method is responsible for creation. |
void |
ejbLoad()
Required callback method for Contaimer Managed Persistence. |
void |
ejbPassivate()
This required callback method is used for lifecycle notification. |
void |
ejbPostCreate(int index)
ejbPostCreate |
void |
ejbRemove()
Required callback method for Contaimer Managed Persistence. |
void |
ejbStore()
Required callback method for Contaimer Managed Persistence. |
javax.ejb.EntityContext |
getEntityContext()
getEntityContext |
int |
getHitCount()
Getter method for hitCount |
abstract int |
getIndex()
Getter method for index |
abstract int |
getValue()
Getter method for value |
void |
incrementHitCount()
Increment hit count |
void |
setEntityContext(javax.ejb.EntityContext ctx)
This required callback method sets the entity context attribute for this EntityBean |
abstract void |
setIndex(int newIndex)
Setter method for value |
abstract void |
setValue(int newValue)
Setter method for value |
void |
unsetEntityContext()
This is a required callback method. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ASContainerManagedEJBBean()
Method Detail |
---|
public abstract int getIndex()
public abstract void setIndex(int newIndex)
newIndex
- intpublic abstract int getValue()
public abstract void setValue(int newValue)
newValue
- intpublic int getHitCount()
public void incrementHitCount()
public ASContainerManagedEJBKey ejbCreate(int argIndex) throws javax.ejb.CreateException
argIndex
- int
javax.ejb.CreateException
- The exception description.public void ejbPostCreate(int index) throws javax.ejb.CreateException
javax.ejb.CreateException
public void ejbLoad()
ejbLoad
in interface javax.ejb.EntityBean
public void ejbRemove()
ejbRemove
in interface javax.ejb.EntityBean
public void ejbStore()
ejbStore
in interface javax.ejb.EntityBean
public javax.ejb.EntityContext getEntityContext()
public void setEntityContext(javax.ejb.EntityContext ctx)
setEntityContext
in interface javax.ejb.EntityBean
ctx
- javax.ejb.EntityContextpublic void unsetEntityContext()
unsetEntityContext
in interface javax.ejb.EntityBean
public void ejbActivate()
ejbActivate
in interface javax.ejb.EntityBean
public void ejbPassivate()
ejbPassivate
in interface javax.ejb.EntityBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |