com.ibm.commerce.taxation.objects
Class CountryCodeAccessBean

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

public class CountryCodeAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CountryCodeAccessBeanData

This bean provides access to the COUNTCODE table.

The following is a description of this table:

Each row of this table maps the country or region abbreviation code representing a country or region to a numeric code. The mapping is dictated by the third-party product or vendor identified by the string in the PRODUCTVENDOR column.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
CountryCodeAccessBean()
          Default constructor.
CountryCodeAccessBean(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 findByProductVendorAndCountryName(java.lang.String productVendor, java.lang.String countryName)
          Retrieves all the country codes in the specified country name and language under the indicated product vendor.
 java.util.Enumeration findByProductVendorLanguageIdAndCountry(java.lang.String productVendor, java.lang.Integer languageId, java.lang.String countryName)
          Retrieves all the country codes in the specified country name and language under the indicated product vendor.
 java.util.Enumeration findByProductVendorLanguageIdAndCountryAbbr(java.lang.String productVendor, java.lang.Integer languageId, java.lang.String countryAbbr)
          Retrieves all the country codes in the specified country name and language under the indicated product vendor.
 java.util.Enumeration findByProductVendorLanguageIdAndCountryName(java.lang.String productVendor, java.lang.Integer languageId, java.lang.String countryName)
          Retrieves all the country codes in the specified country name and language under the indicated product vendor.
 java.lang.String getCountryAbbr()
          This method provides access to the COUNTCODE.COUNTRYABBR column of DB2 type CHAR(5) NOT NULL.
 java.lang.String getCountryCode()
          This method provides access to the COUNTCODE.COUNTRYCODE column of DB2 type CHAR(5) NULL.
 java.lang.String getProductVendor()
          This method provides access to the COUNTCODE.PRODUCTVENDOR column of DB2 type VARCHAR(64) NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCountryAbbr(java.lang.String aCountryAbbr)
          This method provides access to the COUNTCODE.COUNTRYABBR column of DB2 type CHAR(5) NOT NULL.
 void setCountryCode(java.lang.String aCountryCode)
          This method provides access to the COUNTCODE.COUNTRYCODE column of DB2 type CHAR(5) NULL.
 void setInitKey_strCountryAbbr(java.lang.String aInitKey_strCountryAbbr)
          Set the primary key for this object
 void setInitKey_strProductVendor(java.lang.String aInitKey_strProductVendor)
          Set the primary key for this object
 void setProductVendor(java.lang.String aProductVendor)
          This method provides access to the COUNTCODE.PRODUCTVENDOR column of DB2 type VARCHAR(64) NOT NULL.
 
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

CountryCodeAccessBean

public CountryCodeAccessBean()

Default constructor. Maps to findByPrimaryKey.


CountryCodeAccessBean

public CountryCodeAccessBean(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

findByProductVendorAndCountryName

public java.util.Enumeration findByProductVendorAndCountryName(java.lang.String productVendor,
                                                               java.lang.String countryName)
                                                        throws java.rmi.RemoteException,
                                                               javax.ejb.FinderException,
                                                               javax.naming.NamingException

Retrieves all the country codes in the specified country name and language under the indicated product vendor.

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

SELECT * FROM COUNTRYCODE T1 WHERE (T1.PRODUCTVENDOR = ? AND T1.COUNTRYABBR = ANY (SELECT COUNTRY.COUNTRYABBR FROM COUNTRY WHERE COUNTRY.NAME = ?))

Parameters:
productVendor - java.lang.String
countryName - java.lang.String
Returns:
Enumeration of all the CountryCodeAccessBeans 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

findByProductVendorLanguageIdAndCountry

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

Retrieves all the country codes in the specified country name and language under the indicated product vendor.

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

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

Parameters:
productVendor - java.lang.String
languageId - java.lang.Integer
countryName - java.lang.String
Returns:
Enumeration of all the CountryCodeAccessBeans 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

findByProductVendorLanguageIdAndCountryAbbr

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

Retrieves all the country codes in the specified country name and language under the indicated product vendor.

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

SELECT * FROM COUNTRYCODE T1 WHERE T1.PRODUCTVENDOR = ? AND T1.COUNTRYABBR = ANY (SELECT COUNTRY.COUNTRYABBR FROM COUNTRY WHERE COUNTRY.LANGUAGE_ID = ? AND COUNTRY.COUNTRYABBR = ?)

Parameters:
productVendor - java.lang.String
languageId - java.lang.Integer
countryAbbr - java.lang.String
Returns:
Enumeration of all the CountryCodeAccessBeans 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

findByProductVendorLanguageIdAndCountryName

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

Retrieves all the country codes in the specified country name and language under the indicated product vendor.

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

SELECT * FROM COUNTRYCODE T1 WHERE T1.PRODUCTVENDOR = ? AND T1.COUNTRYABBR = ANY (SELECT COUNTRY.COUNTRYABBR FROM COUNTRY WHERE COUNTRY.LANGUAGE_ID = ? AND COUNTRY.NAME = ?)

Parameters:
productVendor - java.lang.String
languageId - java.lang.Integer
countryName - java.lang.String
Returns:
Enumeration of all the CountryCodeAccessBeans 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 COUNTCODE.COUNTRYABBR column of DB2 type CHAR(5) NOT NULL.

The following is a description of this column:

Country or region abbreviation code for the country or region. The name of the country or region are stored in the COUNTRY table.

Specified by:
getCountryAbbr in interface CountryCodeAccessBeanData
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

getCountryCode

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

This method provides access to the COUNTCODE.COUNTRYCODE column of DB2 type CHAR(5) NULL.

The following is a description of this column:

The internal country or region code for the specified country or region assigned by the third party product or vendor.

Specified by:
getCountryCode in interface CountryCodeAccessBeanData
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

getProductVendor

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

This method provides access to the COUNTCODE.PRODUCTVENDOR column of DB2 type VARCHAR(64) NOT NULL.

The following is a description of this column:

String that identifies the third-party product or vendor using this country code for the country or region identified by this country or region abbreviation code.

Specified by:
getProductVendor in interface CountryCodeAccessBeanData
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 COUNTCODE.COUNTRYABBR column of DB2 type CHAR(5) NOT NULL.

The following is a description of this column:

Country or region abbreviation code for the country or region. The name of the country or region are stored in the COUNTRY table.

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

setCountryCode

public void setCountryCode(java.lang.String aCountryCode)

This method provides access to the COUNTCODE.COUNTRYCODE column of DB2 type CHAR(5) NULL.

The following is a description of this column:

The internal country or region code for the specified country or region assigned by the third party product or vendor.

Specified by:
setCountryCode in interface CountryCodeAccessBeanData
Parameters:
aCountryCode - 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

setInitKey_strProductVendor

public void setInitKey_strProductVendor(java.lang.String aInitKey_strProductVendor)

Set the primary key for this object

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

setProductVendor

public void setProductVendor(java.lang.String aProductVendor)

This method provides access to the COUNTCODE.PRODUCTVENDOR column of DB2 type VARCHAR(64) NOT NULL.

The following is a description of this column:

String that identifies the third-party product or vendor using this country code for the country or region identified by this country or region abbreviation code.

Specified by:
setProductVendor in interface CountryCodeAccessBeanData
Parameters:
aProductVendor - java.lang.String
Returns:
void