org.jboss.test.banknew.ejb
Class TellerSessionBean

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.TellerSessionBean
All Implemented Interfaces:
EnterpriseBean (src) , java.io.Serializable, SessionBean (src)

public class TellerSessionBean
extends SessionSupport (src)

The Session bean represents a bank.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.jboss.test.util.ejb.SessionSupport (src)
log, sessionCtx
 
Constructor Summary
TellerSessionBean()
           
 
Method Summary
 AccountData createAccount(java.lang.String pCustomerId, int pType, float pInitialDeposit)
           
 CustomerData createCustomer(java.lang.String pBankId, java.lang.String pName, float pInitialDeposit)
           
 void deposit(java.lang.String pToAccountId, float pAmount)
           
 AccountData getAccount(java.lang.String pAccountId)
           
 AccountData getAccount(java.lang.String pCustomerId, int pType)
           
 java.util.Collection getAccounts(java.lang.String pCustomerId)
           
 CustomerData getCustomer(java.lang.String pCustomerId)
           
 java.util.Collection getCustomers(java.lang.String pBankId)
           
 void removeAccount(java.lang.String pAccountId)
           
 void removeAccount(java.lang.String pCustomerId, int pType)
           
 void removeCustomer(java.lang.String pCustomerId)
           
 void transfer(java.lang.String pFromAccountId, java.lang.String pToAccountId, float pAmount)
           
 void withdraw(java.lang.String pFromAccountId, float pAmount)
           
 
Methods inherited from class org.jboss.test.util.ejb.SessionSupport (src)
ejbActivate, ejbCreate, ejbPassivate, ejbRemove, setSessionContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TellerSessionBean

public TellerSessionBean()
Method Detail

deposit

public void deposit(java.lang.String pToAccountId,
                    float pAmount)
             throws BankException (src) 
Throws:
BankException (src)

transfer

public void transfer(java.lang.String pFromAccountId,
                     java.lang.String pToAccountId,
                     float pAmount)
              throws BankException (src) 
Throws:
BankException (src)

withdraw

public void withdraw(java.lang.String pFromAccountId,
                     float pAmount)
              throws BankException (src) 
Throws:
BankException (src)

createAccount

public AccountData createAccount(java.lang.String pCustomerId,
                                 int pType,
                                 float pInitialDeposit)
                          throws BankException (src) 
Throws:
BankException (src)

removeAccount

public void removeAccount(java.lang.String pAccountId)
                   throws BankException (src) 
Throws:
BankException (src)

removeAccount

public void removeAccount(java.lang.String pCustomerId,
                          int pType)
                   throws BankException (src) 
Throws:
BankException (src)

getAccounts

public java.util.Collection getAccounts(java.lang.String pCustomerId)
                                 throws BankException (src) 
Throws:
BankException (src)

getAccount

public AccountData getAccount(java.lang.String pCustomerId,
                              int pType)
                       throws BankException (src) 
Throws:
BankException (src)

getAccount

public AccountData getAccount(java.lang.String pAccountId)
                       throws BankException (src) 
Throws:
BankException (src)

createCustomer

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

removeCustomer

public void removeCustomer(java.lang.String pCustomerId)
                    throws BankException (src) 
Throws:
BankException (src)

getCustomer

public CustomerData getCustomer(java.lang.String pCustomerId)
                         throws BankException (src) 
Throws:
BankException (src)

getCustomers

public java.util.Collection getCustomers(java.lang.String pBankId)
                                  throws BankException (src) 
Throws:
BankException (src)