public abstract class UnitManager
extends java.lang.Object
implements com.ibm.commerce.registry.Registry
Modifier and Type | Field and Description |
---|---|
static int |
ROUND_METHOD_FLOOR
Rounding method of floor with value 3.
|
static int |
ROUND_METHOD_ROUND
Rounding method of round with value 2.
|
static int |
ROUND_METHOD_TRUNCATION
Rounding method of truncation with value 1.
|
Modifier and Type | Method and Description |
---|---|
int |
getCustomizedRoundMethod(com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
java.lang.String aUnit)
Get the rounding method used for a particular unit.
|
int |
getCustomizedRoundMethod(com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
java.lang.String aUnit,
java.lang.String aNumberUsage)
Get the rounding method used for a particular unit.
|
java.lang.String |
getCustomizedString(com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
java.lang.String aUnit,
java.lang.Integer aLanguageId,
java.lang.String aNumberUsage)
Get the customized string from the format table.
|
java.lang.String |
getDescription(com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
java.lang.String aUnit,
java.lang.Integer aLanguageId,
java.lang.String aNumberUsage)
Get the description of the specified units.
|
int |
getNumberOfDecimalPlaces(com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
java.lang.String aUnit,
java.lang.Integer aNumbrUsgId)
Get the number of decimal places for a particular unit.
|
int |
getNumberOfDecimalPlaces(com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
java.lang.String aUnit,
java.lang.String aNumberUsage)
Get the number of decimal places for a particular unit.
|
java.lang.String |
getSymbol(com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean,
java.lang.String aUnit,
java.lang.Integer aLanguageId,
java.lang.String aNumberUsage)
Get the symbol information from the format table.
|
boolean |
isRefreshRequired()
Returns true if the registry needs to be refreshed before it can be used.
|
void |
refresh()
Refresh the manager cache.
|
void |
setRefreshRequired()
Sets the refreshRequired property to true, indicating that the registry must be refreshed before it can be used.
|
public static final int ROUND_METHOD_FLOOR
public static final int ROUND_METHOD_ROUND
public static final int ROUND_METHOD_TRUNCATION
public int getCustomizedRoundMethod(com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean, java.lang.String aUnit) throws com.ibm.commerce.exception.ECSystemException
aStoreAccessBean
- the store for which the rounding method applies.aUnit
- the unit for which the rounding method applies.com.ibm.commerce.exception.ECSystemException
public int getCustomizedRoundMethod(com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean, java.lang.String aUnit, java.lang.String aNumberUsage) throws com.ibm.commerce.exception.ECSystemException
aStoreAccessBean
- the store for which the rounding method applies.aUnit
- the unit for which the rounding method applies.aNumberUsage
- the number usage code.com.ibm.commerce.exception.ECSystemException
public java.lang.String getCustomizedString(com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean, java.lang.String aUnit, java.lang.Integer aLanguageId, java.lang.String aNumberUsage) throws com.ibm.commerce.exception.ECSystemException
aStoreAccessBean
- the store for choosing the appropriate rule.aUnit
- the unit for which to choose the customized string.aLanguageId
- the language Id of the language for the customized string.aNumberUsage
- the number usage code.com.ibm.commerce.exception.ECSystemException
public java.lang.String getDescription(com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean, java.lang.String aUnit, java.lang.Integer aLanguageId, java.lang.String aNumberUsage) throws com.ibm.commerce.exception.ECSystemException
aStoreAccessBean
- the store that the description applies to.aUnit
- the units that the description is for.aLanguageId
- the language Id of the language for the description.aNumberUsage
- the number usage code.com.ibm.commerce.exception.ECSystemException
public final int getNumberOfDecimalPlaces(com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean, java.lang.String aUnit, java.lang.Integer aNumbrUsgId) throws com.ibm.commerce.exception.ECSystemException
aStoreAccessBean
- the store that determines the number of decimal places.aUnit
- the unit that determines the number of decimal places.aNumbrUsgId
- the number usage id that determines the number of decimal places.com.ibm.commerce.exception.ECSystemException
public final int getNumberOfDecimalPlaces(com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean, java.lang.String aUnit, java.lang.String aNumberUsage) throws com.ibm.commerce.exception.ECSystemException
aStoreAccessBean
- the store that determines the number of decimal places.aUnit
- the unit that determines the number of decimal places.aNumberUsage
- the number usage code that determines the number of decimal places.com.ibm.commerce.exception.ECSystemException
public java.lang.String getSymbol(com.ibm.commerce.common.objects.StoreAccessBean aStoreAccessBean, java.lang.String aUnit, java.lang.Integer aLanguageId, java.lang.String aNumberUsage) throws com.ibm.commerce.exception.ECSystemException
aStoreAccessBean
- the store.aUnit
- the unit.aLanguageId
- the language Id of the language for the symbol.aNumberUsage
- the number usage code.com.ibm.commerce.exception.ECSystemException
public boolean isRefreshRequired()
public void refresh() throws com.ibm.commerce.exception.ECSystemException
refresh
in interface com.ibm.commerce.registry.Registry
com.ibm.commerce.exception.ECSystemException
public void setRefreshRequired()