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
FieldsModifier and TypeFieldDescriptionprivate Doubleprivate Stringprivate Doubleprivate Stringprivate Collectionprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate booleanprivate boolean(package private) static org.apache.commons.logging.Logprivate Manufacturerprivate Integerprivate Stringprivate Orderprivate OrderDeliveryprivate intprivate Collectionprivate intprivate Collectionprivate intprivate Collectionprivate Productprivate intprivate Doubleprivate intprivate Stringprivate static final longprivate Stringprivate Doubleprivate Doubleprivate Doubleprivate Double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFormatting(Locale locale, String currencyCode) getCode()getImage()booleanbooleandoubledoublegetName()getOrder()intintintintintgetTotal()voidsetActive(boolean isActive) voidsetAltPrice(Double altPrice) voidvoidsetCostTotal(Double costTotal) voidsetDecrementedSKUs(String decrementedSKUs) voidsetDiscounts(Collection discounts) voidvoidvoidvoidvoidvoidsetFormattedAltPrice(String formattedAltPrice) voidsetFormattedCost(String formattedCost) voidsetFormattedPrice(String formattedPrice) voidsetFormattedTotal(String formattedTotal) voidvoidsetIsActive(boolean isActive) voidsetIsTaxed(boolean isTaxed) voidsetManufacturer(Manufacturer manufacturer) voidsetManufacturerID(Integer manufacturerID) voidvoidvoidsetOrderDelivery(OrderDelivery orderDelivery) voidsetOrderDeliveryID(int orderDeliveryID) voidsetOrderDiscounts(Collection orderDiscounts) voidsetOrderID(int orderID) voidsetOrderItemAttributes(Collection orderAttributes) voidsetOrderItemID(int orderItemID) voidsetOrderShippingRules(Collection orderShippingRules) voidsetProduct(Product product) voidsetProductID(int productID) voidsetProductWeight(Double productWeight) voidsetQuantity(int quantity) voidsetSeoCode(String seoCode) voidsetShortDescription(String shortDescription) voidsetTaxed(boolean isTaxed) voidvoidsetUnitCost(Double unitCost) voidsetUnitPrice(Double unitPrice) voidMethods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessObject
initializeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
getOrderItemIDin interfaceOrderItem
-
setOrderItemID
public void setOrderItemID(int orderItemID) - Specified by:
setOrderItemIDin interfaceOrderItem
-
getOrderDeliveryID
public int getOrderDeliveryID()- Specified by:
getOrderDeliveryIDin interfaceOrderItem
-
setOrderDeliveryID
public void setOrderDeliveryID(int orderDeliveryID) - Specified by:
setOrderDeliveryIDin interfaceOrderItem
-
getOrderID
public int getOrderID()- Specified by:
getOrderIDin interfaceOrderItem
-
setOrderID
public void setOrderID(int orderID) - Specified by:
setOrderIDin interfaceOrderItem
-
getTotal
-
setTotal
-
getFormattedTotal
- Specified by:
getFormattedTotalin interfaceOrderItem
-
setFormattedTotal
- Specified by:
setFormattedTotalin interfaceOrderItem
-
getWeight
-
setWeight
-
getCostTotal
- Specified by:
getCostTotalin interfaceOrderItem
-
setCostTotal
- Specified by:
setCostTotalin interfaceOrderItem
-
getQuantity
public int getQuantity()- Specified by:
getQuantityin interfaceOrderItem
-
setQuantity
public void setQuantity(int quantity) - Specified by:
setQuantityin interfaceOrderItem
-
getIsActive
public boolean getIsActive()- Specified by:
getIsActivein interfaceOrderItem
-
setIsActive
public void setIsActive(boolean isActive) - Specified by:
setIsActivein interfaceOrderItem
-
getProductID
public int getProductID()- Specified by:
getProductIDin interfaceOrderItem
-
setProductID
public void setProductID(int productID) - Specified by:
setProductIDin interfaceOrderItem
-
getManufacturerID
- Specified by:
getManufacturerIDin interfaceOrderItem
-
setManufacturerID
- Specified by:
setManufacturerIDin interfaceOrderItem
-
getCode
-
setCode
-
getSeoCode
- Specified by:
getSeoCodein interfaceOrderItem
-
setSeoCode
- Specified by:
setSeoCodein interfaceOrderItem
-
getName
-
setName
-
getUnitPrice
- Specified by:
getUnitPricein interfaceOrderItem
-
setUnitPrice
- Specified by:
setUnitPricein interfaceOrderItem
-
getUnitCost
- Specified by:
getUnitCostin interfaceOrderItem
-
setUnitCost
- Specified by:
setUnitCostin interfaceOrderItem
-
getAltPrice
- Specified by:
getAltPricein interfaceOrderItem
-
setAltPrice
- Specified by:
setAltPricein interfaceOrderItem
-
getProductWeight
- Specified by:
getProductWeightin interfaceOrderItem
-
setProductWeight
- Specified by:
setProductWeightin interfaceOrderItem
-
getFormattedCost
- Specified by:
getFormattedCostin interfaceOrderItem
-
setFormattedCost
- Specified by:
setFormattedCostin interfaceOrderItem
-
getFormattedPrice
- Specified by:
getFormattedPricein interfaceOrderItem
-
setFormattedPrice
- Specified by:
setFormattedPricein interfaceOrderItem
-
getFormattedAltPrice
- Specified by:
getFormattedAltPricein interfaceOrderItem
-
setFormattedAltPrice
- Specified by:
setFormattedAltPricein interfaceOrderItem
-
getIsTaxed
public boolean getIsTaxed()- Specified by:
getIsTaxedin interfaceOrderItem
-
setIsTaxed
public void setIsTaxed(boolean isTaxed) - Specified by:
setIsTaxedin interfaceOrderItem
-
getImage
-
setImage
-
getExtra1
-
setExtra1
-
getExtra2
-
setExtra2
-
getExtra3
-
setExtra3
-
getExtra4
-
setExtra4
-
getExtra5
-
setExtra5
-
getShortDescription
- Specified by:
getShortDescriptionin interfaceOrderItem
-
setShortDescription
- Specified by:
setShortDescriptionin interfaceOrderItem
-
getDecrementedSKUs
- Specified by:
getDecrementedSKUsin interfaceOrderItem
-
setDecrementedSKUs
- Specified by:
setDecrementedSKUsin interfaceOrderItem
-
setActive
public void setActive(boolean isActive) -
setTaxed
public void setTaxed(boolean isTaxed) -
getOrderItemAttributes
- Specified by:
getOrderItemAttributesin interfaceOrderItem
-
setOrderItemAttributes
- Specified by:
setOrderItemAttributesin interfaceOrderItem
-
getOrder
-
setOrder
-
getOrderDelivery
- Specified by:
getOrderDeliveryin interfaceOrderItem
-
setOrderDelivery
- Specified by:
setOrderDeliveryin interfaceOrderItem
-
getProduct
- Specified by:
getProductin interfaceOrderItem
-
setProduct
- Specified by:
setProductin interfaceOrderItem
-
getManufacturer
- Specified by:
getManufacturerin interfaceOrderItem
-
setManufacturer
- Specified by:
setManufacturerin interfaceOrderItem
-
getOrderDiscounts
- Specified by:
getOrderDiscountsin interfaceOrderItem
-
setOrderDiscounts
- Specified by:
setOrderDiscountsin interfaceOrderItem
-
getOrderShippingRules
- Specified by:
getOrderShippingRulesin interfaceOrderItem
-
setOrderShippingRules
- Specified by:
setOrderShippingRulesin interfaceOrderItem
-
getDiscounts
- Specified by:
getDiscountsin interfaceOrderItem
-
setDiscounts
- Specified by:
setDiscountsin interfaceOrderItem
-
getItemDiscountTotal
public double getItemDiscountTotal()- Specified by:
getItemDiscountTotalin interfaceOrderItem
-
getItemUnitPrice
public double getItemUnitPrice()- Specified by:
getItemUnitPricein interfaceOrderItem
-
addFormatting
- Specified by:
addFormattingin interfaceOrderItem
-