SalesPoint Framework v3.1

data
Class BasketEntryValues

java.lang.Object
  extended bydata.BasketEntryValues

public final class BasketEntryValues
extends Object

A collection of convenience BasketEntryValues.

Since:
v2.0
Author:
Steffen Zschaler

Field Summary
static BasketEntryValue COUNT_ITEMS
          A BasketEntryValue that returns 1 for each entry.
static BasketEntryValue ONLY_CATALOG_ITEMS
          A BasketEntryValue returning the value of a DataBasketEntry under the assumption that this describes a CatalogItem movement.
static BasketEntryValue ONLY_STOCK_ITEMS
          A BasketEntryValue returning the value of a DataBasketEntry under the assumption that this describes a StockItem movement.
 
Constructor Summary
BasketEntryValues()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ONLY_STOCK_ITEMS

public static final BasketEntryValue ONLY_STOCK_ITEMS
A BasketEntryValue returning the value of a DataBasketEntry under the assumption that this describes a StockItem movement. The value will be calculated by multiplying the number of items with the default value of the associated CatalogItem.

To obtain the associated CatalogItem, the BasketEntryValue first tries to use the DataBasketEntries destination and only if this is null it will try its source. If both are null or if an exception occurs, the BasketEntryValue will return 0.


ONLY_CATALOG_ITEMS

public static final BasketEntryValue ONLY_CATALOG_ITEMS
A BasketEntryValue returning the value of a DataBasketEntry under the assumption that this describes a CatalogItem movement. The value will be taken from the CatalogItem's CatalogItem.getValue() method.


COUNT_ITEMS

public static final BasketEntryValue COUNT_ITEMS
A BasketEntryValue that returns 1 for each entry. You can use this BasketEntryValue to count entries that match a given condition.

Constructor Detail

BasketEntryValues

public BasketEntryValues()

SalesPoint Framework v3.1