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:
org.springframework.data.domain.Persistable<org.salespointframework.order.ChargeLineIdentifier>
- Enclosing class:
- ChargeLine
@Entity public static class ChargeLine.AttachedChargeLine extends ChargeLine
AChargeLine
that's attached to anOrderLine
. Create viaOrder.addChargeLine(MonetaryAmount, String, int)
orOrder.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
belongsTo(OrderLine oderLine)
Returns whether theChargeLine.AttachedChargeLine
belongs to the givenOrderLine
.OrderLine
getOrderLine()
-
Methods inherited from class org.salespointframework.order.ChargeLine
getChargeLineIdentifier, getDescription, getId, getPrice, toString
-
Methods inherited from class org.salespointframework.core.AbstractEntity
equals, hashCode, isNew
-
-
-
-
Method Detail
-
belongsTo
public boolean belongsTo(OrderLine oderLine)
Returns whether theChargeLine.AttachedChargeLine
belongs to the givenOrderLine
.- Parameters:
oderLine
- must not be null.- Returns:
-
getOrderLine
public OrderLine getOrderLine()
-
-