com.ibm.commerce.common.objects
Class CurrencyConversionAccessBean

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

public class CurrencyConversionAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements CurrencyConversionAccessBeanData

Each row of this table represents a rule that can be used to convert a price (stored in the database in a particular currency) to an amount the customer will be charged in a supported shopping currency (a currency in which payment is accepted). This access bean corresponds to the database table 'CURCONVERT'.

See Also:
Serialized Form

Constructor Summary
CurrencyConversionAccessBean()
Zero argument constructor used to initialize the access bean.
CurrencyConversionAccessBean(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 CurrencyConversionAccessBeans
java.lang.String getBidirectional()
This method provides access to the CURCONVERT.BIDIRECTIONAL column of DB2 type CHAR(1) NOT NULL DEFAULT 'N'.
java.lang.String getConversionFactor()
This method provides access to the CURCONVERT.FACTOR column of DB2 type DECIMAL(31 20) NOT NULL DEFAULT 1.
java.math.BigDecimal getConversionFactorInEJBType()
This method provides access to the CURCONVERT.FACTOR column of DB2 type DECIMAL(31 20) NOT NULL DEFAULT 1.
java.lang.String getCurrencyConversionId()
This method provides access to the CURCONVERT.CURCONVERT_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getCurrencyConversionIdInEJBType()
This method provides access to the CURCONVERT.CURCONVERT_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getFromCurrency()
This method provides access to the CURCONVERT.FROMCURR column of DB2 type CHAR(3) NOT NULL.
java.lang.String getMultiplyOrDivide()
This method provides access to the CURCONVERT.MULTIPLYORDIVIDE column of DB2 type CHAR(1) NOT NULL DEFAULT 'M'.
java.lang.String getStoreEntityId()
This method provides access to the CURCONVERT.STOREENT_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getStoreEntityIdInEJBType()
This method provides access to the CURCONVERT.STOREENT_ID column of DB2 type INTEGER NOT NULL.
java.lang.String getToCurrency()
This method provides access to the CURCONVERT.TOCURR column of DB2 type CHAR(3) NOT NULL.
java.lang.String getUpdatable()
This method provides access to the CURCONVERT.UPDATABLE column of DB2 type CHAR(1) NOT NULL DEFAULT 'Y'.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setBidirectional(java.lang.String newValue)
This method accesses a non-CMP field
void setConversionFactor(java.math.BigDecimal newValue)
This method accesses a non-CMP field
void setConversionFactor(java.lang.String newValue)
This method accesses a non-CMP field
void setCurrencyConversionId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setCurrencyConversionId(java.lang.String newValue)
This method accesses a non-CMP field
void setFromCurrency(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_currencyConversionId(java.lang.String newValue)
Set the primary key for this object
void setMultiplyOrDivide(java.lang.String newValue)
This method accesses a non-CMP field
void setToCurrency(java.lang.String newValue)
This method accesses a non-CMP field
void setUpdatable(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

CurrencyConversionAccessBean

public CurrencyConversionAccessBean()
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.CurrencyConversion com.ibm.commerce.common.objimpl.CurrencyConversionHomeBase.findByPrimaryKey(com.ibm.commerce.common.objects.CurrencyConversionKey) 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_currencyConversionId( java.lang.Integer )

CurrencyConversionAccessBean

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

findAll

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

Retrieves all CurrencyConversionAccessBeans

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

SELECT * FROM CURCONVERT 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

setInitKey_currencyConversionId

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

getToCurrency

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

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

The following is a description of this column:

TOCURR is normally the currency in which the customer intends to pay. Amounts in this currency are normally part of an OrderItem, such as a unit price, shipping charge, or tax amount.

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

setToCurrency

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

getFromCurrency

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

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

The following is a description of this column:

An amount in the FROMCURR currency is normally part of a rule or other information used to determine a price, discount, shipping charge, or similar amount associated with a product offered for sale.

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

setFromCurrency

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

getBidirectional

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

This method provides access to the CURCONVERT.BIDIRECTIONAL column of DB2 type CHAR(1) NOT NULL DEFAULT 'N'.

The following is a description of this column:

Indicates whether the rule is bidirectional or unidirectional:&l

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

setBidirectional

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

getConversionFactor

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

This method provides access to the CURCONVERT.FACTOR column of DB2 type DECIMAL(31 20) NOT NULL DEFAULT 1.

The following is a description of this column:

The conversion factor. Implicit conversion rules may be derived from explicit rules by combining conversion factors, but no more than one unidirectional rule can be used to derive any particular implicit rule.

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

getConversionFactorInEJBType

public java.math.BigDecimal getConversionFactorInEJBType()
                                                  throws java.rmi.RemoteException,
                                                         javax.ejb.CreateException,
                                                         javax.ejb.FinderException,
                                                         javax.naming.NamingException

This method provides access to the CURCONVERT.FACTOR column of DB2 type DECIMAL(31 20) NOT NULL DEFAULT 1.

The following is a description of this column:

The conversion factor. Implicit conversion rules may be derived from explicit rules by combining conversion factors, but no more than one unidirectional rule can be used to derive any particular implicit rule.

Returns:
java.math.BigDecimal
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setConversionFactor

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

setConversionFactor

public void setConversionFactor(java.math.BigDecimal newValue)
This method accesses a non-CMP field

getUpdatable

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

This method provides access to the CURCONVERT.UPDATABLE column of DB2 type CHAR(1) NOT NULL DEFAULT 'Y'.

The following is a description of this column:

A flag intended to be used by a user interface that manages currency conversion rules. Valid values:&l

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

setUpdatable

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

getMultiplyOrDivide

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

This method provides access to the CURCONVERT.MULTIPLYORDIVIDE column of DB2 type CHAR(1) NOT NULL DEFAULT 'M'.

The following is a description of this column:

To convert from FROMCURR to TOCURR:&l

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

setMultiplyOrDivide

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

getStoreEntityId

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

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

The following is a description of this column:

The StoreEntity this conversion rule is part of.

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

getStoreEntityIdInEJBType

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

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

The following is a description of this column:

The StoreEntity this conversion rule is part of.

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

getCurrencyConversionId

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

This method provides access to the CURCONVERT.CURCONVERT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique key.

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

getCurrencyConversionIdInEJBType

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

This method provides access to the CURCONVERT.CURCONVERT_ID column of DB2 type INTEGER NOT NULL.

The following is a description of this column:

Generated unique key.

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

setCurrencyConversionId

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

setCurrencyConversionId

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

Feedback