|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Defines a Tier 2 service provider interface for a CategoryManager that uses JDBC as a persistence mechanism. This class should not be accessed directly but accessed through the CatalogManager.getCategoryManager method. If a category is not present in the cache this Tier 2 service provide will be invoked.
CatalogManager
,
JdbcCategoryManagerHome
,
JdbcCategoryManagerImpl
Method Summary | |
void |
addItem(CatalogRequest request,
CategoryKey categoryKey,
ProductItemKey itemKey)
Adds an item to the specified category. |
void |
createCategory(CatalogRequest request,
CategoryKey parentKey,
Category category)
Creates a sub category within the supplied parent category. |
Category[] |
getAncestors(CatalogRequest request,
CategoryKey categoryKey)
Returns the ancestors of the specified category in ascending order. |
Category[] |
getCategories(CatalogRequest request,
CategoryKey[] categoryKeys)
Returns the categories with the given category keys. |
ViewIterator |
getCategories(CatalogRequest request,
int viewSize)
Returns a ViewIterator over all existing categories. |
Category |
getCategory(CatalogRequest request,
CategoryKey categoryKey)
Returns the category with the given category key. |
int |
getCategoryCount(CatalogRequest request)
Returns the total number of categories in the product catalog. |
CategoryKey[] |
getCategoryKeys(CatalogRequest request,
int beginIndex,
int endIndex)
Returns an array of all existing category keys within the specified ordered range. |
CategoryKey[] |
getItemCategories(CatalogRequest request,
ProductItemKey productKey)
Gets all the categories that an item is a part of. |
CategoryKey[][] |
getItemCategories(CatalogRequest request,
ProductItemKey[] productKeys)
Returns an array of arrays of all the categories that items are part of. |
int |
getItemCount(CatalogRequest request,
CategoryKey categoryKey)
Returns the number of product items associated with the specified category. |
ProductItemKey[] |
getItemKeys(CatalogRequest request,
CategoryKey categoryKey,
int beginIndex,
int endIndex)
Returns an array of all product item keys of the specified category within the specified ordered range. |
ViewIterator |
getItems(CatalogRequest request,
CategoryKey categoryKey,
int viewSize)
Returns a ViewIterator over all product items of the specified category. |
int |
getOrphanedItemCount(CatalogRequest request)
Returns the number of orphaned items in the catalog. |
ProductItemKey[] |
getOrphanedItemKeys(CatalogRequest request,
int beginIndex,
int endIndex)
Returns an array of all existing orphaned item keys within the specified ordered range. |
ViewIterator |
getOrphanedItems(CatalogRequest request,
int viewSize)
Returns a ViewIterator over all existing orphaned categories. |
Category |
getParent(CatalogRequest request,
CategoryKey categoryKey)
Returns the parent of the specified category. |
Category |
getRootCategory(CatalogRequest request)
Returns the root category. |
int |
getSiblingCount(CatalogRequest request,
CategoryKey categoryKey)
Returns the number of siblings associated with the specified category. |
CategoryKey[] |
getSiblingKeys(CatalogRequest request,
CategoryKey categoryKey,
int beginIndex,
int endIndex)
Returns an array of all exististing sibling keys of the specified category within the specified ordered range. |
ViewIterator |
getSiblings(CatalogRequest request,
CategoryKey categoryKey,
int viewSize)
Returns a ViewIterator over all siblings of the specified category. |
ViewIterator |
getSubCategories(CatalogRequest request,
CategoryKey categoryKey,
int viewSize)
Returns a ViewIterator over all sub categories of the specified category. |
int |
getSubCategoryCount(CatalogRequest request,
CategoryKey categoryKey)
Returns the number of sub categories associated with the specified category. |
CategoryKey[] |
getSubCategoryKeys(CatalogRequest request,
CategoryKey categoryKey,
int beginIndex,
int endIndex)
Returns an array of all sub category keys of the specified category within the specified ordered range. |
void |
moveCategory(CatalogRequest request,
CategoryKey categoryKey,
CategoryKey newParentKey)
Moves the specifed category. |
void |
removeCategory(CatalogRequest request,
CategoryKey categoryKey)
Removes the specifed category. |
void |
removeItem(CatalogRequest request,
CategoryKey categoryKey,
ProductItemKey itemKey)
Removes an item from the specified category. |
void |
updateCategory(CatalogRequest request,
Category category)
Updates the specifed category. |
Methods inherited from interface com.beasys.commerce.ebusiness.catalog.service.CatalogService |
getCatalogManager |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
Method Detail |
public Category getRootCategory(CatalogRequest request) throws java.rmi.RemoteException, CatalogCreateException, CatalogException
request
- The catalog request object.public int getCategoryCount(CatalogRequest request) throws java.rmi.RemoteException, CatalogException
request
- The catalog request object.public int getItemCount(CatalogRequest request, CategoryKey categoryKey) throws java.rmi.RemoteException, CatalogFinderException, CatalogException
request
- The catalog request object.categoryKey
- The key of the target category.public int getSubCategoryCount(CatalogRequest request, CategoryKey categoryKey) throws java.rmi.RemoteException, CatalogFinderException, CatalogException
request
- The catalog request object.categoryKey
- The key of the target category.public int getSiblingCount(CatalogRequest request, CategoryKey categoryKey) throws java.rmi.RemoteException, CatalogFinderException, CatalogException
request
- The catalog request object.categoryKey
- The key of the target category.public int getOrphanedItemCount(CatalogRequest request) throws java.rmi.RemoteException, CatalogException
request
- The catalog request object.public Category getCategory(CatalogRequest request, CategoryKey categoryKey) throws java.rmi.RemoteException, CatalogFinderException, CatalogException
request
- The catalog request object.categoryKey
- The key of the target category.public Category[] getCategories(CatalogRequest request, CategoryKey[] categoryKeys) throws java.rmi.RemoteException, CatalogFinderException, CatalogException
request
- The catalog request object.keys
- The keys of the target categories.public CategoryKey[] getCategoryKeys(CatalogRequest request, int beginIndex, int endIndex) throws java.rmi.RemoteException, CatalogException
request
- The catalog request object.beginIndex
- The lower bound index for returned category keys.endIndex
- The upper bound index for returned category keys.public ViewIterator getCategories(CatalogRequest request, int viewSize) throws java.rmi.RemoteException, CatalogException
request
- The catalog request object.viewSize
- The view size of the returned ViewIterator.public CategoryKey[] getSiblingKeys(CatalogRequest request, CategoryKey categoryKey, int beginIndex, int endIndex) throws java.rmi.RemoteException, CatalogException
request
- The catalog request object.categoryKey
- The key of the target category.beginIndex
- The lower bound index for returned sibling keys.endIndex
- The upper bound index for returned sibling keys.public ViewIterator getSiblings(CatalogRequest request, CategoryKey categoryKey, int viewSize) throws java.rmi.RemoteException, CatalogException
request
- The catalog request object.categoryKey
- The key of the target category.viewSize
- The view size of the returned ViewIterator.public CategoryKey[] getSubCategoryKeys(CatalogRequest request, CategoryKey categoryKey, int beginIndex, int endIndex) throws java.rmi.RemoteException, CatalogException
request
- The catalog request object.categoryKey
- The key of the target category.beginIndex
- The lower bound index for returned sub category keys.endIndex
- The upper bound index for returned sub category keys.public ViewIterator getSubCategories(CatalogRequest request, CategoryKey categoryKey, int viewSize) throws java.rmi.RemoteException, CatalogException
request
- The catalog request object.categoryKey
- The key of the target category.viewSize
- The view size of the returned ViewIterator.public Category[] getAncestors(CatalogRequest request, CategoryKey categoryKey) throws java.rmi.RemoteException, CatalogException
request
- The catalog request object.categoryKey
- The key of the target category.public Category getParent(CatalogRequest request, CategoryKey categoryKey) throws java.rmi.RemoteException, CatalogFinderException, CatalogException
request
- The catalog request object.categoryKey
- The key of the target category.public ProductItemKey[] getItemKeys(CatalogRequest request, CategoryKey categoryKey, int beginIndex, int endIndex) throws java.rmi.RemoteException, CatalogException
request
- The catalog request object.categoryKey
- The key of the target category.beginIndex
- The lower bound index for returned product item keys.endIndex
- The upper bound index for returned product item keys.public ViewIterator getItems(CatalogRequest request, CategoryKey categoryKey, int viewSize) throws java.rmi.RemoteException, CatalogException
request
- The catalog request object.categoryKey
- The key of the target category.viewSize
- The view size of the returned ViewIterator.public ProductItemKey[] getOrphanedItemKeys(CatalogRequest request, int beginIndex, int endIndex) throws java.rmi.RemoteException, CatalogException
request
- The catalog request object.beginIndex
- The lower bound index for returned category keys.endIndex
- The upper bound index for returned category keys.public ViewIterator getOrphanedItems(CatalogRequest request, int viewSize) throws java.rmi.RemoteException, CatalogException
request
- The catalog request object.viewSize
- The view size of the returned ViewIterator.public void createCategory(CatalogRequest request, CategoryKey parentKey, Category category) throws java.rmi.RemoteException, CatalogCreateException, CatalogException
request
- The catalog request object.parentKey
- The key of the target parent category.category
- The category to persist.public void removeCategory(CatalogRequest request, CategoryKey categoryKey) throws java.rmi.RemoteException, CatalogRemoveException, CatalogFinderException, CatalogException
request
- The catalog request object.categoryKey
- The key of the target category.public void updateCategory(CatalogRequest request, Category category) throws java.rmi.RemoteException, CatalogFinderException, CatalogException
request
- The catalog request object.category
- The category to update.public void moveCategory(CatalogRequest request, CategoryKey categoryKey, CategoryKey newParentKey) throws java.rmi.RemoteException, CatalogFinderException, CatalogException
request
- The catalog request object.categoryKey
- The key of the target category.parentKey
- The key of the new parent category.public void addItem(CatalogRequest request, CategoryKey categoryKey, ProductItemKey itemKey) throws java.rmi.RemoteException, CatalogFinderException, CatalogException
request
- The catalog request object.categoryKey
- The key of target category.itemKey
- The key of the target item.public void removeItem(CatalogRequest request, CategoryKey categoryKey, ProductItemKey itemKey) throws java.rmi.RemoteException, CatalogFinderException, CatalogException
request
- The catalog request object.categoryKey
- The key of target category.itemKey
- The key of the target item.public CategoryKey[] getItemCategories(CatalogRequest request, ProductItemKey productKey) throws java.rmi.RemoteException, CatalogFinderException, CatalogException
request
- The catalog request object.productKey
- ProductItemKey of the product item concerned.public CategoryKey[][] getItemCategories(CatalogRequest request, ProductItemKey[] productKeys) throws java.rmi.RemoteException, CatalogException
request
- The catalog request object.productKeys
- Array of ProductItemKeys.
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |