Package org.salespointframework.order
Class ChargeLine.AttachedChargeLine
java.lang.Object
org.salespointframework.core.AbstractEntity<ChargeLine.ChargeLineIdentifier>
org.salespointframework.order.ChargeLine
org.salespointframework.order.ChargeLine.AttachedChargeLine
- All Implemented Interfaces:
Persistable<ChargeLine.ChargeLineIdentifier>
- Enclosing class:
ChargeLine
A
ChargeLine that's attached to an OrderLine. Create via
Order.addChargeLine(MonetaryAmount, String, int) or
Order.addChargeLine(MonetaryAmount, String, OrderLine).- Since:
- 7.1
- Author:
- Oliver Gierke
-
Nested Class Summary
Nested classes/interfaces inherited from class org.salespointframework.order.ChargeLine
ChargeLine.AttachedChargeLine, ChargeLine.ChargeLineIdentifier -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns whether theChargeLine.AttachedChargeLinebelongs to the givenOrderLine.Methods inherited from class org.salespointframework.order.ChargeLine
getChargeLineIdentifier, getDescription, getId, getPrice, toStringMethods inherited from class org.salespointframework.core.AbstractEntity
equals, hashCode, hasId, isNew
-
Method Details
-
belongsTo
Returns whether theChargeLine.AttachedChargeLinebelongs to the givenOrderLine.- Parameters:
orderLine- must not be null.- Returns:
-
getOrderLine
-