public class OrderItem extends Object implements Serializable
| Modifier and Type | Field and Description |
|---|---|
protected String |
itemDescription |
protected String |
itemId |
protected String |
itemName |
protected BigDecimal |
itemPrice |
protected BigDecimal |
itemQuantity |
protected boolean |
itemTaxable |
static int |
MAX_ITEM_DESCRIPTION_LENGTH |
static int |
MAX_ITEM_ID_LENGTH |
static int |
MAX_ITEM_NAME_LENGTH |
| Modifier | Constructor and Description |
|---|---|
protected |
OrderItem() |
| Modifier and Type | Method and Description |
|---|---|
static OrderItem |
createOrderItem() |
String |
getItemDescription() |
String |
getItemId() |
String |
getItemName() |
BigDecimal |
getItemPrice() |
BigDecimal |
getItemQuantity() |
boolean |
isItemTaxable() |
void |
setItemDescription(String itemDescription) |
void |
setItemId(String itemId) |
void |
setItemName(String itemName) |
void |
setItemPrice(BigDecimal itemPrice) |
void |
setItemPrice(String itemPrice) |
void |
setItemQuantity(BigDecimal itemQuantity) |
void |
setItemQuantity(String itemQuantity) |
void |
setItemTaxable(boolean itemTaxable) |
void |
setItemTaxable(String itemTaxable) |
public static final int MAX_ITEM_ID_LENGTH
public static final int MAX_ITEM_NAME_LENGTH
public static final int MAX_ITEM_DESCRIPTION_LENGTH
protected String itemId
protected String itemName
protected String itemDescription
protected BigDecimal itemQuantity
protected BigDecimal itemPrice
protected boolean itemTaxable
public static OrderItem createOrderItem()
public String getItemId()
public void setItemId(String itemId)
itemId - the itemId to setpublic String getItemName()
public void setItemName(String itemName)
itemName - the itemName to setpublic String getItemDescription()
public void setItemDescription(String itemDescription)
itemDescription - the itemDescription to setpublic BigDecimal getItemQuantity()
public void setItemQuantity(BigDecimal itemQuantity)
itemQuantity - the itemQuantity to setpublic void setItemQuantity(String itemQuantity)
itemQuantity - the itemQuantity to setpublic BigDecimal getItemPrice()
public void setItemPrice(BigDecimal itemPrice)
itemPrice - the itemPrice to setpublic void setItemPrice(String itemPrice)
itemPrice - the itemPrice to setpublic boolean isItemTaxable()
public void setItemTaxable(boolean itemTaxable)
itemTaxable - the itemTaxable to setpublic void setItemTaxable(String itemTaxable)
itemTaxable - the itemTaxable to setCopyright © 2016. All Rights Reserved.