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

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

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

See Also:
Serialized Form

Constructor Summary
AccInfoJBean()
          Public zero-argument constructer.
AccInfoJBean(LocalCustomer customerCMP)
          Contructor.
 
Method Summary
 CustomerJBean getAccountInfo()
          Accessor.
static java.util.Locale getCompleteLocale(java.util.Locale locale)
          Complete the supplied locale by setting its country code whenever it is unavailable.
static boolean isMyLocale(java.util.Locale locale)
          Determine whether the supplied locale is supported by this sampple.
 void setAccountInfo(CustomerJBean newAccountInfo)
          Mutator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccInfoJBean

public AccInfoJBean()
Public zero-argument constructer.


AccInfoJBean

public AccInfoJBean(LocalCustomer customerCMP)
Contructor.

Transfer Customer Entity Bean account-related fields to this AccInfoBean.

Method Detail

getAccountInfo

public CustomerJBean getAccountInfo()
Accessor.

Returns:
The account information for a Customer.

setAccountInfo

public void setAccountInfo(CustomerJBean newAccountInfo)
Mutator.

Parameters:
newAccountInfo - A com.ibm.websphere.samples.i18nctx.currencyexchangelibrary.CustomerJBean

getCompleteLocale

public static java.util.Locale getCompleteLocale(java.util.Locale locale)
Complete the supplied locale by setting its country code whenever it is unavailable.

Parameters:
locale - A java.util.Locale.
Returns:
A locale containing the language code of the supplied locale and a default country code, in the event the supplied locale lacks one.

isMyLocale

public static boolean isMyLocale(java.util.Locale locale)
Determine whether the supplied locale is supported by this sampple.

Parameters:
locale - A java.util.Locale.
Returns:
A boolean value.