Package org.salespointframework.order
Class OrderLine
- java.lang.Object
-
- org.salespointframework.core.AbstractEntity<org.salespointframework.order.OrderLineIdentifier>
-
- org.salespointframework.order.OrderLine
-
- All Implemented Interfaces:
org.springframework.data.domain.Persistable<org.salespointframework.order.OrderLineIdentifier>
@Entity public class OrderLine extends AbstractEntity<org.salespointframework.order.OrderLineIdentifier>
An order line- Author:
- Paul Henke, Oliver Gierke
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.salespointframework.order.OrderLineIdentifiergetId()javax.money.MonetaryAmountgetPrice()ProductIdentifiergetProductIdentifier()StringgetProductName()QuantitygetQuantity()booleanrefersTo(Product product)booleanrefersTo(ProductIdentifier identifier)StringtoString()-
Methods inherited from class org.salespointframework.core.AbstractEntity
equals, hashCode, isNew
-
-
-
-
Method Detail
-
getId
public org.salespointframework.order.OrderLineIdentifier getId()
- Specified by:
getIdin interfaceorg.springframework.data.domain.Persistable<org.salespointframework.order.OrderLineIdentifier>
-
refersTo
public boolean refersTo(Product product)
- Parameters:
product- must not be null.- Returns:
- Since:
- 7.1
-
refersTo
public boolean refersTo(ProductIdentifier identifier)
- Parameters:
identifier- must not be null.- Returns:
- Since:
- 7.1
-
getProductIdentifier
public ProductIdentifier getProductIdentifier()
-
getPrice
public javax.money.MonetaryAmount getPrice()
-
getQuantity
public Quantity getQuantity()
-
getProductName
public String getProductName()
-
-