org.broadleafcommerce.core.web.order
Class OrderState

java.lang.Object
  extended by org.broadleafcommerce.core.web.order.OrderState

public class OrderState
extends Object

This class is used as a request-scope container for the current orderid. As a result, items that need the order during the control flow of a single request may retrieve the order from this object. OrderState utilizes the DAO to retrieve the full order from its dehydrated state in the Hibernate cache.

Author:
jfischer

Constructor Summary
OrderState()
           
 
Method Summary
 Order getOrder(Customer customer)
           
 boolean isUpdatePrices()
           
 Order setOrder(Customer customer, Order order)
           
 void setUpdatePrices(boolean updatePrices)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderState

public OrderState()
Method Detail

getOrder

public Order getOrder(Customer customer)

setOrder

public Order setOrder(Customer customer,
                      Order order)

isUpdatePrices

public boolean isUpdatePrices()

setUpdatePrices

public void setUpdatePrices(boolean updatePrices)


Copyright © 2013. All Rights Reserved.