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

Field Summary
protected  javax.ejb.EntityContext entityContext
           
 
Constructor Summary
AccountEC2()
           
 
Method Summary
 void doFailedEjbStore_1()
           
 void doFailedEjbStore_2()
           
 void doFailedEjbStore_3()
           
 void ejbActivate()
           
 AccountPK ejbCreate(boolean flag)
          this method is common for impl and expl bean NotSupported attr.
 AccountPK ejbCreate(int flag)
          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)
 AccountPK ejbCreate(int val_number, java.lang.String val_customer, long val_balance)
           
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate(boolean flag)
           
 void ejbPostCreate(int flag)
           
 void ejbPostCreate(int val_number, java.lang.String val_customer, long val_balance)
           
 void ejbRemove()
          This method is common for impl and expl bean it is used to test exception raised in ejbRemove() with unspecified transactional context (Required attribute).
 void ejbStore()
           
abstract  long getBalance()
           
 javax.ejb.EJBContext getContext()
           
abstract  java.lang.String getCustomer()
           
abstract  int getNumber()
           
abstract  void setBalance(long d)
           
abstract  void setCustomer(java.lang.String c)
           
 void setEntityContext(javax.ejb.EntityContext ctx)
           
abstract  void setNumber(int n)
           
 void unsetEntityContext()
           
 

Field Detail

entityContext

protected javax.ejb.EntityContext entityContext
Constructor Detail

AccountEC2

public AccountEC2()
Method Detail

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()