org.objectweb.jonas.jtests.beans.beanexc
Class AccountEB

org.objectweb.jonas.jtests.beans.beanexc.AccountEB

public class AccountEB

This is an entity bean with "bean managed persistence". The state of an instance is stored into a relational database. The table must exist.

Author:
Philippe Durieux, Philippe Coq

Constructor Summary
AccountEB()
           
 
Method Summary
 AccountPK ejbCreate(boolean flag)
           
 AccountPK ejbCreate(int flag)
          creer une instance bidon le flag sert pour savoir quelle exception lever
 AccountPK ejbCreate(int val_number, java.lang.String val_customer, long val_balance)
           
 java.util.Enumeration ejbFindAllAccounts()
           
 java.util.Enumeration ejbFindBigAccounts(long minBalance)
           
 AccountPK ejbFindByNoAccount(int number)
           
 AccountPK ejbFindByPrimaryKey(AccountPK pk)
           
 java.util.Enumeration ejbFindCustomerAccounts(java.lang.String name)
           
 void ejbLoad()
           
 void ejbPostCreate(int val_number, java.lang.String val_customer, long val_balance)
           
 void ejbRemove()
           
 void ejbStore()
           
 

Constructor Detail

AccountEB

public AccountEB()
Method Detail

ejbLoad

public void ejbLoad()

ejbStore

public void ejbStore()

ejbRemove

public void ejbRemove()
               throws javax.ejb.RemoveException

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
creer une instance bidon le flag sert pour savoir quelle exception lever

ejbCreate

public AccountPK ejbCreate(boolean flag)
                    throws javax.ejb.CreateException,
                           AppException

ejbPostCreate

public void ejbPostCreate(int val_number,
                          java.lang.String val_customer,
                          long val_balance)

ejbFindByPrimaryKey

public AccountPK ejbFindByPrimaryKey(AccountPK pk)
                              throws javax.ejb.ObjectNotFoundException,
                                     javax.ejb.FinderException

ejbFindByNoAccount

public AccountPK ejbFindByNoAccount(int number)
                             throws javax.ejb.ObjectNotFoundException,
                                    javax.ejb.FinderException

ejbFindCustomerAccounts

public java.util.Enumeration ejbFindCustomerAccounts(java.lang.String name)
                                              throws javax.ejb.FinderException

ejbFindBigAccounts

public java.util.Enumeration ejbFindBigAccounts(long minBalance)
                                         throws javax.ejb.FinderException

ejbFindAllAccounts

public java.util.Enumeration ejbFindAllAccounts()
                                         throws javax.ejb.FinderException