Class OrderItemBean
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.order.OrderItemBean
- All Implemented Interfaces:
BusinessObject
,OrderItem
,Serializable
Object representing an order item within the system.
OrderItemBean
is the default implementation of the
OrderItem
interface for the application.
The database stores order items in the sscOrderItem
table, and
this interface can be used to represent a single row of that table. The
Hibernate configuration file OrderItem.hbm.xml
maps that
table's columns to the properties in this object.
- Author:
- David Tobey
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate Double
private String
private Double
private String
private Collection
private String
private String
private String
private String
private String
private String
private String
private String
private String
private String
private boolean
private boolean
(package private) static org.apache.commons.logging.Log
private Manufacturer
private Integer
private String
private Order
private OrderDelivery
private int
private Collection
private int
private Collection
private int
private Collection
private Product
private int
private Double
private int
private String
private static final long
private String
private Double
private Double
private Double
private Double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFormatting
(Locale locale, String currencyCode) getCode()
getImage()
boolean
boolean
double
double
getName()
getOrder()
int
int
int
int
int
getTotal()
void
setActive
(boolean isActive) void
setAltPrice
(Double altPrice) void
void
setCostTotal
(Double costTotal) void
setDecrementedSKUs
(String decrementedSKUs) void
setDiscounts
(Collection discounts) void
void
void
void
void
void
setFormattedAltPrice
(String formattedAltPrice) void
setFormattedCost
(String formattedCost) void
setFormattedPrice
(String formattedPrice) void
setFormattedTotal
(String formattedTotal) void
void
setIsActive
(boolean isActive) void
setIsTaxed
(boolean isTaxed) void
setManufacturer
(Manufacturer manufacturer) void
setManufacturerID
(Integer manufacturerID) void
void
void
setOrderDelivery
(OrderDelivery orderDelivery) void
setOrderDeliveryID
(int orderDeliveryID) void
setOrderDiscounts
(Collection orderDiscounts) void
setOrderID
(int orderID) void
setOrderItemAttributes
(Collection orderAttributes) void
setOrderItemID
(int orderItemID) void
setOrderShippingRules
(Collection orderShippingRules) void
setProduct
(Product product) void
setProductID
(int productID) void
setProductWeight
(Double productWeight) void
setQuantity
(int quantity) void
setSeoCode
(String seoCode) void
setShortDescription
(String shortDescription) void
setTaxed
(boolean isTaxed) void
void
setUnitCost
(Double unitCost) void
setUnitPrice
(Double unitPrice) void
Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessObject
initialize
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.softslate.commerce.businessobjects.core.BusinessObject
initialize
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
log
static org.apache.commons.logging.Log log -
orderItemID
private int orderItemID -
orderDeliveryID
private int orderDeliveryID -
orderID
private int orderID -
total
-
formattedTotal
-
weight
-
costTotal
-
quantity
private int quantity -
isActive
private boolean isActive -
productID
private int productID -
manufacturerID
-
code
-
seoCode
-
name
-
unitPrice
-
unitCost
-
altPrice
-
productWeight
-
formattedCost
-
formattedPrice
-
formattedAltPrice
-
isTaxed
private boolean isTaxed -
image
-
shortDescription
-
extra1
-
extra2
-
extra3
-
extra4
-
extra5
-
decrementedSKUs
-
orderItemAttributes
-
order
-
orderDelivery
-
product
-
manufacturer
-
orderDiscounts
-
orderShippingRules
-
discounts
-
-
Constructor Details
-
OrderItemBean
public OrderItemBean()
-
-
Method Details
-
getOrderItemID
public int getOrderItemID()- Specified by:
getOrderItemID
in interfaceOrderItem
-
setOrderItemID
public void setOrderItemID(int orderItemID) - Specified by:
setOrderItemID
in interfaceOrderItem
-
getOrderDeliveryID
public int getOrderDeliveryID()- Specified by:
getOrderDeliveryID
in interfaceOrderItem
-
setOrderDeliveryID
public void setOrderDeliveryID(int orderDeliveryID) - Specified by:
setOrderDeliveryID
in interfaceOrderItem
-
getOrderID
public int getOrderID()- Specified by:
getOrderID
in interfaceOrderItem
-
setOrderID
public void setOrderID(int orderID) - Specified by:
setOrderID
in interfaceOrderItem
-
getTotal
-
setTotal
-
getFormattedTotal
- Specified by:
getFormattedTotal
in interfaceOrderItem
-
setFormattedTotal
- Specified by:
setFormattedTotal
in interfaceOrderItem
-
getWeight
-
setWeight
-
getCostTotal
- Specified by:
getCostTotal
in interfaceOrderItem
-
setCostTotal
- Specified by:
setCostTotal
in interfaceOrderItem
-
getQuantity
public int getQuantity()- Specified by:
getQuantity
in interfaceOrderItem
-
setQuantity
public void setQuantity(int quantity) - Specified by:
setQuantity
in interfaceOrderItem
-
getIsActive
public boolean getIsActive()- Specified by:
getIsActive
in interfaceOrderItem
-
setIsActive
public void setIsActive(boolean isActive) - Specified by:
setIsActive
in interfaceOrderItem
-
getProductID
public int getProductID()- Specified by:
getProductID
in interfaceOrderItem
-
setProductID
public void setProductID(int productID) - Specified by:
setProductID
in interfaceOrderItem
-
getManufacturerID
- Specified by:
getManufacturerID
in interfaceOrderItem
-
setManufacturerID
- Specified by:
setManufacturerID
in interfaceOrderItem
-
getCode
-
setCode
-
getSeoCode
- Specified by:
getSeoCode
in interfaceOrderItem
-
setSeoCode
- Specified by:
setSeoCode
in interfaceOrderItem
-
getName
-
setName
-
getUnitPrice
- Specified by:
getUnitPrice
in interfaceOrderItem
-
setUnitPrice
- Specified by:
setUnitPrice
in interfaceOrderItem
-
getUnitCost
- Specified by:
getUnitCost
in interfaceOrderItem
-
setUnitCost
- Specified by:
setUnitCost
in interfaceOrderItem
-
getAltPrice
- Specified by:
getAltPrice
in interfaceOrderItem
-
setAltPrice
- Specified by:
setAltPrice
in interfaceOrderItem
-
getProductWeight
- Specified by:
getProductWeight
in interfaceOrderItem
-
setProductWeight
- Specified by:
setProductWeight
in interfaceOrderItem
-
getFormattedCost
- Specified by:
getFormattedCost
in interfaceOrderItem
-
setFormattedCost
- Specified by:
setFormattedCost
in interfaceOrderItem
-
getFormattedPrice
- Specified by:
getFormattedPrice
in interfaceOrderItem
-
setFormattedPrice
- Specified by:
setFormattedPrice
in interfaceOrderItem
-
getFormattedAltPrice
- Specified by:
getFormattedAltPrice
in interfaceOrderItem
-
setFormattedAltPrice
- Specified by:
setFormattedAltPrice
in interfaceOrderItem
-
getIsTaxed
public boolean getIsTaxed()- Specified by:
getIsTaxed
in interfaceOrderItem
-
setIsTaxed
public void setIsTaxed(boolean isTaxed) - Specified by:
setIsTaxed
in interfaceOrderItem
-
getImage
-
setImage
-
getExtra1
-
setExtra1
-
getExtra2
-
setExtra2
-
getExtra3
-
setExtra3
-
getExtra4
-
setExtra4
-
getExtra5
-
setExtra5
-
getShortDescription
- Specified by:
getShortDescription
in interfaceOrderItem
-
setShortDescription
- Specified by:
setShortDescription
in interfaceOrderItem
-
getDecrementedSKUs
- Specified by:
getDecrementedSKUs
in interfaceOrderItem
-
setDecrementedSKUs
- Specified by:
setDecrementedSKUs
in interfaceOrderItem
-
setActive
public void setActive(boolean isActive) -
setTaxed
public void setTaxed(boolean isTaxed) -
getOrderItemAttributes
- Specified by:
getOrderItemAttributes
in interfaceOrderItem
-
setOrderItemAttributes
- Specified by:
setOrderItemAttributes
in interfaceOrderItem
-
getOrder
-
setOrder
-
getOrderDelivery
- Specified by:
getOrderDelivery
in interfaceOrderItem
-
setOrderDelivery
- Specified by:
setOrderDelivery
in interfaceOrderItem
-
getProduct
- Specified by:
getProduct
in interfaceOrderItem
-
setProduct
- Specified by:
setProduct
in interfaceOrderItem
-
getManufacturer
- Specified by:
getManufacturer
in interfaceOrderItem
-
setManufacturer
- Specified by:
setManufacturer
in interfaceOrderItem
-
getOrderDiscounts
- Specified by:
getOrderDiscounts
in interfaceOrderItem
-
setOrderDiscounts
- Specified by:
setOrderDiscounts
in interfaceOrderItem
-
getOrderShippingRules
- Specified by:
getOrderShippingRules
in interfaceOrderItem
-
setOrderShippingRules
- Specified by:
setOrderShippingRules
in interfaceOrderItem
-
getDiscounts
- Specified by:
getDiscounts
in interfaceOrderItem
-
setDiscounts
- Specified by:
setDiscounts
in interfaceOrderItem
-
getItemDiscountTotal
public double getItemDiscountTotal()- Specified by:
getItemDiscountTotal
in interfaceOrderItem
-
getItemUnitPrice
public double getItemUnitPrice()- Specified by:
getItemUnitPrice
in interfaceOrderItem
-
addFormatting
- Specified by:
addFormatting
in interfaceOrderItem
-