com.ibm.commerce.common.objects
Class CurrencyAccessBean

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

public class CurrencyAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CurrencyAccessBeanData

The table contains information about the different national currencies. The currency alphabetic and numeric codes are derived from the ISO 4217 standard. This access bean corresponds to the database table 'SETCURR'.

See Also:
Serialized Form

Constructor Summary
CurrencyAccessBean()
Zero argument constructor used to initialize the access bean.
CurrencyAccessBean(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 findAll()
Retrieves all CurrencyAccessBeans
java.util.Enumeration findByNumericCurrencyCode(java.lang.Integer aCurrencyCode)
Retrieves all CurrencyAccessBeans according to the search criteria
CurrencyAccessBean findByStoreEntityAndLanguage(java.lang.Integer storeEntityId, java.lang.Integer languageId)
Retrieves all CurrencyAccessBeans according to the search criteria
java.lang.String getCurrencyCode()
This method provides access to the SETCURR.SETCCURR column of DB2 type CHAR(3) NOT NULL.
java.lang.String getCurrencyExponent()
This method provides access to the SETCURR.SETCEXP column of DB2 type INTEGER NOT NULL.
java.lang.Integer getCurrencyExponentInEJBType()
This method provides access to the SETCURR.SETCEXP column of DB2 type INTEGER NOT NULL.
CurrencyDescriptionAccessBean getDescription(java.lang.Integer languageId, java.lang.Integer storeId)
Return CurrencyDescriptionAccessBean by languageId and storeId
java.lang.String getNote()
This method provides access to the SETCURR.SETCNOTE column of DB2 type VARCHAR(40).
java.lang.String getNumericCurrencyCode()
This method provides access to the SETCURR.SETCCODE column of DB2 type INTEGER NOT NULL.
java.lang.Integer getNumericCurrencyCodeInEJBType()
This method provides access to the SETCURR.SETCCODE column of DB2 type INTEGER NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCurrencyExponent(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCurrencyExponent(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 setNote(java.lang.String newValue)
This method accesses a non-CMP field
void setNumericCurrencyCode(java.lang.Integer newValue)
This method accesses a non-CMP field
void setNumericCurrencyCode(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

CurrencyAccessBean

public CurrencyAccessBean()
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.Currency com.ibm.commerce.common.objimpl.CurrencyHomeBase.findByPrimaryKey(com.ibm.commerce.common.objects.CurrencyKey) 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 )

CurrencyAccessBean

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

findByStoreEntityAndLanguage

public CurrencyAccessBean findByStoreEntityAndLanguage(java.lang.Integer storeEntityId,
                                                       java.lang.Integer languageId)
                                                throws java.rmi.RemoteException,
                                                       javax.ejb.FinderException,
                                                       javax.naming.NamingException

Retrieves all CurrencyAccessBeans according to the search criteria

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

SELECT * FROM SETCURR T1 WHERE T1.SETCCURR = (SELECT STORELANG.SETCCURR FROM STORELANG WHERE STORELANG.STOREENT_ID = ? AND STORELANG.LANGUAGE_ID = ?)

Parameters:
storeEntityId - Store entity id
languageId - Language id
Returns:
com.ibm.commerce.common.objects.Currency
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findAll

public java.util.Enumeration findAll()
                              throws java.rmi.RemoteException,
                                     javax.ejb.FinderException,
                                     javax.naming.NamingException

Retrieves all CurrencyAccessBeans

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

SELECT * FROM SETCURR T1 WHERE 1 = 1

Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

findByNumericCurrencyCode

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

Retrieves all CurrencyAccessBeans according to the search criteria

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

SELECT * FROM SETCURR T1 WHERE T1.SETCCODE = ?

Parameters:
aCurrencyCode - Currency code
Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException

setInitKey_currencyCode

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

getNumericCurrencyCode

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

This method provides access to the SETCURR.SETCCODE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Numeric currency code as per ISO 4217.

Specified by:
getNumericCurrencyCode in interface CurrencyAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getNumericCurrencyCodeInEJBType

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

This method provides access to the SETCURR.SETCCODE column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Numeric currency code as per ISO 4217.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setNumericCurrencyCode

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

setNumericCurrencyCode

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

getNote

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

This method provides access to the SETCURR.SETCNOTE column of DB2 type VARCHAR(40).

The following is a description of this column:

Customizable. This column is not translated. The translatable text describing the currency in this table are stored in the SETCURRDSC table.

Specified by:
getNote in interface CurrencyAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setNote

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

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 SETCURR.SETCCURR column of DB2 type CHAR(3) NOT NULL.

The following is a description of this column:

Alphabetic currency code as per ISO 4217. This is the primary key.

Specified by:
getCurrencyCode in interface CurrencyAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getCurrencyExponent

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

This method provides access to the SETCURR.SETCEXP column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Exponent (power of 10). The exponential value by which a sub-unit of the currency (such as cents) is multiplied to get the main currency unit. For example, you would multiply the number of cents by 10 to the power -2 to get the number of dollars.

Specified by:
getCurrencyExponent in interface CurrencyAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getCurrencyExponentInEJBType

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

This method provides access to the SETCURR.SETCEXP column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Exponent (power of 10). The exponential value by which a sub-unit of the currency (such as cents) is multiplied to get the main currency unit. For example, you would multiply the number of cents by 10 to the power -2 to get the number of dollars.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCurrencyExponent

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

setCurrencyExponent

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

getDescription

public CurrencyDescriptionAccessBean getDescription(java.lang.Integer languageId,
                                                    java.lang.Integer storeId)
                                             throws javax.naming.NamingException,
                                                    javax.ejb.CreateException,
                                                    javax.ejb.FinderException,
                                                    java.rmi.RemoteException

Return CurrencyDescriptionAccessBean by languageId and storeId

Parameters:
languageId - Language id
storeId - Store id
Returns:
com.ibm.commerce.common.objects.CurrencyDescriptionAccessBean
Throws:
javax.naming.NamingException - The javax.naming.NamingException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

Feedback