com.ibm.commerce.taxation.objects
Class CountryAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.taxation.objects.CountryAccessBean
All Implemented Interfaces:
CountryAccessBeanData, java.io.Serializable

public class CountryAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CountryAccessBeanData

This bean provides access to the COUNTRY table.

The following is a description of this table:

This table lists the country or region names in each of the supported languages identified by LANGUAGE_ID. (Note that some of the entries may store the region name rather than the official country name in the NAME column for historical reasons.)

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
CountryAccessBean()
          Default constructor.
CountryAccessBean(javax.ejb.EJBObject ejbObject)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByLanguageId(java.lang.Integer languageId)
          Retrieves all the country names and abbreviations in the specified language.
 java.util.Enumeration findByLanguageIdAndCountry(java.lang.Integer languageId, java.lang.String countryName)
          Retrieves all the country names and abbreviations in the specified language.
 java.util.Enumeration findByLanguageIdAndCountryName(java.lang.Integer languageId, java.lang.String countryName)
          Retrieves all the country names and abbreviations in the specified language and country name.
 java.lang.String getCountryAbbr()
          This method provides access to the COUNTRY.COUNTRYABBR column of DB2 type CHAR(5) NOT NULL.
 java.lang.String getLanguageId()
          This method provides access to the COUNTRY.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getLanguageIdInEJBType()
          This method provides access to the COUNTRY.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.String getName()
          This method provides access to the COUNTRY.NAME column of DB2 type VARCHAR(254) NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCountryAbbr(java.lang.String aCountryAbbr)
          This method provides access to the COUNTRY.COUNTRYABBR column of DB2 type CHAR(5) NOT NULL.
 void setInitKey_nLanguageId(java.lang.String aInitKey_nLanguageId)
          Set the primary key for this object
 void setInitKey_strCountryAbbr(java.lang.String aInitKey_strCountryAbbr)
          Set the primary key for this object
 void setLanguageId(java.lang.Integer aLanguageId)
          This method provides access to the COUNTRY.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 void setLanguageId(java.lang.String aLanguageId)
          This method provides access to the COUNTRY.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 void setName(java.lang.String aName)
          Set the name of the country or region
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountryAccessBean

public CountryAccessBean()

Default constructor. Maps to findByPrimaryKey.


CountryAccessBean

public CountryAccessBean(javax.ejb.EJBObject ejbObject)
                  throws java.rmi.RemoteException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
ejbObject - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
Method Detail

commitCopyHelper

public void commitCopyHelper()
                      throws java.rmi.RemoteException,
                             javax.ejb.CreateException,
                             javax.ejb.FinderException,
                             javax.naming.NamingException

Update(flush) data to the EJBObject (persistent storage).

Overrides:
commitCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByLanguageId

public java.util.Enumeration findByLanguageId(java.lang.Integer languageId)
                                       throws java.rmi.RemoteException,
                                              javax.ejb.FinderException,
                                              javax.naming.NamingException

Retrieves all the country names and abbreviations in the specified language.

The SQL query used to fetch all the required rows from the COUNTRY table is:

SELECT * FROM COUNTRY T1 WHERE (T1.LANGUAGE_ID = ?) ORDER BY T1.NAME

Parameters:
languageId - The ID of the language.
Returns:
Enumeration of all the CountryAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByLanguageIdAndCountry

public java.util.Enumeration findByLanguageIdAndCountry(java.lang.Integer languageId,
                                                        java.lang.String countryName)
                                                 throws java.rmi.RemoteException,
                                                        javax.ejb.FinderException,
                                                        javax.naming.NamingException

Retrieves all the country names and abbreviations in the specified language.

The SQL query used to fetch all the required rows from the COUNTRY table is:

SELECT * FROM COUNTRY T1 WHERE (LANGUAGE_ID = ?) AND ((NAME = ?) OR (COUNTRYABBR = ?))

Parameters:
languageId - The ID of the language.
countryName - The name of the country.
Returns:
Enumeration of all the CountryAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByLanguageIdAndCountryName

