com.ibm.websphere.samples.i18nctx.currencyexchangelibrary
Class CustomerJBean

java.lang.Object
  extended by com.ibm.websphere.samples.i18nctx.currencyexchangelibrary.CustomerJBean
All Implemented Interfaces:
java.io.Serializable

public class CustomerJBean
extends java.lang.Object
implements java.io.Serializable

Class CustomerJBean is a cache of Customer Entity Bean fields that other application components may access without invoking remote calls via a Customer Entity Bean instance.

See Also:
Serialized Form

Constructor Summary
CustomerJBean()
          Public zero-argument constructor.
 
Method Summary
 java.lang.String getAccount()
          Accessor.
 double getBalance()
          Get the Customer balance.
 java.lang.String getName()
          Accessor.
 java.lang.String getPassword()
          Get the Customer password
 void setAccount(java.lang.String account)
          Accessor.
 void setBalance(double balance)
          Accessor.
 void setName(java.lang.String name)
          Accessor.
 void setPassword(java.lang.String password)
          Accessor.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomerJBean

public CustomerJBean()
Public zero-argument constructor.

Method Detail

getAccount

public java.lang.String getAccount()
Accessor.

Returns:
the Customer account number.

getName

public java.lang.String getName()
Accessor.

Returns:
the name of this customer.

getBalance

public double getBalance()
Get the Customer balance.

Returns:
A double value.

getPassword

public java.lang.String getPassword()
Get the Customer password

Returns:
String, java.lang.String

setAccount

public void setAccount(java.lang.String account)
Accessor.

Set the Customer account number.

Parameters:
account - java.lang.String

setName

public void setName(java.lang.String name)
Accessor.

Set the Customer name to that supplied.

Parameters:
name - java.lang.String

setBalance

public void setBalance(double balance)
Accessor.

Set the balance to that supplied.

Parameters:
balance - double

setPassword

public void setPassword(java.lang.String password)
Accessor.

Set the password to that supplied.

Parameters:
password - java.lang.String