pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.component.shop.checkout
Class OrderMetaData

java.lang.Object
  extended by org.torweg.pulse.util.entity.AbstractBasicEntity
      extended by org.torweg.pulse.component.shop.checkout.OrderMetaData
All Implemented Interfaces:
java.io.Serializable

@Entity(name="checkout_OrderMetaData")
public class OrderMetaData
extends AbstractBasicEntity

The OrderMetaData.

Version:
$Revision: 1820 $
Author:
Christian Schatt
See Also:
Serialized Form

Constructor Summary
protected OrderMetaData()
          Deprecated. 
  OrderMetaData(Bundle b, java.util.Locale l, boolean nbf)
          Creates a new OrderMetaData from the given Bundle, Locale and net-based-flag.
 
Method Summary
 void addSuccessfulFinishingTask(java.lang.String fqcn)
          Adds the fully qualified class name of a successfully executed CheckoutFinishingTask.
 Bundle getBundle()
          Returns the Bundle.
 java.util.Locale getLocale()
          Returns the Locale.
 java.util.Date getOrderDate()
          Returns the Date of the order.
 OrderStatus getStatus()
          Returns the OrderStatus.
 java.util.Set<java.lang.String> getSuccessfulFinishingTasks()
          Returns an unmodifiable Set holding the fully qualified class names of the successfully executed CheckoutFinishingTasks.
 boolean isNetBased()
          Returns the net-based-flag, indicating whether the order is net based.
 void setOrderDate(java.util.Date od)
          Sets the Date of the order.
 void setStatus(OrderStatus s)
          Sets the OrderStatus.
 
Methods inherited from class org.torweg.pulse.util.entity.AbstractBasicEntity
compareTo, equals, getFullQualifiedClassNameJAXB, getId, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrderMetaData

@Deprecated
protected OrderMetaData()
Deprecated. 

The no-argument constructor used by JAXB and JPA.


OrderMetaData

public OrderMetaData(Bundle b,
                     java.util.Locale l,
                     boolean nbf)
Creates a new OrderMetaData from the given Bundle, Locale and net-based-flag.

Parameters:
b - the Bundle.
l - the Locale.
nbf - the net-based-flag.
Throws:
java.lang.IllegalArgumentException - if the given Bundle or Locale is null .
Method Detail

getBundle

public final Bundle getBundle()
Returns the Bundle.

Returns:
the Bundle.

getLocale

public final java.util.Locale getLocale()
Returns the Locale.

Returns:
the Locale.

isNetBased

public final boolean isNetBased()
Returns the net-based-flag, indicating whether the order is net based.

Returns:
the net-based-flag.

getStatus

public final OrderStatus getStatus()
Returns the OrderStatus.

Returns:
the OrderStatus.

setStatus

public final void setStatus(OrderStatus s)
Sets the OrderStatus.

Parameters:
s - the OrderStatus to set.
Throws:
java.lang.IllegalArgumentException - if the given OrderStatus is null.

getOrderDate

public final java.util.Date getOrderDate()
Returns the Date of the order.

Returns:
the Date.

setOrderDate

public final void setOrderDate(java.util.Date od)
Sets the Date of the order.

Parameters:
od - the Date to set.

getSuccessfulFinishingTasks

public final java.util.Set<java.lang.String> getSuccessfulFinishingTasks()
Returns an unmodifiable Set holding the fully qualified class names of the successfully executed CheckoutFinishingTasks.

Returns:
the fully qualified class names.

addSuccessfulFinishingTask

public final void addSuccessfulFinishingTask(java.lang.String fqcn)
Adds the fully qualified class name of a successfully executed CheckoutFinishingTask.

Parameters:
fqcn - the fully qualified class name.
Throws:
java.lang.IllegalArgumentException - if the given fully qualified class name is null.