Package org.mybatis.jpetstore.domain
Class LineItem
java.lang.Object
org.mybatis.jpetstore.domain.LineItem
- All Implemented Interfaces:
Serializable
The Class LineItem.
- Author:
- Eduardo Macarron
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetItem()
int
int
int
getTotal()
void
void
void
setLineNumber
(int lineNumber) void
setOrderId
(int orderId) void
setQuantity
(int quantity) void
setUnitPrice
(BigDecimal unitprice)
-
Constructor Details
-
LineItem
public LineItem() -
LineItem
Instantiates a new line item.- Parameters:
lineNumber
- the line numbercartItem
- the cart item
-
-
Method Details
-
getOrderId
public int getOrderId() -
setOrderId
public void setOrderId(int orderId) -
getLineNumber
public int getLineNumber() -
setLineNumber
public void setLineNumber(int lineNumber) -
getItemId
-
setItemId
-
getUnitPrice
-
setUnitPrice
-
getTotal
-
getItem
-
setItem
-
getQuantity
public int getQuantity() -
setQuantity
public void setQuantity(int quantity)
-