|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
org.objectweb.jonas.stests.manac.ManacEC2
Manac Implementation (with container-managed persistence version 2)
Field Summary | |
protected static org.objectweb.util.monolog.api.Logger |
logger
|
Constructor Summary | |
ManacEC2()
|
Method Summary | |
void |
credit(int v)
credit |
void |
debit(int v)
debit |
void |
ejbActivate()
A container invokes this method when the instance is taken out of the pool of available instances to become associated with a specific EJB object. |
java.lang.String |
ejbCreate(int num,
int ib)
The Entity bean can define 0 or more ejbCreate methods. |
void |
ejbLoad()
A container invokes this method to instruct the instance to synchronize its state by loading it state from the underlying database. |
void |
ejbPassivate()
A container invokes this method on an instance before the instance becomes disassociated with a specific EJB object. |
void |
ejbPostCreate(int num,
int ib)
There must be an ejbPostCreate par ejbCreate method |
void |
ejbRemove()
A container invokes this method before it removes the EJB object that is currently associated with the instance. |
void |
ejbStore()
A container invokes this method to instruct the instance to synchronize its state by storing it to the underlying database. |
abstract int |
getBalance()
|
abstract java.lang.String |
getName()
|
abstract int |
getNum()
|
abstract void |
setBalance(int b)
|
void |
setEntityContext(javax.ejb.EntityContext ctx)
Set the associated entity context. |
abstract void |
setName(java.lang.String n)
|
abstract void |
setNum(int n)
|
void |
unsetEntityContext()
Unset the associated entity context. |
Field Detail |
protected static org.objectweb.util.monolog.api.Logger logger
Constructor Detail |
public ManacEC2()
Method Detail |
public abstract java.lang.String getName()
public abstract void setName(java.lang.String n)
public abstract int getNum()
public abstract void setNum(int n)
public abstract int getBalance()
public abstract void setBalance(int b)
public void setEntityContext(javax.ejb.EntityContext ctx)
ctx
- - An EntityContext interface for the instance. The instance
should store the reference to the context in an instance variable.EJBException
- Thrown by the method to indicate a failure caused by a
system-level error.public void unsetEntityContext()
EJBException
- Thrown by the method to indicate a failure caused by a
system-level error.public void ejbRemove() throws javax.ejb.RemoveException
RemoveException
- The enterprise Bean does not allow destruction of the object.EJBException
- - Thrown by the method to indicate a failure caused by a system-level
error.public void ejbLoad()
EJBException
- Thrown by the method to indicate a failure caused by
a system-level error.public void ejbStore()
EJBException
- Thrown by the method to indicate a failure caused by
a system-level error.public void ejbPostCreate(int num, int ib) throws javax.ejb.CreateException
CreateException
- Failure to create an entity EJB object.public java.lang.String ejbCreate(int num, int ib) throws javax.ejb.CreateException, javax.ejb.DuplicateKeyException
CreateException
- Failure to create an entity EJB object.DuplicateKeyException
- An object with the same key already exists.public void ejbPassivate()
public void ejbActivate()
public void credit(int v)
public void debit(int v)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |