|
||||||||
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.CountryAccessBean
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.)
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 |
public CountryAccessBean()
Default constructor. Maps to findByPrimaryKey.
public CountryAccessBean(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 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
languageId
- The ID of the language.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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 = ?))
languageId
- The ID of the language.countryName
- The name of the country.java.rmi.RemoteException
- The java.rmi.RemoteException exceptionjavax.ejb.FinderException
- The javax.ejb.FinderException exceptionjavax.naming.NamingException
- The javax.naming.NamingException exceptionpublic 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 = ?)
languageId
- The ID of the language.countryName
- The name of the country.java.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 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.
getCountryAbbr
in interface CountryAccessBeanData
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 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.
getLanguageId
in interface CountryAccessBeanData
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.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.
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 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.
getName
in interface CountryAccessBeanData
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 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.
setCountryAbbr
in interface CountryAccessBeanData
aCountryAbbr
- java.lang.Stringpublic void setInitKey_nLanguageId(java.lang.String aInitKey_nLanguageId)
Set the primary key for this object
aInitKey_nLanguageId
- java.lang.Stringpublic void setInitKey_strCountryAbbr(java.lang.String aInitKey_strCountryAbbr)
Set the primary key for this object
aInitKey_strCountryAbbr
- java.lang.Stringpublic 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.
aLanguageId
- java.lang.Integerpublic 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.
setLanguageId
in interface CountryAccessBeanData
aLanguageId
- java.lang.Stringpublic void setName(java.lang.String aName)
Set the name of the country or region
setName
in interface CountryAccessBeanData
aName
- java.lang.String
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |