org.jboss.test.banknew.ejb
Class BankSessionBean

java.lang.Object
  extended byorg.jboss.test.util.ejb.EnterpriseSupport (src) 
      extended byorg.jboss.test.util.ejb.SessionSupport (src) 
          extended byorg.jboss.test.banknew.ejb.BankSessionBean
All Implemented Interfaces:
EnterpriseBean (src) , java.io.Serializable, SessionBean (src)

public class BankSessionBean
extends SessionSupport (src)

The Session bean represents a bank's business interface.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.test.util.ejb.SessionSupport (src)
log, sessionCtx
 
Constructor Summary
BankSessionBean()
           
 
Method Summary
 BankData createBank(java.lang.String pName, java.lang.String pAddress)
           
 CustomerData createCustomer(java.lang.String pBankId, java.lang.String pName, float pInitialDeposit)
           
 java.util.Collection getBanks()
           
 CustomerData getCustomer(java.lang.String pCustomerId)
           
 java.util.Collection getCustomers(java.lang.String pBankId)
           
 void removeBank(java.lang.String pBankId)
           
 void removeCustomer(java.lang.String pCustomerId)
           
 void setSessionContext(SessionContext (src)  context)
          Set the associated session context.
 
Methods inherited from class org.jboss.test.util.ejb.SessionSupport (src)
ejbActivate, ejbCreate, ejbPassivate, ejbRemove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BankSessionBean

public BankSessionBean()
Method Detail

createBank

public BankData createBank(java.lang.String pName,
                           java.lang.String pAddress)
                    throws CreateException (src) ,
                           java.rmi.RemoteException
Throws:
CreateException (src)
java.rmi.RemoteException

removeBank

public void removeBank(java.lang.String pBankId)
                throws RemoveException (src) ,
                       java.rmi.RemoteException
Throws:
RemoveException (src)
java.rmi.RemoteException

getBanks

public java.util.Collection getBanks()
                              throws FinderException (src) ,
                                     java.rmi.RemoteException
Throws:
FinderException (src)
java.rmi.RemoteException

getCustomer

public CustomerData getCustomer(java.lang.String pCustomerId)
                         throws FinderException (src) ,
                                java.rmi.RemoteException
Throws:
FinderException (src)
java.rmi.RemoteException

getCustomers

public java.util.Collection getCustomers(java.lang.String pBankId)
                                  throws FinderException (src) ,
                                         java.rmi.RemoteException
Throws:
FinderException (src)
java.rmi.RemoteException

createCustomer

public CustomerData createCustomer(java.lang.String pBankId,
                                   java.lang.String pName,
                                   float pInitialDeposit)
                            throws CreateException (src) ,
                                   java.rmi.RemoteException
Throws:
CreateException (src)
java.rmi.RemoteException

removeCustomer

public void removeCustomer(java.lang.String pCustomerId)
                    throws RemoveException (src) ,
                           java.rmi.RemoteException
Throws:
RemoveException (src)
java.rmi.RemoteException

setSessionContext

public void setSessionContext(SessionContext (src)  context)
Description copied from interface: SessionBean (src)

Set the associated session context. The container calls this method after the instance creation.

The enterprise Bean instance should store the reference to the context object in an instance variable.

This method is called with no transaction context.

Specified by:
setSessionContext in interface SessionBean (src)
Overrides:
setSessionContext in class SessionSupport (src)