atg.commerce.order
Class RestorableOrders

java.lang.Object
  extended by atg.commerce.order.RestorableOrders
All Implemented Interfaces:
java.io.Serializable

public class RestorableOrders
extends java.lang.Object
implements java.io.Serializable

This class represents the set of orders which can be restored through session backup. The orders are collected from the session-scoped OrderHolder object. This class is exposed as a property of the OrderHolder. When the OrderHolder is restored after session backup recovery, the serialized orders contained in this class are placed into the OrderHolder. The class optimizes the serialization by only sending order ids for persistent orders

See Also:
Serialized Form

Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Constructor Summary
RestorableOrders(OrderHolder pHolder, RepositoryItem pProfile)
          Constructs an instanceof RestorableOrders
 
Method Summary
 boolean equals(java.lang.Object pObject)
          Returns true if the current and saved orders are the equal
 Order getCurrent()
          Returns the current order from the OrderHolder, if the order is not empty.
 java.lang.String getProfileId()
          Returns property ProfileId
 java.util.Collection getSaved()
          Returns the saved list of orders from the OrderHolder, if the saved list is not empty.
 void setCurrent(Order pCurrent)
          Sets property Current
 void setProfileId(java.lang.String pProfileId)
          Sets property ProfileId
 void setSaved(java.util.Collection pSaved)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

CLASS_VERSION

public static java.lang.String CLASS_VERSION
Class version string

Constructor Detail

RestorableOrders

public RestorableOrders(OrderHolder pHolder,
                        RepositoryItem pProfile)
Constructs an instanceof RestorableOrders

Method Detail

setProfileId

public void setProfileId(java.lang.String pProfileId)
Sets property ProfileId


getProfileId

public java.lang.String getProfileId()
Returns property ProfileId


setCurrent

public void setCurrent(Order pCurrent)
Sets property Current


getCurrent

public Order getCurrent()
Returns the current order from the OrderHolder, if the order is not empty.


setSaved

public void setSaved(java.util.Collection pSaved)

getSaved

public java.util.Collection getSaved()
Returns the saved list of orders from the OrderHolder, if the saved list is not empty.


equals

public boolean equals(java.lang.Object pObject)
Returns true if the current and saved orders are the equal

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object