com.ibm.commerce.common.objects
Class CurrencyDescriptionAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.common.objects.CurrencyDescriptionAccessBean
All Implemented Interfaces:
CurrencyDescriptionAccessBeanData, java.io.Serializable

public class CurrencyDescriptionAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CurrencyDescriptionAccessBeanData

This bean provides access to the SETCURRDSC table.

The following is a description of this table:

This table stores the text descriptions for each of the currency in the SETCURR table in each of the supported language.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
CurrencyDescriptionAccessBean()
          Default constructor.
CurrencyDescriptionAccessBean(javax.ejb.EJBObject ejbObject)
          Creates an access bean for the specified EJB
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByLanguageId(java.lang.Integer languageId)
          Retrieves all CurrencyDescriptionAccessBeans by language id
 java.lang.String getCurrencyCode()
          This method provides access to the SETCURRDSC.SETCCURR column of DB2 type CHAR(3) NOT NULL.
 java.lang.String getDescription()
          This method provides access to the SETCURRDSC.DESCRIPTION column of DB2 type VARCHAR(254) NULL.
 java.lang.String getLanguageId()
          This method provides access to the SETCURRDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 java.lang.Integer getLanguageIdInEJBType()
          This method provides access to the SETCURRDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCurrencyCode(java.lang.String aCurrencyCode)
          This method provides access to the SETCURRDSC.SETCCURR column of DB2 type CHAR(3) NOT NULL.
 void setDescription(java.lang.String aDescription)
          This method provides access to the SETCURRDSC.DESCRIPTION column of DB2 type VARCHAR(254) NULL.
 void setInitKey_currencyCode(java.lang.String aInitKey_currencyCode)
          Set the primary key for this object
 void setInitKey_languageId(java.lang.String aInitKey_languageId)
          Set the primary key for this object
 void setLanguageId(java.lang.Integer aLanguageId)
          This method provides access to the SETCURRDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.
 void setLanguageId(java.lang.String aLanguageId)
          This method provides access to the SETCURRDSC.LANGUAGE_ID column of DB2 type INTEGER 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

CurrencyDescriptionAccessBean

public CurrencyDescriptionAccessBean()

Default constructor. Maps to findByPrimaryKey.


CurrencyDescriptionAccessBean

public CurrencyDescriptionAccessBean(javax.ejb.EJBObject ejbObject)
                              throws java.rmi.RemoteException

Creates an access bean for the specified 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

findByLanguageId

public java.util.Enumeration findByLanguageId(java.lang.Integer languageId)
                                       throws java.rmi.RemoteException,
                                              javax.ejb.FinderException,
                                              javax.naming.NamingException

Retrieves all CurrencyDescriptionAccessBeans by language id

The SQL query used to fetch the requested row from the SETCURRDSC table is:

SELECT * FROM SETCURRDSC T1 WHERE T1.language_id = ?

Parameters:
languageId - Language id
Returns:
java.util.Enumeration
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

getCurrencyCode

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

This method provides access to the SETCURRDSC.SETCCURR column of DB2 type CHAR(3) NOT NULL.

The following is a description of this column:

This is a currency code as per ISO 4217 standards. Foreign key that references column SETCCURR in the SETCURR table.

Specified by:
getCurrencyCode in interface CurrencyDescriptionAccessBeanData
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

getDescription

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

This method provides access to the SETCURRDSC.DESCRIPTION column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

The text description of the currency in the language identified by LANGUAGE_ID.

Specified by:
getDescription in interface CurrencyDescriptionAccessBeanData
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

getLanguageId

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

This method provides access to the SETCURRDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Language ID of the Language. Foreign key that references the LANGUAGE_ID column in the Language table. For a list of language components, see the LANGUAGE table.

Specified by:
getLanguageId in interface CurrencyDescriptionAccessBeanData
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

getLanguageIdInEJBType

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

This method provides access to the SETCURRDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Language ID of the Language. Foreign key that references the LANGUAGE_ID column in the Language table. For a list of language components, see the LANGUAGE table.

Returns:
java.lang.Integer
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

setCurrencyCode

public void setCurrencyCode(java.lang.String aCurrencyCode)

This method provides access to the SETCURRDSC.SETCCURR column of DB2 type CHAR(3) NOT NULL.

The following is a description of this column:

This is a currency code as per ISO 4217 standards. Foreign key that references column SETCCURR in the SETCURR table.

Specified by:
setCurrencyCode in interface CurrencyDescriptionAccessBeanData
Parameters:
aCurrencyCode - java.lang.String
Returns:
void

setDescription

public void setDescription(java.lang.String aDescription)

This method provides access to the SETCURRDSC.DESCRIPTION column of DB2 type VARCHAR(254) NULL.

The following is a description of this column:

The text description of the currency in the language identified by LANGUAGE_ID.

Specified by:
setDescription in interface CurrencyDescriptionAccessBeanData
Parameters:
aDescription - java.lang.String
Returns:
void

setInitKey_currencyCode

public void setInitKey_currencyCode(java.lang.String aInitKey_currencyCode)

Set the primary key for this object

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

setInitKey_languageId

public void setInitKey_languageId(java.lang.String aInitKey_languageId)

Set the primary key for this object

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

setLanguageId

public void setLanguageId(java.lang.Integer aLanguageId)

This method provides access to the SETCURRDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Language ID of the Language. Foreign key that references the LANGUAGE_ID column in the Language table. For a list of language components, see the LANGUAGE table.

Parameters:
aLanguageId - java.lang.Integer
Returns:
void

setLanguageId

public void setLanguageId(java.lang.String aLanguageId)

This method provides access to the SETCURRDSC.LANGUAGE_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Language ID of the Language. Foreign key that references the LANGUAGE_ID column in the Language table. For a list of language components, see the LANGUAGE table.

Specified by:
setLanguageId in interface CurrencyDescriptionAccessBeanData
Parameters:
aLanguageId - java.lang.String
Returns:
void