|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
com.ibm.commerce.common.objects.CurrencyConversionBean
This bean provides access to the CURCONVERT table.
The following is a description of this table:
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).
Constructor Summary | |
CurrencyConversionBean()
|
Method Summary | |
java.lang.String |
getBidirectional()
This method provides access to the CURCONVERT.BIDIRECTIONAL column of DB2 type CHAR(1) NOT NULL. |
java.math.BigDecimal |
getConversionFactor()
This method provides access to the CURCONVERT.FACTOR column of DB2 type DECIMAL(31,20) NOT NULL. |
java.lang.Integer |
getCurrencyConversionId()
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. |
java.lang.Integer |
getStoreEntityId()
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. |
void |
setBidirectional(java.lang.String aBidirectional)
This method provides access to the CURCONVERT.BIDIRECTIONAL column of DB2 type CHAR(1) NOT NULL. |
void |
setConversionFactor(java.math.BigDecimal aConversionFactor)
This method provides access to the CURCONVERT.FACTOR column of DB2 type DECIMAL(31,20) NOT NULL. |
void |
setCurrencyConversionId(java.lang.Integer aCurrencyConversionId)
This method provides access to the CURCONVERT.CURCONVERT_ID column of DB2 type INTEGER NOT NULL. |
void |
setFromCurrency(java.lang.String aFromCurrency)
This method provides access to the CURCONVERT.FROMCURR column of DB2 type CHAR(3) NOT NULL. |
void |
setMultiplyOrDivide(java.lang.String aMultiplyOrDivide)
This method provides access to the CURCONVERT.MULTIPLYORDIVIDE column of DB2 type CHAR(1) NOT NULL. |
void |
setToCurrency(java.lang.String aToCurrency)
This method provides access to the CURCONVERT.TOCURR column of DB2 type CHAR(3) NOT NULL. |
void |
setUpdatable(java.lang.String aUpdatable)
This method provides access to the CURCONVERT.UPDATABLE column of DB2 type CHAR(1) NOT NULL. |
Constructor Detail |
public CurrencyConversionBean()
Method Detail |
public java.lang.String getBidirectional()
This method provides access to the CURCONVERT.BIDIRECTIONAL column of DB2 type CHAR(1) NOT NULL.
The following is a description of this column:
Indicates whether the rule is bidirectional or unidirectional:
Y = bidirectional.
N = unidirectional.
public java.math.BigDecimal getConversionFactor()
This method provides access to the CURCONVERT.FACTOR column of DB2 type DECIMAL(31,20) NOT NULL.
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.
public java.lang.Integer getCurrencyConversionId()
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.
public java.lang.String getFromCurrency()
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.
public java.lang.String getMultiplyOrDivide()
This method provides access to the CURCONVERT.MULTIPLYORDIVIDE column of DB2 type CHAR(1) NOT NULL.
The following is a description of this column:
To convert from FROMCURR to TOCURR:
M = Multiply by FACTOR
D = Divide by FACTOR
For bidirectional rules, conversion from TOCURR to FROMCURR is allowed using the inverse operation.
public java.lang.Integer getStoreEntityId()
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.
public java.lang.String getToCurrency()
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.
public java.lang.String getUpdatable()
This method provides access to the CURCONVERT.UPDATABLE column of DB2 type CHAR(1) NOT NULL.
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:
N = conversion rate is irrevocable - should never be changed
Y = conversion rate can be changed.
public void setBidirectional(java.lang.String aBidirectional)
This method provides access to the CURCONVERT.BIDIRECTIONAL column of DB2 type CHAR(1) NOT NULL.
The following is a description of this column:
Indicates whether the rule is bidirectional or unidirectional:
Y = bidirectional.
N = unidirectional.
aBidirectional
- java.lang.Stringpublic void setConversionFactor(java.math.BigDecimal aConversionFactor)
This method provides access to the CURCONVERT.FACTOR column of DB2 type DECIMAL(31,20) NOT NULL.
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.
aConversionFactor
- java.math.BigDecimalpublic void setCurrencyConversionId(java.lang.Integer aCurrencyConversionId)
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.
aCurrencyConversionId
- java.lang.Integerpublic void setFromCurrency(java.lang.String aFromCurrency)
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.
aFromCurrency
- java.lang.Stringpublic void setMultiplyOrDivide(java.lang.String aMultiplyOrDivide)
This method provides access to the CURCONVERT.MULTIPLYORDIVIDE column of DB2 type CHAR(1) NOT NULL.
The following is a description of this column:
To convert from FROMCURR to TOCURR:
M = Multiply by FACTOR
D = Divide by FACTOR
For bidirectional rules, conversion from TOCURR to FROMCURR is allowed using the inverse operation.
aMultiplyOrDivide
- java.lang.Stringpublic void setToCurrency(java.lang.String aToCurrency)
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.
aToCurrency
- java.lang.Stringpublic void setUpdatable(java.lang.String aUpdatable)
This method provides access to the CURCONVERT.UPDATABLE column of DB2 type CHAR(1) NOT NULL.
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:
N = conversion rate is irrevocable - should never be changed
Y = conversion rate can be changed.
aUpdatable
- java.lang.String
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |