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 OrderContents

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

@Entity(name="checkout_OrderContents")
public class OrderContents
extends AbstractBasicEntity

The OrderContents.

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

Constructor Summary
protected OrderContents()
          Deprecated. 
  OrderContents(ShoppingCart cart, ShopSettings settings, User user)
          Creates a new OrderContents from the given ShoppingCart, ShopSettings and User.
 
Method Summary
 java.util.Set<OrderPosition> getOrderPositions()
          Returns an unmodifiable Set holding the OrderPositions.
 TotalPrice getTotalPrice()
          Returns the TotalPrice.
 
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

OrderContents

@Deprecated
protected OrderContents()
Deprecated. 

The no-argument constructor used by JAXB and JPA.


OrderContents

public OrderContents(ShoppingCart cart, ShopSettings settings, User user)
Creates a new OrderContents from the given ShoppingCart, ShopSettings and User.

Parameters:
cart - the ShoppingCart.
settings - the ShopSettings.
user - the User.
Throws:
java.lang.IllegalArgumentException - if the given ShoppingCart, ShopSettings or User is null or the given ShoppingCart is empty.
Method Detail

getOrderPositions

public final java.util.Set<OrderPosition> getOrderPositions()
Returns an unmodifiable Set holding the OrderPositions.

Returns:
the OrderPositions.

getTotalPrice

public final TotalPrice getTotalPrice()
Returns the TotalPrice.

Returns:
the TotalPrice.