com.bankframe.examples.bo.account
Class AccountBean

java.lang.Object
  extended by com.bankframe.examples.bo.account.AccountBean
Direct Known Subclasses:
AccountBean

public class AccountBean
extends Object

This class defines the attributes of the Account Entity and the accessor methods for those attributes.


Field Summary
 String accountName
           
 String accountNumber
           
 String cardNumber
           
 
Constructor Summary
AccountBean()
          Default Constructor.
 
Method Summary
 void amend(String accountName)
          This method amends the attributes of the Account entity.
 void create(String cardNumber, String accountNumber, String accountName)
          This method initialises a new instance of the Account entity.
 String getAccountName()
          This method returns the accountName attribute.
 String getAccountNumber()
          This method returns the accountNumber attribute.
 String getCardNumber()
          This method returns the cardNumber attribute.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cardNumber

public String cardNumber

accountNumber

public String accountNumber

accountName

public String accountName
Constructor Detail

AccountBean

public AccountBean()
Default Constructor.

Method Detail

amend

public void amend(String accountName)
           throws ValidationException
This method amends the attributes of the Account entity.

Parameters:
accountName -
Throws:
ValidationException

create

public void create(String cardNumber,
                   String accountNumber,
                   String accountName)
            throws ValidationException
This method initialises a new instance of the Account entity.

Parameters:
cardNumber -
accountNumber -
accountName -
Throws:
ValidationException

getAccountName

public String getAccountName()
This method returns the accountName attribute.

Returns:
the value of the account Name

getAccountNumber

public String getAccountNumber()
This method returns the accountNumber attribute.

Returns:
The value of the account number

getCardNumber

public String getCardNumber()
This method returns the cardNumber attribute.

Returns:
the value of the card number


Copyright © 2005, 2007, Oracle. All rights reserved.