Class OrderBean
java.lang.Object
com.softslate.commerce.businessobjects.core.BaseBusinessObject
com.softslate.commerce.businessobjects.order.OrderBean
- All Implemented Interfaces:
BusinessObject
,Order
,Serializable
Object representing an order within the system.
OrderBean
is
the default implementation of the Order
interface for the
application.
The database stores orders in the sscOrder
table, and this
interface can be used to represent a single row of that table. The Hibernate
configuration file OrderBean.hbm.xml
maps that table's columns
to the properties in this object.
- Author:
- David Tobey
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprivate String
private String
private String
private String
private String
private String
private String
private Customer
private Integer
private String
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 String
private String
private String
private String
private String
private String
(package private) static org.apache.commons.logging.Log
private String
private Collection
private Collection
private int
private Collection
private Integer
private Map
private Collection
private String
private String
private Collection
private String
private String
private String
private Integer
private static final long
private Double
private String
private boolean
private String
private String
private String
private Double
private Double
private Double
private Double
private String
private String
private Double
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addFormatting
(Locale locale, String currencyCode) getCity()
getNotes()
int
boolean
getState()
getTax()
getTotal()
void
setAddress1
(String address1) void
setAddress2
(String address2) void
setAutoSavedCartToken
(String autoSavedCartToken) void
setBillingAddress1
(String billingAddress1) void
setBillingAddress2
(String billingAddress2) void
setBillingCity
(String billingCity) void
setBillingCountry
(String billingCountry) void
setBillingEmail1
(String billingEmail1) void
setBillingEmail2
(String billingEmail2) void
setBillingExtra1
(String billingExtra1) void
setBillingExtra2
(String billingExtra2) void
setBillingExtra3
(String billingExtra3) void
setBillingExtra4
(String billingExtra4) void
setBillingExtra5
(String billingExtra5) void
setBillingFirstName
(String billingFirstName) void
setBillingLastName
(String billingLastName) void
setBillingNotes
(String billingNotes) void
setBillingOrganization
(String billingOrganization) void
setBillingPhone1
(String billingPhone1) void
setBillingPhone2
(String billingPhone2) void
setBillingPostalCode
(String billingPostalCode) void
setBillingState
(String billingState) void
void
setCompleted
(String completed) void
setCountry
(String country) void
setCreated
(String created) void
setCustomer
(Customer customer) void
setCustomerID
(Integer customerID) void
void
void
setEstimatedShippingOptions
(Collection estimatedShippingOptions) void
void
void
void
void
void
setFirstName
(String firstName) void
setFormattedCompleted
(String formattedCompleted) void
setFormattedCreated
(String formattedCreated) void
setFormattedLastModified
(String formattedLastModified) void
setFormattedShipping
(String formattedShipping) void
setFormattedSubtotal
(String formattedSubtotal) void
setFormattedTax
(String formattedTax) void
setFormattedTaxableSubtotal
(String formattedTaxableSubtotal) void
setFormattedTotal
(String formattedTotal) void
setLastModified
(String lastModified) void
setLastName
(String lastName) void
void
setOrderDeliveryCollection
(Collection orderDeliveryCollection) void
setOrderDiscounts
(Collection orderDiscounts) void
setOrderID
(int orderID) void
setOrderItemCollection
(Collection orderItemCollection) void
setOrderNumber
(Integer orderNumber) void
setOrderSettings
(Map orderSettings) void
setOrderShippingRules
(Collection orderShippingRules) void
setOrganization
(String organization) void
setPaymentProfileID
(String paymentProfileID) void
setPayments
(Collection payments) void
void
void
setPostalCode
(String postalCode) void
setQuantity
(Integer quantity) void
setShipping
(Double shipping) void
setShippingMethod
(String shippingMethod) void
setSkipAddressValidation
(boolean skipAddressValidation) void
void
void
setStatusDetails
(String statusDetails) void
setSubtotal
(Double subtotal) void
void
setTaxableSubtotal
(Double taxableSubtotal) void
void
setTrackingNumber
(String trackingNumber) void
setUserName
(String userName) 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 -
orderID
private int orderID -
customerID
-
userName
-
orderNumber
-
trackingNumber
-
total
-
shipping
-
tax
-
taxableSubtotal
-
subtotal
-
weight
-
quantity
-
formattedTotal
-
formattedShipping
-
formattedTax
-
formattedTaxableSubtotal
-
formattedSubtotal
-
created
-
lastModified
-
completed
-
formattedCreated
-
formattedLastModified
-
formattedCompleted
-
status
-
statusDetails
-
shippingMethod
-
firstName
-
lastName
-
organization
-
address1
-
address2
-
city
-
state
-
country
-
postalCode
-
phone1
-
phone2
-
email1
-
email2
-
extra1
-
extra2
-
extra3
-
extra4
-
extra5
-
notes
-
autoSavedCartToken
-
orderDeliveryCollection
-
orderItemCollection
-
payments
-
orderDiscounts
-
customer
-
orderShippingRules
-
estimatedShippingOptions
-
paymentProfileID
-
skipAddressValidation
private boolean skipAddressValidation -
orderSettings
-
-
Constructor Details
-
OrderBean
public OrderBean()
-
-
Method Details
-
getOrderID
public int getOrderID()- Specified by:
getOrderID
in interfaceOrder
-
setOrderID
public void setOrderID(int orderID) - Specified by:
setOrderID
in interfaceOrder
-
getCustomerID
- Specified by:
getCustomerID
in interfaceOrder
-
setCustomerID
- Specified by:
setCustomerID
in interfaceOrder
-
getUserName
- Specified by:
getUserName
in interfaceOrder
-
setUserName
- Specified by:
setUserName
in interfaceOrder
-
getOrderNumber
- Specified by:
getOrderNumber
in interfaceOrder
-
setOrderNumber
- Specified by:
setOrderNumber
in interfaceOrder
-
getTrackingNumber
- Specified by:
getTrackingNumber
in interfaceOrder
-
setTrackingNumber
- Specified by:
setTrackingNumber
in interfaceOrder
-
getTotal
-
setTotal
-
getShipping
- Specified by:
getShipping
in interfaceOrder
-
setShipping
- Specified by:
setShipping
in interfaceOrder
-
getTax
-
setTax
-
getTaxableSubtotal
- Specified by:
getTaxableSubtotal
in interfaceOrder
-
setTaxableSubtotal
- Specified by:
setTaxableSubtotal
in interfaceOrder
-
getSubtotal
- Specified by:
getSubtotal
in interfaceOrder
-
setSubtotal
- Specified by:
setSubtotal
in interfaceOrder
-
getWeight
-
setWeight
-
getQuantity
- Specified by:
getQuantity
in interfaceOrder
-
setQuantity
- Specified by:
setQuantity
in interfaceOrder
-
getFormattedTotal
- Specified by:
getFormattedTotal
in interfaceOrder
-
setFormattedTotal
- Specified by:
setFormattedTotal
in interfaceOrder
-
getFormattedShipping
- Specified by:
getFormattedShipping
in interfaceOrder
-
setFormattedShipping
- Specified by:
setFormattedShipping
in interfaceOrder
-
getFormattedTax
- Specified by:
getFormattedTax
in interfaceOrder
-
setFormattedTax
- Specified by:
setFormattedTax
in interfaceOrder
-
getFormattedTaxableSubtotal
- Specified by:
getFormattedTaxableSubtotal
in interfaceOrder
-
setFormattedTaxableSubtotal
- Specified by:
setFormattedTaxableSubtotal
in interfaceOrder
-
getFormattedSubtotal
- Specified by:
getFormattedSubtotal
in interfaceOrder
-
setFormattedSubtotal
- Specified by:
setFormattedSubtotal
in interfaceOrder
-
getCreated
- Specified by:
getCreated
in interfaceOrder
-
setCreated
- Specified by:
setCreated
in interfaceOrder
-
getLastModified
- Specified by:
getLastModified
in interfaceOrder
-
setLastModified
- Specified by:
setLastModified
in interfaceOrder
-
getCompleted
- Specified by:
getCompleted
in interfaceOrder
-
setCompleted
- Specified by:
setCompleted
in interfaceOrder
-
getFormattedCreated
- Specified by:
getFormattedCreated
in interfaceOrder
-
setFormattedCreated
- Specified by:
setFormattedCreated
in interfaceOrder
-
getFormattedLastModified
- Specified by:
getFormattedLastModified
in interfaceOrder
-
setFormattedLastModified
- Specified by:
setFormattedLastModified
in interfaceOrder
-
getFormattedCompleted
- Specified by:
getFormattedCompleted
in interfaceOrder
-
setFormattedCompleted
- Specified by:
setFormattedCompleted
in interfaceOrder
-
getStatus
-
setStatus
-
getStatusDetails
- Specified by:
getStatusDetails
in interfaceOrder
-
setStatusDetails
- Specified by:
setStatusDetails
in interfaceOrder
-
getShippingMethod
- Specified by:
getShippingMethod
in interfaceOrder
-
setShippingMethod
- Specified by:
setShippingMethod
in interfaceOrder
-
getFirstName
- Specified by:
getFirstName
in interfaceOrder
-
setFirstName
- Specified by:
setFirstName
in interfaceOrder
-
getLastName
- Specified by:
getLastName
in interfaceOrder
-
setLastName
- Specified by:
setLastName
in interfaceOrder
-
getOrganization
- Specified by:
getOrganization
in interfaceOrder
-
setOrganization
- Specified by:
setOrganization
in interfaceOrder
-
getAddress1
- Specified by:
getAddress1
in interfaceOrder
-
setAddress1
- Specified by:
setAddress1
in interfaceOrder
-
getAddress2
- Specified by:
getAddress2
in interfaceOrder
-
setAddress2
- Specified by:
setAddress2
in interfaceOrder
-
getCity
-
setCity
-
getState
-
setState
-
getCountry
- Specified by:
getCountry
in interfaceOrder
-
setCountry
- Specified by:
setCountry
in interfaceOrder
-
getPostalCode
- Specified by:
getPostalCode
in interfaceOrder
-
setPostalCode
- Specified by:
setPostalCode
in interfaceOrder
-
getPhone1
-
setPhone1
-
getPhone2
-
setPhone2
-
getEmail1
-
setEmail1
-
getEmail2
-
setEmail2
-
getExtra1
-
setExtra1
-
getExtra2
-
setExtra2
-
getExtra3
-
setExtra3
-
getExtra4
-
setExtra4
-
getExtra5
-
setExtra5
-
getNotes
-
setNotes
-
getAutoSavedCartToken
- Specified by:
getAutoSavedCartToken
in interfaceOrder
-
setAutoSavedCartToken
- Specified by:
setAutoSavedCartToken
in interfaceOrder
-
getOrderDeliveryCollection
- Specified by:
getOrderDeliveryCollection
in interfaceOrder
-
setOrderDeliveryCollection
- Specified by:
setOrderDeliveryCollection
in interfaceOrder
-
getOrderItemCollection
- Specified by:
getOrderItemCollection
in interfaceOrder
-
setOrderItemCollection
- Specified by:
setOrderItemCollection
in interfaceOrder
-
getPayments
- Specified by:
getPayments
in interfaceOrder
-
setPayments
- Specified by:
setPayments
in interfaceOrder
-
getOrderDiscounts
- Specified by:
getOrderDiscounts
in interfaceOrder
-
setOrderDiscounts
- Specified by:
setOrderDiscounts
in interfaceOrder
-
getCustomer
- Specified by:
getCustomer
in interfaceOrder
-
setCustomer
- Specified by:
setCustomer
in interfaceOrder
-
getBillingFirstName
- Specified by:
getBillingFirstName
in interfaceOrder
-
setBillingFirstName
- Specified by:
setBillingFirstName
in interfaceOrder
-
getBillingLastName
- Specified by:
getBillingLastName
in interfaceOrder
-
setBillingLastName
- Specified by:
setBillingLastName
in interfaceOrder
-
getBillingOrganization
- Specified by:
getBillingOrganization
in interfaceOrder
-
setBillingOrganization
- Specified by:
setBillingOrganization
in interfaceOrder
-
getBillingAddress1
- Specified by:
getBillingAddress1
in interfaceOrder
-
setBillingAddress1
- Specified by:
setBillingAddress1
in interfaceOrder
-
getBillingAddress2
- Specified by:
getBillingAddress2
in interfaceOrder
-
setBillingAddress2
- Specified by:
setBillingAddress2
in interfaceOrder
-
getBillingCity
- Specified by:
getBillingCity
in interfaceOrder
-
setBillingCity
- Specified by:
setBillingCity
in interfaceOrder
-
getBillingState
- Specified by:
getBillingState
in interfaceOrder
-
setBillingState
- Specified by:
setBillingState
in interfaceOrder
-
getBillingCountry
- Specified by:
getBillingCountry
in interfaceOrder
-
setBillingCountry
- Specified by:
setBillingCountry
in interfaceOrder
-
getBillingPostalCode
- Specified by:
getBillingPostalCode
in interfaceOrder
-
setBillingPostalCode
- Specified by:
setBillingPostalCode
in interfaceOrder
-
getBillingPhone1
- Specified by:
getBillingPhone1
in interfaceOrder
-
setBillingPhone1
- Specified by:
setBillingPhone1
in interfaceOrder
-
getBillingPhone2
- Specified by:
getBillingPhone2
in interfaceOrder
-
setBillingPhone2
- Specified by:
setBillingPhone2
in interfaceOrder
-
getBillingEmail1
- Specified by:
getBillingEmail1
in interfaceOrder
-
setBillingEmail1
- Specified by:
setBillingEmail1
in interfaceOrder
-
getBillingEmail2
- Specified by:
getBillingEmail2
in interfaceOrder
-
setBillingEmail2
- Specified by:
setBillingEmail2
in interfaceOrder
-
getBillingExtra1
- Specified by:
getBillingExtra1
in interfaceOrder
-
setBillingExtra1
- Specified by:
setBillingExtra1
in interfaceOrder
-
getBillingExtra2
- Specified by:
getBillingExtra2
in interfaceOrder
-
setBillingExtra2
- Specified by:
setBillingExtra2
in interfaceOrder
-
getBillingExtra3
- Specified by:
getBillingExtra3
in interfaceOrder
-
setBillingExtra3
- Specified by:
setBillingExtra3
in interfaceOrder
-
getBillingExtra4
- Specified by:
getBillingExtra4
in interfaceOrder
-
setBillingExtra4
- Specified by:
setBillingExtra4
in interfaceOrder
-
getBillingExtra5
- Specified by:
getBillingExtra5
in interfaceOrder
-
setBillingExtra5
- Specified by:
setBillingExtra5
in interfaceOrder
-
getBillingNotes
- Specified by:
getBillingNotes
in interfaceOrder
-
setBillingNotes
- Specified by:
setBillingNotes
in interfaceOrder
-
firstDelivery
- Specified by:
firstDelivery
in interfaceOrder
-
addFormatting
- Specified by:
addFormatting
in interfaceOrder
-
getOrderShippingRules
- Specified by:
getOrderShippingRules
in interfaceOrder
-
setOrderShippingRules
- Specified by:
setOrderShippingRules
in interfaceOrder
-
getEstimatedShippingOptions
- Specified by:
getEstimatedShippingOptions
in interfaceOrder
-
setEstimatedShippingOptions
- Specified by:
setEstimatedShippingOptions
in interfaceOrder
-
getPaymentProfileID
- Specified by:
getPaymentProfileID
in interfaceOrder
-
setPaymentProfileID
- Specified by:
setPaymentProfileID
in interfaceOrder
-
getSkipAddressValidation
public boolean getSkipAddressValidation()- Specified by:
getSkipAddressValidation
in interfaceOrder
-
setSkipAddressValidation
public void setSkipAddressValidation(boolean skipAddressValidation) - Specified by:
setSkipAddressValidation
in interfaceOrder
-
getOrderSettings
- Specified by:
getOrderSettings
in interfaceOrder
-
setOrderSettings
- Specified by:
setOrderSettings
in interfaceOrder
-