com.ibm.commerce.common.objects
Class SupportedCurrencyAccessBean

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.common.objects.SupportedCurrencyAccessBean

public class SupportedCurrencyAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean

Each row of this table represents an explicitly supported currency for a StoreEntity. A Store implicitly supports all its default currencies (see the STOREENT and STORELANG tables), and all currencies supported by its StoreGroup. This access bean corresponds to the database table 'CURLIST'.

See Also:
Serialized Form

Constructor Summary
SupportedCurrencyAccessBean()
Zero argument constructor used to initialize the access bean.
SupportedCurrencyAccessBean(java.lang.Integer aStoreEntityId, java.lang.String aCurrency)
Creates a SupportedCurrency object with the specified store entity ID and currency code.
SupportedCurrencyAccessBean(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 SupportedCurrencyAccessBeans
java.lang.String getCurrency()
This method provides access to the CURLIST.CURRSTR column of DB2 type CHAR(3) NOT NULL.
java.lang.Integer getStoreEntityId()
This method provides access to the CURLIST.STOREENT_ID column of DB2 type INTEGER NOT NULL.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setInitKey_currency(java.lang.String newValue)
Set the primary key for this object
void setInitKey_storeEntityId(java.lang.String newValue)
Set the primary key for this object
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

SupportedCurrencyAccessBean

public SupportedCurrencyAccessBean()
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.SupportedCurrency com.ibm.commerce.common.objimpl.SupportedCurrencyHomeBase.findByPrimaryKey(com.ibm.commerce.common.objects.SupportedCurrencyKey) 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_currency( java.lang.String ) setInitKey_storeEntityId( java.lang.Integer )

SupportedCurrencyAccessBean

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

SupportedCurrencyAccessBean

public SupportedCurrencyAccessBean(java.lang.Integer aStoreEntityId,
                                   java.lang.String aCurrency)
                            throws javax.naming.NamingException,
                                   javax.ejb.FinderException,
                                   javax.ejb.CreateException,
                                   java.rmi.RemoteException

Creates a SupportedCurrency object with the specified store entity ID and currency code.

Parameters:
aStoreEntityId - The ID of the store entity
aCurrency - The currency code as per ISO 4217 standards
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
Method Detail

findAll

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

Retrieves all SupportedCurrencyAccessBeans

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

SELECT * FROM CURLIST T1 WHERE 1 = 1

Returns:
An Enumeration of all the SupportedCurrencyAccessBeans 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_currency

public void setInitKey_currency(java.lang.String newValue)

Set the primary key for this object

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

setInitKey_storeEntityId

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

getCurrency

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

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

The following is a description of this column:

The supported currency. A store must be able to accept payment in all its supported currencies. This is a currency code as per ISO 4217 standards.

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

getStoreEntityId

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

This method provides access to the CURLIST.STOREENT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

The StoreEntity.

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

Feedback