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
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 |
CArticleCatalog
public CArticleCatalog(String name)
- Parameters:
name
- the ID of the CArticleCatalog
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
.