|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ibm.ivj.ejb.runtime.AbstractAccessBean | +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean | +--com.ibm.commerce.taxation.objects.CountryCodeAccessBean
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.
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 |
public CountryCodeAccessBean()
Default constructor. Maps to findByPrimaryKey.
public CountryCodeAccessBean(javax.ejb.EJBObject ejbObject) throws java.rmi.RemoteException
Maps to a corresponding ejbCreate method in the home interface of the EJB
ejbObject
- javax.ejb.EJBObjectjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionMethod Detail |
public void commitCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Update(flush) data to the EJBObject (persistent storage).
commitCopyHelper
in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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 = ?))
productVendor
- java.lang.StringcountryName
- java.lang.Stringjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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 = ?)))
productVendor
- java.lang.StringlanguageId
- java.lang.IntegercountryName
- java.lang.Stringjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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 = ?)
productVendor
- java.lang.StringlanguageId
- java.lang.IntegercountryAbbr
- java.lang.Stringjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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 = ?)
productVendor
- java.lang.StringlanguageId
- java.lang.IntegercountryName
- java.lang.Stringjava.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getCountryAbbr
in interface CountryCodeAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getCountryCode
in interface CountryCodeAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
getProductVendor
in interface CountryCodeAccessBeanData
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic void refreshCopyHelper() throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Load data from the EJBObject.
refreshCopyHelper
in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.CreateException
- The javax.ejb.CreateException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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.
setCountryAbbr
in interface CountryCodeAccessBeanData
aCountryAbbr
- java.lang.Stringpublic 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.
setCountryCode
in interface CountryCodeAccessBeanData
aCountryCode
- java.lang.Stringpublic void setInitKey_strCountryAbbr(java.lang.String aInitKey_strCountryAbbr)
Set the primary key for this object
aInitKey_strCountryAbbr
- java.lang.Stringpublic void setInitKey_strProductVendor(java.lang.String aInitKey_strProductVendor)
Set the primary key for this object
aInitKey_strProductVendor
- java.lang.Stringpublic 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.
setProductVendor
in interface CountryCodeAccessBeanData
aProductVendor
- java.lang.String
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |