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
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Customerprivate Integerprivate Stringprivate Stringprivate Collectionprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate Stringprivate String(package private) static org.apache.commons.logging.Logprivate Stringprivate Collectionprivate Collectionprivate intprivate Collectionprivate Integerprivate Mapprivate Collectionprivate Stringprivate Stringprivate Collectionprivate Stringprivate Stringprivate Stringprivate Integerprivate static final longprivate Doubleprivate Stringprivate booleanprivate Stringprivate Stringprivate Stringprivate Doubleprivate Doubleprivate Doubleprivate Doubleprivate Stringprivate Stringprivate Double -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddFormatting(Locale locale, String currencyCode) getCity()getNotes()intbooleangetState()getTax()getTotal()voidsetAddress1(String address1) voidsetAddress2(String address2) voidsetAutoSavedCartToken(String autoSavedCartToken) voidsetBillingAddress1(String billingAddress1) voidsetBillingAddress2(String billingAddress2) voidsetBillingCity(String billingCity) voidsetBillingCountry(String billingCountry) voidsetBillingEmail1(String billingEmail1) voidsetBillingEmail2(String billingEmail2) voidsetBillingExtra1(String billingExtra1) voidsetBillingExtra2(String billingExtra2) voidsetBillingExtra3(String billingExtra3) voidsetBillingExtra4(String billingExtra4) voidsetBillingExtra5(String billingExtra5) voidsetBillingFirstName(String billingFirstName) voidsetBillingLastName(String billingLastName) voidsetBillingNotes(String billingNotes) voidsetBillingOrganization(String billingOrganization) voidsetBillingPhone1(String billingPhone1) voidsetBillingPhone2(String billingPhone2) voidsetBillingPostalCode(String billingPostalCode) voidsetBillingState(String billingState) voidvoidsetCompleted(String completed) voidsetCountry(String country) voidsetCreated(String created) voidsetCustomer(Customer customer) voidsetCustomerID(Integer customerID) voidvoidvoidsetEstimatedShippingOptions(Collection estimatedShippingOptions) voidvoidvoidvoidvoidvoidsetFirstName(String firstName) voidsetFormattedCompleted(String formattedCompleted) voidsetFormattedCreated(String formattedCreated) voidsetFormattedLastModified(String formattedLastModified) voidsetFormattedShipping(String formattedShipping) voidsetFormattedSubtotal(String formattedSubtotal) voidsetFormattedTax(String formattedTax) voidsetFormattedTaxableSubtotal(String formattedTaxableSubtotal) voidsetFormattedTotal(String formattedTotal) voidsetLastModified(String lastModified) voidsetLastName(String lastName) voidvoidsetOrderDeliveryCollection(Collection orderDeliveryCollection) voidsetOrderDiscounts(Collection orderDiscounts) voidsetOrderID(int orderID) voidsetOrderItemCollection(Collection orderItemCollection) voidsetOrderNumber(Integer orderNumber) voidsetOrderSettings(Map orderSettings) voidsetOrderShippingRules(Collection orderShippingRules) voidsetOrganization(String organization) voidsetPaymentProfileID(String paymentProfileID) voidsetPayments(Collection payments) voidvoidvoidsetPostalCode(String postalCode) voidsetQuantity(Integer quantity) voidsetShipping(Double shipping) voidsetShippingMethod(String shippingMethod) voidsetSkipAddressValidation(boolean skipAddressValidation) voidvoidvoidsetStatusDetails(String statusDetails) voidsetSubtotal(Double subtotal) voidvoidsetTaxableSubtotal(Double taxableSubtotal) voidvoidsetTrackingNumber(String trackingNumber) voidsetUserName(String userName) 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 -
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:
getOrderIDin interfaceOrder
-
setOrderID
public void setOrderID(int orderID) - Specified by:
setOrderIDin interfaceOrder
-
getCustomerID
- Specified by:
getCustomerIDin interfaceOrder
-
setCustomerID
- Specified by:
setCustomerIDin interfaceOrder
-
getUserName
- Specified by:
getUserNamein interfaceOrder
-
setUserName
- Specified by:
setUserNamein interfaceOrder
-
getOrderNumber
- Specified by:
getOrderNumberin interfaceOrder
-
setOrderNumber
- Specified by:
setOrderNumberin interfaceOrder
-
getTrackingNumber
- Specified by:
getTrackingNumberin interfaceOrder
-
setTrackingNumber
- Specified by:
setTrackingNumberin interfaceOrder
-
getTotal
-
setTotal
-
getShipping
- Specified by:
getShippingin interfaceOrder
-
setShipping
- Specified by:
setShippingin interfaceOrder
-
getTax
-
setTax
-
getTaxableSubtotal
- Specified by:
getTaxableSubtotalin interfaceOrder
-
setTaxableSubtotal
- Specified by:
setTaxableSubtotalin interfaceOrder
-
getSubtotal
- Specified by:
getSubtotalin interfaceOrder
-
setSubtotal
- Specified by:
setSubtotalin interfaceOrder
-
getWeight
-
setWeight
-
getQuantity
- Specified by:
getQuantityin interfaceOrder
-
setQuantity
- Specified by:
setQuantityin interfaceOrder
-
getFormattedTotal
- Specified by:
getFormattedTotalin interfaceOrder
-
setFormattedTotal
- Specified by:
setFormattedTotalin interfaceOrder
-
getFormattedShipping
- Specified by:
getFormattedShippingin interfaceOrder
-
setFormattedShipping
- Specified by:
setFormattedShippingin interfaceOrder
-
getFormattedTax
- Specified by:
getFormattedTaxin interfaceOrder
-
setFormattedTax
- Specified by:
setFormattedTaxin interfaceOrder
-
getFormattedTaxableSubtotal
- Specified by:
getFormattedTaxableSubtotalin interfaceOrder
-
setFormattedTaxableSubtotal
- Specified by:
setFormattedTaxableSubtotalin interfaceOrder
-
getFormattedSubtotal
- Specified by:
getFormattedSubtotalin interfaceOrder
-
setFormattedSubtotal
- Specified by:
setFormattedSubtotalin interfaceOrder
-
getCreated
- Specified by:
getCreatedin interfaceOrder
-
setCreated
- Specified by:
setCreatedin interfaceOrder
-
getLastModified
- Specified by:
getLastModifiedin interfaceOrder
-
setLastModified
- Specified by:
setLastModifiedin interfaceOrder
-
getCompleted
- Specified by:
getCompletedin interfaceOrder
-
setCompleted
- Specified by:
setCompletedin interfaceOrder
-
getFormattedCreated
- Specified by:
getFormattedCreatedin interfaceOrder
-
setFormattedCreated
- Specified by:
setFormattedCreatedin interfaceOrder
-
getFormattedLastModified
- Specified by:
getFormattedLastModifiedin interfaceOrder
-
setFormattedLastModified
- Specified by:
setFormattedLastModifiedin interfaceOrder
-
getFormattedCompleted
- Specified by:
getFormattedCompletedin interfaceOrder
-
setFormattedCompleted
- Specified by:
setFormattedCompletedin interfaceOrder
-
getStatus
-
setStatus
-
getStatusDetails
- Specified by:
getStatusDetailsin interfaceOrder
-
setStatusDetails
- Specified by:
setStatusDetailsin interfaceOrder
-
getShippingMethod
- Specified by:
getShippingMethodin interfaceOrder
-
setShippingMethod
- Specified by:
setShippingMethodin interfaceOrder
-
getFirstName
- Specified by:
getFirstNamein interfaceOrder
-
setFirstName
- Specified by:
setFirstNamein interfaceOrder
-
getLastName
- Specified by:
getLastNamein interfaceOrder
-
setLastName
- Specified by:
setLastNamein interfaceOrder
-
getOrganization
- Specified by:
getOrganizationin interfaceOrder
-
setOrganization
- Specified by:
setOrganizationin interfaceOrder
-
getAddress1
- Specified by:
getAddress1in interfaceOrder
-
setAddress1
- Specified by:
setAddress1in interfaceOrder
-
getAddress2
- Specified by:
getAddress2in interfaceOrder
-
setAddress2
- Specified by:
setAddress2in interfaceOrder
-
getCity
-
setCity
-
getState
-
setState
-
getCountry
- Specified by:
getCountryin interfaceOrder
-
setCountry
- Specified by:
setCountryin interfaceOrder
-
getPostalCode
- Specified by:
getPostalCodein interfaceOrder
-
setPostalCode
- Specified by:
setPostalCodein interfaceOrder
-
getPhone1
-
setPhone1
-
getPhone2
-
setPhone2
-
getEmail1
-
setEmail1
-
getEmail2
-
setEmail2
-
getExtra1
-
setExtra1
-
getExtra2
-
setExtra2
-
getExtra3
-
setExtra3
-
getExtra4
-
setExtra4
-
getExtra5
-
setExtra5
-
getNotes
-
setNotes
-
getAutoSavedCartToken
- Specified by:
getAutoSavedCartTokenin interfaceOrder
-
setAutoSavedCartToken
- Specified by:
setAutoSavedCartTokenin interfaceOrder
-
getOrderDeliveryCollection
- Specified by:
getOrderDeliveryCollectionin interfaceOrder
-
setOrderDeliveryCollection
- Specified by:
setOrderDeliveryCollectionin interfaceOrder
-
getOrderItemCollection
- Specified by:
getOrderItemCollectionin interfaceOrder
-
setOrderItemCollection
- Specified by:
setOrderItemCollectionin interfaceOrder
-
getPayments
- Specified by:
getPaymentsin interfaceOrder
-
setPayments
- Specified by:
setPaymentsin interfaceOrder
-
getOrderDiscounts
- Specified by:
getOrderDiscountsin interfaceOrder
-
setOrderDiscounts
- Specified by:
setOrderDiscountsin interfaceOrder
-
getCustomer
- Specified by:
getCustomerin interfaceOrder
-
setCustomer
- Specified by:
setCustomerin interfaceOrder
-
getBillingFirstName
- Specified by:
getBillingFirstNamein interfaceOrder
-
setBillingFirstName
- Specified by:
setBillingFirstNamein interfaceOrder
-
getBillingLastName
- Specified by:
getBillingLastNamein interfaceOrder
-
setBillingLastName
- Specified by:
setBillingLastNamein interfaceOrder
-
getBillingOrganization
- Specified by:
getBillingOrganizationin interfaceOrder
-
setBillingOrganization
- Specified by:
setBillingOrganizationin interfaceOrder
-
getBillingAddress1
- Specified by:
getBillingAddress1in interfaceOrder
-
setBillingAddress1
- Specified by:
setBillingAddress1in interfaceOrder
-
getBillingAddress2
- Specified by:
getBillingAddress2in interfaceOrder
-
setBillingAddress2
- Specified by:
setBillingAddress2in interfaceOrder
-
getBillingCity
- Specified by:
getBillingCityin interfaceOrder
-
setBillingCity
- Specified by:
setBillingCityin interfaceOrder
-
getBillingState
- Specified by:
getBillingStatein interfaceOrder
-
setBillingState
- Specified by:
setBillingStatein interfaceOrder
-
getBillingCountry
- Specified by:
getBillingCountryin interfaceOrder
-
setBillingCountry
- Specified by:
setBillingCountryin interfaceOrder
-
getBillingPostalCode
- Specified by:
getBillingPostalCodein interfaceOrder
-
setBillingPostalCode
- Specified by:
setBillingPostalCodein interfaceOrder
-
getBillingPhone1
- Specified by:
getBillingPhone1in interfaceOrder
-
setBillingPhone1
- Specified by:
setBillingPhone1in interfaceOrder
-
getBillingPhone2
- Specified by:
getBillingPhone2in interfaceOrder
-
setBillingPhone2
- Specified by:
setBillingPhone2in interfaceOrder
-
getBillingEmail1
- Specified by:
getBillingEmail1in interfaceOrder
-
setBillingEmail1
- Specified by:
setBillingEmail1in interfaceOrder
-
getBillingEmail2
- Specified by:
getBillingEmail2in interfaceOrder
-
setBillingEmail2
- Specified by:
setBillingEmail2in interfaceOrder
-
getBillingExtra1
- Specified by:
getBillingExtra1in interfaceOrder
-
setBillingExtra1
- Specified by:
setBillingExtra1in interfaceOrder
-
getBillingExtra2
- Specified by:
getBillingExtra2in interfaceOrder
-
setBillingExtra2
- Specified by:
setBillingExtra2in interfaceOrder
-
getBillingExtra3
- Specified by:
getBillingExtra3in interfaceOrder
-
setBillingExtra3
- Specified by:
setBillingExtra3in interfaceOrder
-
getBillingExtra4
- Specified by:
getBillingExtra4in interfaceOrder
-
setBillingExtra4
- Specified by:
setBillingExtra4in interfaceOrder
-
getBillingExtra5
- Specified by:
getBillingExtra5in interfaceOrder
-
setBillingExtra5
- Specified by:
setBillingExtra5in interfaceOrder
-
getBillingNotes
- Specified by:
getBillingNotesin interfaceOrder
-
setBillingNotes
- Specified by:
setBillingNotesin interfaceOrder
-
firstDelivery
- Specified by:
firstDeliveryin interfaceOrder
-
addFormatting
- Specified by:
addFormattingin interfaceOrder
-
getOrderShippingRules
- Specified by:
getOrderShippingRulesin interfaceOrder
-
setOrderShippingRules
- Specified by:
setOrderShippingRulesin interfaceOrder
-
getEstimatedShippingOptions
- Specified by:
getEstimatedShippingOptionsin interfaceOrder
-
setEstimatedShippingOptions
- Specified by:
setEstimatedShippingOptionsin interfaceOrder
-
getPaymentProfileID
- Specified by:
getPaymentProfileIDin interfaceOrder
-
setPaymentProfileID
- Specified by:
setPaymentProfileIDin interfaceOrder
-
getSkipAddressValidation
public boolean getSkipAddressValidation()- Specified by:
getSkipAddressValidationin interfaceOrder
-
setSkipAddressValidation
public void setSkipAddressValidation(boolean skipAddressValidation) - Specified by:
setSkipAddressValidationin interfaceOrder
-
getOrderSettings
- Specified by:
getOrderSettingsin interfaceOrder
-
setOrderSettings
- Specified by:
setOrderSettingsin interfaceOrder
-