com.softslate.commerce.businessobjects.order
Class OrderItemBean

java.lang.Object
  extended bycom.softslate.commerce.businessobjects.core.BaseBusinessObject
      extended bycom.softslate.commerce.businessobjects.order.OrderItemBean
All Implemented Interfaces:
BusinessObject, OrderItem, java.io.Serializable

public class OrderItemBean
extends BaseBusinessObject
implements OrderItem, java.io.Serializable

Object representing an order item within the system.

OrderItemBean is the default implementation of the OrderItem interface for the application.

Author:
David Tobey
See Also:
OrderItem, Serialized Form

Field Summary
private  double altPrice
           
private  java.lang.String code
           
private  java.lang.String decrementedSKUs
           
private  java.lang.String extra1
           
private  java.lang.String extra2
           
private  java.lang.String extra3
           
private  java.lang.String extra4
           
private  java.lang.String extra5
           
private  java.lang.String formattedAltPrice
           
private  java.lang.String formattedCost
           
private  java.lang.String formattedPrice
           
private  java.lang.String formattedTotal
           
private  java.lang.String image
           
private  boolean isActive
           
private  boolean isTaxed
           
(package private) static org.apache.commons.logging.Log log
           
private  java.lang.String name
           
private  int orderDeliveryID
           
private  int orderID
           
private  java.util.Collection orderItemAttributes
           
private  int orderItemID
           
private  int productID
           
private  double productWeight
           
private  int quantity
           
private static long serialVersionUID
           
private  java.lang.String shortDescription
           
private  double total
           
private  double unitCost
           
private  double unitPrice
           
private  double weight
           
 
Constructor Summary
OrderItemBean()
           
 
Method Summary
 void addFormatting(java.util.Locale locale, java.lang.String currencyCode)
           
 double getAltPrice()
           
 java.lang.String getCode()
           
 java.lang.String getDecrementedSKUs()
           
 java.lang.String getExtra1()
           
 java.lang.String getExtra2()
           
 java.lang.String getExtra3()
           
 java.lang.String getExtra4()
           
 java.lang.String getExtra5()
           
 java.lang.String getFormattedAltPrice()
           
 java.lang.String getFormattedCost()
           
 java.lang.String getFormattedPrice()
           
 java.lang.String getFormattedTotal()
           
 java.lang.String getImage()
           
 boolean getIsActive()
           
 boolean getIsTaxed()
           
 java.lang.String getName()
           
 int getOrderDeliveryID()
           
 int getOrderID()
           
 java.util.Collection getOrderItemAttributes()
           
 int getOrderItemID()
           
 int getProductID()
           
 double getProductWeight()
           
 int getQuantity()
           
 java.lang.String getShortDescription()
           
 double getTotal()
           
 double getUnitCost()
           
 double getUnitPrice()
           
 double getWeight()
           
 void setActive(boolean isActive)
           
 void setAltPrice(double altPrice)
           
 void setCode(java.lang.String code)
           
 void setDecrementedSKUs(java.lang.String decrementedSKUs)
           
 void setExtra1(java.lang.String extra1)
           
 void setExtra2(java.lang.String extra2)
           
 void setExtra3(java.lang.String extra3)
           
 void setExtra4(java.lang.String extra4)
           
 void setExtra5(java.lang.String extra5)
           
 void setFormattedAltPrice(java.lang.String formattedAltPrice)
           
 void setFormattedCost(java.lang.String formattedCost)
           
 void setFormattedPrice(java.lang.String formattedPrice)
           
 void setFormattedTotal(java.lang.String formattedTotal)
           
 void setImage(java.lang.String image)
           
 void setIsActive(boolean isActive)
           
 void setIsTaxed(boolean isTaxed)
           
 void setName(java.lang.String name)
           
 void setOrderDeliveryID(int orderDeliveryID)
           
 void setOrderID(int orderID)
           
 void setOrderItemAttributes(java.util.Collection orderAttributes)
           
 void setOrderItemID(int orderItemID)
           
 void setProductID(int productID)
           
 void setProductWeight(double productWeight)
           
 void setQuantity(int quantity)
           
 void setShortDescription(java.lang.String shortDescription)
           
 void setTaxed(boolean isTaxed)
           
 void setTotal(double total)
           
 void setUnitCost(double unitCost)
           
 void setUnitPrice(double unitPrice)
           
 void setWeight(double weight)
           
 
