com.ibm.commerce.common.objects
Class CurrencyDescriptionAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.common.objects.CurrencyDescriptionAccessBean
All Implemented Interfaces:
CurrencyDescriptionAccessBeanData

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

This table stores the text descriptions for each of the currency in the SETCURR table in each of the supported language. This access bean corresponds to the database table 'SETCURRDSC'.

See Also:
Serialized Form

Constructor Summary
CurrencyDescriptionAccessBean()
Zero argument constructor used to initialize the access bean.
CurrencyDescriptionAccessBean(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 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).
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.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCurrencyCode(java.lang.String newValue)
This method accesses a non-CMP field
void setDescription(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_currencyCode(java.lang.String newValue)
Set the primary key for this object
void setInitKey_languageId(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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

CurrencyDescriptionAccessBean

public CurrencyDescriptionAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.common.objects.CurrencyDescription com.ibm.commerce.common.objimpl.CurrencyDescriptionHomeBase.findByPrimaryKey(com.ibm.commerce.common.objects.CurrencyDescriptionKey) throws java.rmi.RemoteException,javax.ejb.FinderException The home interface method properties need to be set by calling the following setter methods before calling any business methods: setInitKey_currencyCode( java.lang.String ) setInitKey_languageId( java.lang.Integer )

CurrencyDescriptionAccessBean

public CurrencyDescriptionAccessBean(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 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:
aLanguageId - 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

setInitKey_currencyCode

public void setInitKey_currencyCode(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_languageId

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

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

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setDescription

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

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:
String
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 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
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 CurrencyDescriptionAccessBeanData

setLanguageId

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

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCurrencyCode

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

Feedback