market.statistics
Class CCustomerStats
java.lang.Object
|
+--data.AbstractNameable
|
+--data.ooimpl.CatalogItemImpl
|
+--data.ooimpl.CatalogImpl
|
+--market.statistics.CCustomerStats
- All Implemented Interfaces:
- Catalog, CatalogItem, Cloneable, Comparable, DataBasketEntryDestination, DataBasketEntrySource, DataBasketKeys, ListenableCatalog, Nameable, NameContext, SelfManagingDBEDestination, SelfManagingDBESource, Serializable
- public class CCustomerStats
- extends CatalogImpl
Catalog that contains the statistics of the market's customers.
- See Also:
- Serialized Form
Methods inherited from class data.ooimpl.CatalogImpl |
add, addCatalogChangeListener, checkNameChange, commitAdd, commitRemove, contains, createPeer, fireCanEditCatalogItem, fireCanRemoveCatalogItem, fireCatalogItemAddCommit, fireCatalogItemAdded, fireCatalogItemAddRollback, fireCatalogItemRemoveCommit, fireCatalogItemRemoved, fireCatalogItemRemoveRollback, fireCommitEditCatalogItem, fireEditingCatalogItem, fireRollbackEditCatalogItem, get, getEditableCopy, getEditingItemsContainer, getItemsContainer, getItemsLock, getNCMonitor, getShallowClone, getTemporaryAddedItemsContainer, getTemporaryRemovedItemsContainer, iterator, keySet, nameHasChanged, remove, remove, removeCatalogChangeListener, rollbackAdd, rollbackRemove, size, toString |
CCustomerStats
public CCustomerStats()
get
public CICustomerStats get(String id)
- Parameters:
id
- the ID of the customer whose statistics are to be got.
- Returns:
- the desired customer statistics.
remove
public void remove(String id)
- Parameters:
id
- the ID of the customer whose statistics are to be removed.
addSales
public void addSales(UCustomer uc,
Value v)
- Updates the customer's statistics whenever he made a purchase.
- Parameters:
uc
- the customer to whose statistics the value should be added.v
- the value to be added to the statistics.