@Entity public class ChargeLine extends AbstractEntity<ChargeLineIdentifier> implements Priced
| Modifier | Constructor and Description |
|---|---|
protected |
ChargeLine()
Deprecated.
|
|
ChargeLine(org.joda.money.Money amount,
String description)
Creates a new PersistentChargeLine with the given amount and description.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getDescription() |
ChargeLineIdentifier |
getIdentifier()
Returns the
SalespointIdentifier. |
org.joda.money.Money |
getPrice()
Returns the proce of the item.
|
String |
toString() |
equals, getId, hashCode, isNew@Deprecated protected ChargeLine()
public ChargeLine(org.joda.money.Money amount,
String description)
amount - the value of the ChargeLinedescription - a description of the ChargeLineNullPointerException - if amout or description is nullpublic org.joda.money.Money getPrice()
Pricedpublic String getDescription()
public ChargeLineIdentifier getIdentifier()
AbstractEntitySalespointIdentifier.getIdentifier in class AbstractEntity<ChargeLineIdentifier>ChargeLineIdentifier to uniquely identify this chargelineCopyright © 2014 Pivotal Software, Inc.. All rights reserved.