Methods inherited from class com.softslate.commerce.businessobjects.core.BaseBusinessObject
formatDateTime, initialize, parseDateTime, prepareRequestData, sendHTTPPost
 
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 Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

log

static org.apache.commons.logging.Log log

orderItemID

private int orderItemID

orderDeliveryID

private int orderDeliveryID

orderID

private int orderID

total

private double total

formattedTotal

private java.lang.String formattedTotal

weight

private double weight

quantity

private int quantity

isActive

private boolean isActive

productID

private int productID

code

private java.lang.String code

name

private java.lang.String name

unitPrice

private double unitPrice

unitCost

private double unitCost

altPrice

private double altPrice

productWeight

private double productWeight

formattedCost

private java.lang.String formattedCost

formattedPrice

private java.lang.String formattedPrice

formattedAltPrice

private java.lang.String formattedAltPrice

isTaxed

private boolean isTaxed

image

private java.lang.String image

shortDescription

private java.lang.String shortDescription

extra1

private java.lang.String extra1

extra2

private java.lang.String extra2

extra3

private java.lang.String extra3

extra4

private java.lang.String extra4

extra5

private java.lang.String extra5

decrementedSKUs

private java.lang.String decrementedSKUs

orderItemAttributes

private java.util.Collection orderItemAttributes
Constructor Detail

OrderItemBean

public OrderItemBean()
Method Detail

getOrderItemID

public int getOrderItemID()
Specified by:
getOrderItemID in interface OrderItem

setOrderItemID

public void setOrderItemID(int orderItemID)
Specified by:
setOrderItemID in interface OrderItem

getOrderDeliveryID

public int getOrderDeliveryID()
Specified by:
getOrderDeliveryID in interface OrderItem

setOrderDeliveryID

public void setOrderDeliveryID(int orderDeliveryID)
Specified by:
setOrderDeliveryID in interface OrderItem

getOrderID

public int getOrderID()
Specified by:
getOrderID in interface OrderItem

setOrderID

public void setOrderID(int orderID)
Specified by:
setOrderID in interface OrderItem

getTotal

public double getTotal()
Specified by:
getTotal in interface OrderItem

setTotal

public void setTotal(double total)
Specified by:
setTotal in interface OrderItem

getFormattedTotal

public java.lang.String getFormattedTotal()
Specified by:
getFormattedTotal in interface OrderItem

setFormattedTotal

public void setFormattedTotal(java.lang.String formattedTotal)
Specified by:
setFormattedTotal in interface OrderItem

getWeight

public double getWeight()
Specified by:
getWeight in interface OrderItem

setWeight

public void setWeight(double weight)
Specified by:
setWeight in interface OrderItem

getQuantity

public int getQuantity()
Specified by:
getQuantity in interface OrderItem

setQuantity

public void setQuantity(int quantity)
Specified by:
setQuantity in interface OrderItem

getIsActive

public boolean getIsActive()
Specified by:
getIsActive in interface OrderItem

setIsActive

public void setIsActive(boolean isActive)
Specified by:
setIsActive in interface OrderItem

getProductID

public int getProductID()
Specified by:
getProductID in interface OrderItem

setProductID

public void setProductID(int productID)
Specified by:
setProductID in interface OrderItem

getCode

public java.lang.String getCode()
Specified by:
getCode in interface OrderItem

setCode

public void setCode(java.lang.String code)
Specified by:
setCode in interface OrderItem

getName

public java.lang.String getName()
Specified by:
getName in interface OrderItem

setName

public void setName(java.lang.String name)
Specified by:
setName in interface OrderItem

getUnitPrice

public double getUnitPrice()
Specified by:
getUnitPrice in interface OrderItem

setUnitPrice

public void setUnitPrice(double unitPrice)
Specified by:
setUnitPrice in interface OrderItem

