Implemented by a class that represents an order. This interface provides all the
methods to manipulate an Order object. Any object which is an Order needs to
implement this interface. For an example, see atg.commerce.order.OrderImpl.

addOrderIdToRelatedOrders

getSubmittedDate

Returns the submittedDate. This is the date which the order was "checked out".

setSubmittedTime

void setSubmittedTime(long pSubmittedTime)

Sets the submittedDate as a long. This is the date which the order was "checked out".

getSubmittedTime

long getSubmittedTime()

Gets the submittedDate as a long. This is the date which the order was "checked out".

getCreationDate

java.util.Date getCreationDate()

Returns the creationDate. This is the date that the Order was created.

setCreationTime

void setCreationTime(long pCreationTime)

Sets the creationDate as a long. This is the date that the Order was created.

getCreationTime

long getCreationTime()

Gets the creationDate as a long. This is the date that the Order was created.

getLastModifiedDate

java.util.Date getLastModifiedDate()

Returns the lastModifiedDate. This is the date that the order was last saved.

setLastModifiedTime

void setLastModifiedTime(long pLastModifiedTime)

Sets the lastModifiedDate as a long. This is the date that the order was last saved.

getLastModifiedTime

long getLastModifiedTime()

Gets the lastModifiedDate as a long. This is the date that the order was last saved.

getCompletedDate

java.util.Date getCompletedDate()

Returns the completedDate. This is the date that the order was completed.

setCompletedTime

void setCompletedTime(long pCompletedTime)

Sets the completedDate as a long. This is the date that the order was completed.

getCompletedTime

long getCompletedTime()

Gets the completedDate as a long. This is the date that the order was completed.

isTransient

boolean isTransient()

Returns the transient flag. A transient Order is one which has not been
persisted to a repository.

setTransient

void setTransient(boolean pTransient)

Sets the transient flag. A transient Order is one which has not been
persisted to a repository.

getSpecialInstructions

java.util.Map getSpecialInstructions()

Returns the specialInstructions

setOriginOfOrder

void setOriginOfOrder(java.lang.String pOriginOfOrder)

Sets the originOfOrder property. The possible value will be
default as the order is placed by the normal checkout process;
or scheduledOrder as the order is placed within a scheduledOrder

getOriginOfOrder

java.lang.String getOriginOfOrder()

Returns the OriginOfOrder property

isChanged

boolean isChanged()

Returns the isChanged flag

equals

boolean equals(java.lang.Object pOrder)

Returns true if pOrder is the same as this Order.

Overrides:

equals in class java.lang.Object

setExplicitlySaved

void setExplicitlySaved(boolean pExplicitlySave)

Marks the order as one that has been explicitly saved. Explicitly saving an order
indicates that it was persisted because of a direct call instead of the automatic
persistence of a session's shopping cart.

Parameters:

pExplicitlySave - is true if this order was explicitly saved, false otherwise.