com.ibm.commerce.taxation.objects
Class CountryCodeAccessBean

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

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

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

Constructor Summary
CountryCodeAccessBean()
          constructor
CountryCodeAccessBean(javax.ejb.EJBObject o)
          constructor
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
protected  java.lang.String defaultJNDIName()
           
 java.util.Enumeration findByProductVendorAndCountryName(java.lang.String arg0, java.lang.String arg1)
          Retrieves all the country codes in the specified country name and language under the indicated product vendor.
 java.util.Enumeration findByProductVendorLanguageIdAndCountry(java.lang.String arg0, java.lang.Integer arg1, java.lang.String arg2)
          Retrieves all the country codes in the specified country name and language under the indicated product vendor.
 java.util.Enumeration findByProductVendorLanguageIdAndCountryAbbr(java.lang.String arg0, java.lang.Integer arg1, java.lang.String arg2)
          Retrieves all the country codes in the specified country name and language under the indicated product vendor.
 java.util.Enumeration findByProductVendorLanguageIdAndCountryName(java.lang.String arg0, java.lang.Integer arg1, java.lang.String arg2)
          Retrieves all the country codes in the specified country name and language under the indicated product vendor.
 java.lang.String getCountryAbbr()
          This method accesses a non-CMP field
 java.lang.String getCountryCode()
          This method accesses a non-CMP field
 java.lang.String getProductVendor()
          This method accesses a non-CMP field
protected  void instantiateEJB()
           
protected  boolean instantiateEJBByPrimaryKey()
           
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCountryAbbr(java.lang.String newValue)
          This method accesses a non-CMP field
 void setCountryCode(java.lang.String newValue)
          This method accesses a non-CMP field
 void setInitKey_strCountryAbbr(java.lang.String newValue)
          Set the primary key for this object
 void setInitKey_strProductVendor(java.lang.String newValue)
          Set the primary key for this object
 void setProductVendor(java.lang.String newValue)
          This method accesses a non-CMP field
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CountryCodeAccessBean

public CountryCodeAccessBean()
constructor

CountryCodeAccessBean

public CountryCodeAccessBean(javax.ejb.EJBObject o)
                      throws java.rmi.RemoteException
constructor
Parameters:
o - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException
Method Detail

findByProductVendorAndCountryName

public java.util.Enumeration findByProductVendorAndCountryName(java.lang.String arg0,
                                                               java.lang.String arg1)
                                                        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 = ?))

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

findByProductVendorLanguageIdAndCountry

public java.util.Enumeration findByProductVendorLanguageIdAndCountry(java.lang.String arg0,
                                                                     java.lang.Integer arg1,
                                                                     java.lang.String arg2)
                                                              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 = ?)))

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

findByProductVendorLanguageIdAndCountryAbbr

public java.util.Enumeration findByProductVendorLanguageIdAndCountryAbbr(java.lang.String arg0,
                                                                         java.lang.Integer arg1,
                                                                         java.lang.String arg2)
                                                                  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 = ?)

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

findByProductVendorLanguageIdAndCountryName

public java.util.Enumeration findByProductVendorLanguageIdAndCountryName(java.lang.String arg0,
                                                                         java.lang.Integer arg1,
                                                                         java.lang.String arg2)
                                                                  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 = ?)

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

setInitKey_strCountryAbbr

public void setInitKey_strCountryAbbr(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_strProductVendor

public void setInitKey_strProductVendor(java.lang.String newValue)

Set the primary key for this object

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

defaultJNDIName

protected java.lang.String defaultJNDIName()
Returns:
String

instantiateEJB

protected void instantiateEJB()
                       throws java.rmi.RemoteException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException
Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

instantiateEJBByPrimaryKey

protected boolean instantiateEJBByPrimaryKey()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.naming.NamingException
Returns:
boolean
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.naming.NamingException

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).

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

refreshCopyHelper

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

Load data from the EJBObject.

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getCountryCode

public java.lang.String getCountryCode()
                                throws java.rmi.RemoteException,
                                       javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getCountryCode in interface CountryCodeAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCountryCode

public void setCountryCode(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setCountryCode in interface CountryCodeAccessBeanData

getCountryAbbr

public java.lang.String getCountryAbbr()
                                throws java.rmi.RemoteException,
                                       javax.ejb.CreateException,
                                       javax.ejb.FinderException,
                                       javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getCountryAbbr in interface CountryCodeAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCountryAbbr

public void setCountryAbbr(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setCountryAbbr in interface CountryCodeAccessBeanData

getProductVendor

public java.lang.String getProductVendor()
                                  throws java.rmi.RemoteException,
                                         javax.ejb.CreateException,
                                         javax.ejb.FinderException,
                                         javax.naming.NamingException
This method accesses a non-CMP field
Specified by:
getProductVendor in interface CountryCodeAccessBeanData
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setProductVendor

public void setProductVendor(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setProductVendor in interface CountryCodeAccessBeanData