Package org.salespointframework.order
Class ChargeLine.AttachedChargeLine
java.lang.Object
org.salespointframework.core.AbstractEntity<org.salespointframework.order.ChargeLineIdentifier>
org.salespointframework.order.ChargeLine
org.salespointframework.order.ChargeLine.AttachedChargeLine
- All Implemented Interfaces:
Persistable<org.salespointframework.order.ChargeLineIdentifier>
- Enclosing class:
- ChargeLine
@Entity public static class ChargeLine.AttachedChargeLine extends 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 -
Method Summary
Modifier and Type Method Description booleanbelongsTo(OrderLine oderLine)Returns whether theChargeLine.AttachedChargeLinebelongs to the givenOrderLine.OrderLinegetOrderLine()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:
oderLine- must not be null.- Returns:
-
getOrderLine
-