getUnitCost

public double getUnitCost()
Specified by:
getUnitCost in interface OrderItem

setUnitCost

public void setUnitCost(double unitCost)
Specified by:
setUnitCost in interface OrderItem

getAltPrice

public double getAltPrice()
Specified by:
getAltPrice in interface OrderItem

setAltPrice

public void setAltPrice(double altPrice)
Specified by:
setAltPrice in interface OrderItem

getProductWeight

public double getProductWeight()
Specified by:
getProductWeight in interface OrderItem

setProductWeight

public void setProductWeight(double productWeight)
Specified by:
setProductWeight in interface OrderItem

getFormattedCost

public java.lang.String getFormattedCost()
Specified by:
getFormattedCost in interface OrderItem

setFormattedCost

public void setFormattedCost(java.lang.String formattedCost)
Specified by:
setFormattedCost in interface OrderItem

getFormattedPrice

public java.lang.String getFormattedPrice()
Specified by:
getFormattedPrice in interface OrderItem

setFormattedPrice

public void setFormattedPrice(java.lang.String formattedPrice)
Specified by:
setFormattedPrice in interface OrderItem

getFormattedAltPrice

public java.lang.String getFormattedAltPrice()
Specified by:
getFormattedAltPrice in interface OrderItem

setFormattedAltPrice

public void setFormattedAltPrice(java.lang.String formattedAltPrice)
Specified by:
setFormattedAltPrice in interface OrderItem

getIsTaxed

public boolean getIsTaxed()
Specified by:
getIsTaxed in interface OrderItem

setIsTaxed

public void setIsTaxed(boolean isTaxed)
Specified by:
setIsTaxed in interface OrderItem

getImage

public java.lang.String getImage()
Specified by:
getImage in interface OrderItem

setImage

public void setImage(java.lang.String image)
Specified by:
setImage in interface OrderItem

getExtra1

public java.lang.String getExtra1()
Specified by:
getExtra1 in interface OrderItem

setExtra1

public void setExtra1(java.lang.String extra1)
Specified by:
setExtra1 in interface OrderItem

getExtra2

public java.lang.String getExtra2()
Specified by:
getExtra2 in interface OrderItem

setExtra2

public void setExtra2(java.lang.String extra2)
Specified by:
setExtra2 in interface OrderItem

getExtra3

public java.lang.String getExtra3()
Specified by:
getExtra3 in interface OrderItem

setExtra3

public void setExtra3(java.lang.String extra3)
Specified by:
setExtra3 in interface OrderItem

getExtra4

public java.lang.String getExtra4()
Specified by:
getExtra4 in interface OrderItem

setExtra4

public void setExtra4(java.lang.String extra4)
Specified by:
setExtra4 in interface OrderItem

getExtra5

public java.lang.String getExtra5()
Specified by:
getExtra5 in interface OrderItem

setExtra5

public void setExtra5(java.lang.String extra5)
Specified by:
setExtra5 in interface OrderItem

getShortDescription

public java.lang.String getShortDescription()
Specified by:
getShortDescription in interface OrderItem

setShortDescription

public void setShortDescription(java.lang.String shortDescription)
Specified by:
setShortDescription in interface OrderItem

getDecrementedSKUs

public java.lang.String getDecrementedSKUs()
Specified by:
getDecrementedSKUs in interface OrderItem

setDecrementedSKUs

public void setDecrementedSKUs(java.lang.String decrementedSKUs)
Specified by:
setDecrementedSKUs in interface OrderItem

setActive

public void setActive(boolean isActive)

setTaxed

public void setTaxed(boolean isTaxed)

getOrderItemAttributes

public java.util.Collection getOrderItemAttributes()
Specified by:
getOrderItemAttributes in interface OrderItem

setOrderItemAttributes

public void setOrderItemAttributes(java.util.Collection orderAttributes)
Specified by:
setOrderItemAttributes in interface OrderItem

addFormatting

public void addFormatting(java.util.Locale locale,
                          java.lang.String currencyCode)
Specified by:
addFormatting in interface OrderItem


Copyright © SoftSlate, Inc. 2003–2005