public java.util.Enumeration findByLanguageIdAndCountryName(java.lang.Integer languageId,
                                                            java.lang.String countryName)
                                                     throws java.rmi.RemoteException,
                                                            javax.ejb.FinderException,
                                                            javax.naming.NamingException

Retrieves all the country names and abbreviations in the specified language and country name.

The SQL query used to fetch all the required rows from the COUNTRY table is:

SELECT * FROM COUNTRY T1 WHERE (T1.LANGUAGE_ID = ?) and (T1.NAME = ?)

Parameters:
languageId - The ID of the language.
countryName - The name of the country.
Returns:
Enumeration of all the CountryAccessBeans representing rows that match the search criteria.
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getCountryAbbr

public java.lang.String getCountryAbbr()
                                throws java.rmi.RemoteException,
                                       javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException

This method provides access to the COUNTRY.COUNTRYABBR column of DB2 type CHAR(5) NOT NULL.

The following is a description of this column:

Country or region abbreviation code. This code is derived from the ISO-3166 Alpha-2 codes. For countries or regions with multiple commonly used names a number or letter may be appended to the ISO-3166 alpha-2 code to form the abbreviation code.

Specified by:
getCountryAbbr in interface CountryAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getLanguageId

public java.lang.String getLanguageId()
                               throws java.rmi.RemoteException,
                                      javax.ejb.CreateException,
                                      javax.ejb.FinderException,
                                      javax.naming.NamingException

This method provides access to the COUNTRY.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language of the value in the NAME column. For a list of language components, see the LANGUAGE table.

Specified by:
getLanguageId in interface CountryAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getLanguageIdInEJBType

public java.lang.Integer getLanguageIdInEJBType()
                                         throws java.rmi.RemoteException,
                                                javax.ejb.CreateException,
                                                javax.ejb.FinderException,
                                                javax.naming.NamingException

This method provides access to the COUNTRY.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language of the value in the NAME column. For a list of language components, see the LANGUAGE table.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getName

public java.lang.String getName()
                         throws java.rmi.RemoteException,
                                javax.ejb.CreateException,
                                javax.ejb.FinderException,
                                javax.naming.NamingException

This method provides access to the COUNTRY.NAME column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

Name of the country or region in the language identified by LANGUAGE_ID.

Specified by:
getName in interface CountryAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Load data from the EJBObject.

Overrides:
refreshCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setCountryAbbr

public void setCountryAbbr(java.lang.String aCountryAbbr)

This method provides access to the COUNTRY.COUNTRYABBR column of DB2 type CHAR(5) NOT NULL.

The following is a description of this column:

Country or region abbreviation code. This code is derived from the ISO-3166 Alpha-2 codes. For countries or regions with multiple commonly used names a number or letter may be appended to the ISO-3166 alpha-2 code to form the abbreviation code.

Specified by:
setCountryAbbr in interface CountryAccessBeanData
Parameters:
aCountryAbbr - java.lang.String
Returns:
void

setInitKey_nLanguageId

public void setInitKey_nLanguageId(java.lang.String aInitKey_nLanguageId)

Set the primary key for this object

Parameters:
aInitKey_nLanguageId - java.lang.String
Returns:
void

setInitKey_strCountryAbbr

public void setInitKey_strCountryAbbr(java.lang.String aInitKey_strCountryAbbr)

Set the primary key for this object

Parameters:
aInitKey_strCountryAbbr - java.lang.String
Returns:
void

setLanguageId

public void setLanguageId(java.lang.Integer aLanguageId)

This method provides access to the COUNTRY.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language of the value in the NAME column. For a list of language components, see the LANGUAGE table.

Parameters:
aLanguageId - java.lang.Integer
Returns:
void

setLanguageId

public void setLanguageId(java.lang.String aLanguageId)

This method provides access to the COUNTRY.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The language of the value in the NAME column. For a list of language components, see the LANGUAGE table.

Specified by:
setLanguageId in interface CountryAccessBeanData
Parameters:
aLanguageId - java.lang.String
Returns:
void

setName

public void setName(java.lang.String aName)

Set the name of the country or region

Specified by:
setName in interface CountryAccessBeanData
Parameters:
aName - java.lang.String
Returns:
void