com.ibm.commerce.taxation.objects
Class CountryAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.taxation.objects.CountryAccessBean
All Implemented Interfaces:
CountryAccessBeanData

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

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.) This access bean corresponds to the database table 'COUNTRY'.

See Also:
Serialized Form

Constructor Summary
CountryAccessBean()
Default constructor.
CountryAccessBean(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 findByLanguageId(java.lang.Integer aLanguageId)
Retrieves all the country names and abbreviations in the specified language.
java.util.Enumeration findByLanguageIdAndCountry(java.lang.Integer aLanguageId, java.lang.String aCountryName)
Retrieves all the country names and abbreviations in the specified language.
java.util.Enumeration findByLanguageIdAndCountryName(java.lang.Integer aLanguageId, java.lang.String aCountryName)
Retrieves all the country names and abbreviations in the specified language and country name.
java.lang.String getCountryAbbr()
This method accesses a non-CMP field
java.lang.String getLanguageId()
This method accesses a non-CMP field
java.lang.Integer getLanguageIdInEJBType()
This method accesses a non-CMP field
java.lang.String getName()
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 setInitKey_nLanguageId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_strCountryAbbr(java.lang.String newValue)
Set the primary key for this object
void setLanguageId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setLanguageId(java.lang.String newValue)
This method accesses a non-CMP field
void setName(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

CountryAccessBean

public CountryAccessBean()

Default constructor. Maps to findByPrimaryKey.


CountryAccessBean

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

findByLanguageId

public java.util.Enumeration findByLanguageId(java.lang.Integer aLanguageId)
                                       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:
aLanguageId - 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

findByLanguageIdAndCountry

public java.util.Enumeration findByLanguageIdAndCountry(java.lang.Integer aLanguageId,
                                                        java.lang.String aCountryName)
                                                 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:
aLanguageId - The ID of the language.
aCountryName - 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

findByLanguageIdAndCountryName

public java.util.Enumeration findByLanguageIdAndCountryName(java.lang.Integer aLanguageId,
                                                            java.lang.String aCountryName)
                                                     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:
aLanguageId - The ID of the language.
aCountryName - 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

setInitKey_nLanguageId

public void setInitKey_nLanguageId(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_strCountryAbbr

public void setInitKey_strCountryAbbr(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

getLanguageId

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

getLanguageIdInEJBType

public java.lang.Integer getLanguageIdInEJBType()
                                         throws java.rmi.RemoteException,
                                                javax.ejb.CreateException,
                                                javax.ejb.FinderException,
                                                javax.naming.NamingException
This method accesses a non-CMP field
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setLanguageId

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

setLanguageId

public void setLanguageId(java.lang.Integer newValue)
This method accesses a non-CMP field

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 CountryAccessBeanData
Throws:
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 CountryAccessBeanData

getName

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

setName

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

Feedback