Großmarkt

market
Class CArticleCatalog

java.lang.Object
  |
  +--data.AbstractNameable
        |
        +--data.ooimpl.CatalogItemImpl
              |
              +--data.ooimpl.CatalogImpl
                    |
                    +--market.CArticleCatalog
All Implemented Interfaces:
Catalog, CatalogItem, Cloneable, Comparable, DataBasketEntryDestination, DataBasketEntrySource, DataBasketKeys, ListenableCatalog, Nameable, NameContext, SelfManagingDBEDestination, SelfManagingDBESource, Serializable

public class CArticleCatalog
extends CatalogImpl

A CatalogImpl, where the CIArticles of the market are stored. The market's offer, and therefore this catalog, never changes.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class data.ooimpl.CatalogImpl
m_lhListeners, m_nModCount
 
Fields inherited from class data.AbstractNameable
m_ncContext, m_pcsPropertyListeners
 
Fields inherited from interface data.CatalogItem
VALUE_PROPERTY
 
Fields inherited from interface data.Nameable
NAME_PROPERTY
 
Fields inherited from interface data.DataBasketKeys
CATALOG_ITEM_MAIN_KEY, STOCK_ITEM_MAIN_KEY
 
Constructor Summary
CArticleCatalog(String name)
           
 
Method Summary
 void add(CatalogItem item)
          Adds a CatalogItem to the catalog.
 CIArticle get(String name)
          Gets a CatalogItem by its name.
 void remove(String name)
          Removes a CatalogItem from the catalog.
 
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
 
Methods inherited from class data.ooimpl.CatalogItemImpl
addValueListener, compareTo, equals, getCatalog, getValue, isEditable, removeValueListener, setValue
 
Methods inherited from class data.AbstractNameable
addNameListener, addPropertyChangeListener, attach, detachNC, getName, removeNameListener, removePropertyChangeListener, setName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface data.CatalogItem
addValueListener, getCatalog, getValue, removeValueListener
 
Methods inherited from interface data.Nameable
addNameListener, addPropertyChangeListener, attach, detachNC, getName, removeNameListener, removePropertyChangeListener, setName
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

CArticleCatalog

public CArticleCatalog(String name)
Parameters:
name - the ID of the CArticleCatalog
Method Detail

add

public void add(CatalogItem item)
Adds a CatalogItem to the catalog. Used as a shortcut for add(item, null).

Parameters:
item - the CatalogItem to be added.

remove

public void remove(String name)
Removes a CatalogItem from the catalog. Used as a shortcut for remove(name, null) including the try-catch-block.

Parameters:
name - the name of the CatalogItem to be removed.

get

public CIArticle get(String name)
Gets a CatalogItem by its name. Used as a shortcut for get(name, null) including the try-catch-block.

Parameters:
name - the name of the searched CatalogItem.
Returns:
the searched CatalogItem if found, otherwise null.

Großmarkt