Class Item
java.lang.Object
org.mybatis.jpetstore.domain.Item
- All Implemented Interfaces:
Serializable
The Class Item.
- Author:
- Eduardo Macarron
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the attribute1.Gets the attribute2.Gets the attribute3.Gets the attribute4.Gets the attribute5.Gets the item id.Gets the list price.Gets the product.intGets the quantity.Gets the status.intGets the supplier id.Gets the unit cost.voidsetAttribute1(String attribute1) Sets the attribute1.voidsetAttribute2(String attribute2) Sets the attribute2.voidsetAttribute3(String attribute3) Sets the attribute3.voidsetAttribute4(String attribute4) Sets the attribute4.voidsetAttribute5(String attribute5) Sets the attribute5.voidSets the item id.voidsetListPrice(BigDecimal listPrice) Sets the list price.voidsetProduct(Product product) Sets the product.voidsetQuantity(int quantity) Sets the quantity.voidSets the status.voidsetSupplierId(int supplierId) Sets the supplier id.voidsetUnitCost(BigDecimal unitCost) Sets the unit cost.toString()
-
Constructor Details
-
Item
public Item()
-
-
Method Details
-
getItemId
-
setItemId
-
getQuantity
public int getQuantity()Gets the quantity.- Returns:
- the quantity
-
setQuantity
public void setQuantity(int quantity) Sets the quantity.- Parameters:
quantity- the quantity
-
getProduct
-
setProduct
-
getSupplierId
public int getSupplierId()Gets the supplier id.- Returns:
- the supplier id
-
setSupplierId
public void setSupplierId(int supplierId) Sets the supplier id.- Parameters:
supplierId- the supplier id
-
getListPrice
-
setListPrice
Sets the list price.- Parameters:
listPrice- the list price
-
getUnitCost
-
setUnitCost
Sets the unit cost.- Parameters:
unitCost- the unit cost
-
getStatus
-
setStatus
-
getAttribute1
-
setAttribute1
Sets the attribute1.- Parameters:
attribute1- the attribute1
-
getAttribute2
-
setAttribute2
Sets the attribute2.- Parameters:
attribute2- the attribute2
-
getAttribute3
-
setAttribute3
Sets the attribute3.- Parameters:
attribute3- the attribute3
-
getAttribute4
-
setAttribute4
Sets the attribute4.- Parameters:
attribute4- the attribute4
-
getAttribute5
-
setAttribute5
Sets the attribute5.- Parameters:
attribute5- the attribute5
-
toString
-