Package org.mybatis.jpetstore.domain
Class CartItem
java.lang.Object
org.mybatis.jpetstore.domain.CartItem
- All Implemented Interfaces:
Serializable
The Class CartItem.
- Author:
- Eduardo Macarron
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetItem()
int
getTotal()
void
boolean
void
setInStock
(boolean inStock) void
void
setQuantity
(int quantity)
-
Constructor Details
-
CartItem
public CartItem()
-
-
Method Details
-
isInStock
public boolean isInStock() -
setInStock
public void setInStock(boolean inStock) -
getTotal
-
getItem
-
setItem
-
getQuantity
public int getQuantity() -
setQuantity
public void setQuantity(int quantity) -
incrementQuantity
public void incrementQuantity()
-