© 2002 BEA Systems, Inc.


com.beasys.commerce.ebusiness.order
Class OrderValue

java.lang.Object
  |
  +--com.beasys.commerce.foundation.SmartValue
        |
        +--com.beasys.commerce.ebusiness.order.OrderValue

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
 java.util.List adjustmentPresentations
          Order Adjustments, mostly discounts, used by the JSP, as a list of OrderDiscountPresentation objects.
 java.sql.Date createdDate
          Date of creation of the order
 Customer customer
          A transient reference to the Customer entity
 javax.ejb.Handle customerHandle
           
 java.lang.String identifier
          Primary key attribue.
 java.util.Collection orderLines
          Collection of OrderLine objects associated with this order
 java.lang.String orderStatus
          Status of the order
 PaymentTransaction paymentTransaction
          A transient reference to the PaymentTransaction entity
 javax.ejb.Handle paymentTransactionHandle
           
 Money price
          Total value of the order
 Money shipping
          Shipping cost
 com.beasys.commerce.axiom.contact.Address shippingAddress
          Shipping address
 java.lang.String shippingMethod
          Shipping method
 java.lang.String specialInstructions
          Special instructions for shipping
 java.lang.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

customerHandle

public javax.ejb.Handle customerHandle

paymentTransactionHandle

public javax.ejb.Handle paymentTransactionHandle

identifier

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

createdDate

public java.sql.Date createdDate
Date of creation of the order

shippingMethod

public java.lang.String shippingMethod
Shipping method

customer

public transient Customer customer
A transient reference to the Customer entity

shippingAddress

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

shipping

public Money shipping
Shipping cost

paymentTransaction

public transient PaymentTransaction paymentTransaction
A transient reference to the PaymentTransaction entity

orderStatus

public java.lang.String orderStatus
Status of the order

orderLines

public java.util.Collection orderLines
Collection of OrderLine objects associated with this order

tax

public Money tax
Total tax on the order

price

public Money price
Total value of the order

subtotal

public double subtotal
Subtotal of the order

specialInstructions

public java.lang.String specialInstructions
Special instructions for shipping

splittingPreference

public java.lang.String splittingPreference
Order splitting preference

adjustmentPresentations

public java.util.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.
Constructor Detail

OrderValue

public OrderValue()
Constructs an OrderValue object
Method Detail

getTotal

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

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

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

© 2002 BEA Systems, Inc.

Copyright © 2002 BEA Systems, Inc. All Rights Reserved