|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
@Deprecated public interface UnitPrice
Combines a unit and a price to provide a mechanism for recording pricing and pricing strategies. It also provides features for converting prices between units. Attribute: price The price component of the UnitPrice.
UnitPriceHome,
UnitPriceImpl| Method Summary | |
|---|---|
UnitPrice |
convert(Unit newUnit)
Deprecated Return a new UnitPrice that maintains the Price/Unit ratio with the newly specified unit. |
void |
convertInPlace(Unit newUnit)
Deprecated Translate the UnitPrice into the new Units maintaining the Price/Unit ratio. |
Price |
getPrice()
Deprecated Get the value of price |
Unit |
getUnit()
Deprecated Get the value of unit |
void |
setPrice(Price price)
Deprecated Set the value of price |
void |
setUnit(Unit unit)
Deprecated Set the value of unit |
| Methods inherited from interface com.beasys.commerce.foundation.Belonging |
|---|
clone, equals, interfaceName, setByValue, value |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Method Detail |
|---|
Price getPrice()
void setPrice(Price price)
price - price to be addedUnit getUnit()
void setUnit(Unit unit)
unit - unit to be added
UnitPrice convert(Unit newUnit)
throws InvalidUnitException
InvalidUnitException
void convertInPlace(Unit newUnit)
throws InvalidUnitException
InvalidUnitException
|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||