© 2005 BEA Systems, Inc.

com.beasys.commerce.ebusiness.order
Class OrderValue

java.lang.Object
  extended bycom.beasys.commerce.foundation.SmartValue
      extended bycom.beasys.commerce.ebusiness.order.OrderValue
All Implemented Interfaces:
Serializable

public class OrderValue
extends SmartValue

This class represents the state of Order entity.

See Also:
Order, OrderHome, Order.getOrderByValue(), Order.setOrderByValue(OrderValue), Serialized Form

Field Summary
 List adjustmentPresentations
          Order Adjustments, mostly discounts, used by the JSP, as a list of OrderDiscountPresentation objects.
 Date createdDate
          Date of creation of the order
 Customer customer
          A transient reference to the Customer entity
 Handle customerHandle
           
 String identifier
          Primary key attribue.
 Collection orderLines
          Collection of OrderLine objects associated with this order
 String orderStatus
          Status of the order
 PaymentTransaction paymentTransaction
          A transient reference to the PaymentTransaction entity
 Handle paymentTransactionHandle
           
 Money price
          Total value of the order
 Money shipping
          Shipping cost
 com.beasys.commerce.axiom.contact.Address shippingAddress
          Shipping address
 String shippingMethod
          Shipping method
 String specialInstructions
          Special instructions for shipping
 String splittingPreference
          Order splitting preference
 double subtotal
          Subtotal of the order
 Money tax
          Total tax on the order
 
Constructor Summary
OrderValue()
          Constructs an OrderValue object
 
Method Summary
 Money getBaseShipping()
          The base shipping is not kept in the database currently.
 Money getTotal(int totalType)
          Gets the order total for the given total type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

adjustmentPresentations

public List adjustmentPresentations
Order Adjustments, mostly discounts, used by the JSP, as a list of OrderDiscountPresentation objects. This is retrieved only when using the OrderAdjustmentPersistence select method.


createdDate

public Date createdDate
Date of creation of the order


customer

public transient Customer customer
A transient reference to the Customer entity


customerHandle

public Handle customerHandle

identifier

public String identifier
Primary key attribue. Represents the state of the associated OrderPk object.


orderLines

public Collection orderLines
Collection of OrderLine objects associated with this order


orderStatus

public String orderStatus
Status of the order


paymentTransaction

public transient PaymentTransaction paymentTransaction
A transient reference to the PaymentTransaction entity


paymentTransactionHandle

public Handle paymentTransactionHandle

price

public Money price
Total value of the order


shipping

public Money shipping
Shipping cost


shippingAddress

public com.beasys.commerce.axiom.contact.Address shippingAddress
Shipping address


shippingMethod

public String shippingMethod
Shipping method


specialInstructions

public String specialInstructions
Special instructions for shipping


splittingPreference

public String splittingPreference
Order splitting preference


subtotal

public double subtotal
Subtotal of the order


tax

public Money tax
Total tax on the order

Constructor Detail

OrderValue

public OrderValue()
Constructs an OrderValue object

Method Detail

getBaseShipping

public Money getBaseShipping()
The base shipping is not kept in the database currently. It must hence be re-calculated from the order adjustment (the discount that was applied) and the discounted shipping value.

Returns:
the shipping before discount as a Money object

getTotal

public Money getTotal(int totalType)
               throws InvalidArgumentException
Gets the order total for the given total type

Returns:
Money object containing the specified total
Throws:
InvalidArgumentException - if an invalid total type parameter is passed
See Also:
OrderConstants

© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved