org.objectweb.jonas.jtests.beans.beanexc
Class AccountEC2
org.objectweb.jonas.jtests.beans.beanexc.AccountEC2
- public abstract class AccountEC2
This is an entity bean with "container managed persistence version 2".
The state of an instance is stored into a relational database.
- Author:
- Philippe Durieux, Philippe Coq, Helene Joanin
entityContext
protected javax.ejb.EntityContext entityContext
AccountEC2
public AccountEC2()
getNumber
public abstract int getNumber()
setNumber
public abstract void setNumber(int n)
getBalance
public abstract long getBalance()
setBalance
public abstract void setBalance(long d)
getCustomer
public abstract java.lang.String getCustomer()
setCustomer
public abstract void setCustomer(java.lang.String c)
getContext
public javax.ejb.EJBContext getContext()
ejbActivate
public void ejbActivate()
ejbPassivate
public void ejbPassivate()
ejbLoad
public void ejbLoad()
ejbStore
public void ejbStore()
ejbRemove
public void ejbRemove()
throws javax.ejb.RemoveException
- This method is common for impl and expl bean
it is used to test exception raised in ejbRemove()
with unspecified transactional context (Required attribute).
This method throws a RemoveException when the value of the PK is between 999990 and 999999
setEntityContext
public void setEntityContext(javax.ejb.EntityContext ctx)
unsetEntityContext
public void unsetEntityContext()
ejbCreate
public AccountPK ejbCreate(int val_number,
java.lang.String val_customer,
long val_balance)
throws javax.ejb.CreateException
ejbCreate
public AccountPK ejbCreate(int flag)
throws javax.ejb.CreateException,
AppException
- this method is common for impl and expl bean
it is used to test exception raised in ejbCreate
with unspecified transactional context (Required attribute)
CAUTION: Do not call ejbCreate inside another ejbCreate (known bug)
ejbCreate
public AccountPK ejbCreate(boolean flag)
throws javax.ejb.CreateException,
AppException
- this method is common for impl and expl bean
NotSupported attr.
CAUTION: Do not call ejbCreate inside another ejbCreate (known bug)
ejbPostCreate
public void ejbPostCreate(int val_number,
java.lang.String val_customer,
long val_balance)
ejbPostCreate
public void ejbPostCreate(int flag)
ejbPostCreate
public void ejbPostCreate(boolean flag)
doFailedEjbStore_1
public void doFailedEjbStore_1()
doFailedEjbStore_2
public void doFailedEjbStore_2()
doFailedEjbStore_3
public void doFailedEjbStore_3()