|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@Deprecated public interface CatalogSqlManager
The CatalogSqlManager
interface defines the API
catalog services use to read and write catalog information to a SQL
compliant database.
This is an advanced (internal) class and may be subject to change.
Method Summary | |
---|---|
void |
addItem(Connection connection,
CatalogRequest request,
CategoryKey categoryKey,
ProductItemKey itemKey)
Deprecated Adds an item to the specified category. |
void |
createCategory(Connection connection,
CatalogRequest request,
CategoryKey parentKey,
Category category)
Deprecated Creates a sub category within the supplied parent category. |
void |
createItem(Connection connection,
CatalogRequest request,
ProductItem product)
Deprecated Creates a new product item. |
Category[] |
getAncestors(Connection connection,
CatalogRequest request,
CategoryKey categoryKey)
Deprecated Returns the ancestors of the specified category in ascending order. |
CatalogSchemaManager |
getCatalogSchemaManager()
Deprecated |
Category[] |
getCategories(Connection connection,
CatalogRequest request,
CategoryKey[] categoryKeys)
Deprecated Returns the categories with the given category keys. |
Category |
getCategory(Connection connection,
CatalogRequest request,
CategoryKey categoryKey)
Deprecated Returns the category with the given category key. |
int |
getCategoryCount(Connection connection,
CatalogRequest request)
Deprecated Returns the total number of categories in the product catalog. |
CategoryKey[] |
getCategoryKeys(Connection connection,
CatalogRequest request,
int beginIndex,
int endIndex)
Deprecated Returns an array of all existing category keys within the specified ordered range. |
ProductItem |
getItem(Connection connection,
CatalogRequest request,
ProductItemKey productKey)
Deprecated Returns the product item with the specified key. |
int |
getItemCount(Connection connection,
CatalogRequest request)
Deprecated Returns the number of product items in the product catalog. |
int |
getItemCount(Connection connection,
CatalogRequest request,
CategoryKey categoryKey)
Deprecated Returns the number of product items associated with the specified category. |
ProductItemKey[] |
getItemKeys(Connection connection,
CatalogRequest request,
CategoryKey categoryKey,
int beginIndex,
int endIndex)
Deprecated Returns an array of all product item keys of the specified category within the specified ordered range. |
ProductItemKey[] |
getItemKeys(Connection connection,
CatalogRequest request,
int beginIndex,
int endIndex)
Deprecated Returns an array over all existing product item keys within the specified ordered range. |
ProductItem[] |
getItems(Connection connection,
CatalogRequest request,
ProductItemKey[] productKeys)
Deprecated Returns the product items with the given product item keys. |
JdbcCatalogFactory |
getJdbcCatalogFactory()
Deprecated |
String[] |
getKeywords(Connection connection,
CatalogRequest request,
ProductItemKey productKey)
Deprecated Returns the keywords associated with a given product item. |
int |
getOrphanedItemCount(Connection connection,
CatalogRequest request)
Deprecated Returns the number of orphaned items in the catalog. |
ProductItemKey[] |
getOrphanedItemKeys(Connection connection,
CatalogRequest request,
int beginIndex,
int endIndex)
Deprecated Returns an array of all existing orphaned category keys within the specified ordered range. |
Category |
getParent(Connection connection,
CatalogRequest request,
CategoryKey categoryKey)
Deprecated Returns the parent of the specified category. |
Category |
getRootCategory(Connection connection,
CatalogRequest request)
Deprecated Returns the root category. |
int |
getSiblingCount(Connection connection,
CatalogRequest request,
CategoryKey categoryKey)
Deprecated Returns the number of siblings associated with the specified category. |
CategoryKey[] |
getSiblingKeys(Connection connection,
CatalogRequest request,
CategoryKey categoryKey,
int beginIndex,
int endIndex)
Deprecated Returns an array of all exististing sibling keys of the specified category within the specified ordered range. |
int |
getSubCategoryCount(Connection connection,
CatalogRequest request,
CategoryKey categoryKey)
Deprecated Returns the number of sub categories associated with the specified category. |
CategoryKey[] |
getSubCategoryKeys(Connection connection,
CatalogRequest request,
CategoryKey categoryKey,
int beginIndex,
int endIndex)
Deprecated Returns an array of all sub category keys of the specified category within the specified ordered range. |
void |
initialize(String schemaName)
Deprecated |
void |
moveCategory(Connection connection,
CatalogRequest request,
CategoryKey categoryKey,
CategoryKey newParentKey)
Deprecated Moves the specifed category. |
void |
removeCategory(Connection connection,
CatalogRequest request,
CategoryKey categoryKey)
Deprecated Removes the specifed category. |
void |
removeItem(Connection connection,
CatalogRequest request,
CategoryKey categoryKey,
ProductItemKey itemKey)
Deprecated Removes an item from the specified category. |
void |
removeItem(Connection connection,
CatalogRequest request,
ProductItemKey productKey)
Deprecated Removes a product item. |
void |
setKeywords(Connection connection,
CatalogRequest request,
ProductItemKey productKey,
String[] keywords)
Deprecated Sets the keywords for a given product item. |
void |
updateCategory(Connection connection,
CatalogRequest request,
Category category)
Deprecated Updates the specifed category. |
void |
updateItem(Connection connection,
CatalogRequest request,
ProductItem product)
Deprecated Updates a product item. |
Method Detail |
---|
CatalogSchemaManager getCatalogSchemaManager()
JdbcCatalogFactory getJdbcCatalogFactory()
void initialize(String schemaName)
int getItemCount(Connection connection, CatalogRequest request) throws CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.
CatalogException
- on general error.
SQLException
- on database access error.ProductItem getItem(Connection connection, CatalogRequest request, ProductItemKey productKey) throws CatalogFinderException, CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.productKey
- The key of the target product.
CatalogFinderException
- if the product item could not be found.
CatalogException
- on general error.
SQLException
- on database access error.ProductItem[] getItems(Connection connection, CatalogRequest request, ProductItemKey[] productKeys) throws CatalogFinderException, CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.keys
- The keys of the target product items.
CatalogFinderException
- if a product item with a given key does not exist.
CatalogException
- on general error.
SQLException
- on database access error.ProductItemKey[] getItemKeys(Connection connection, CatalogRequest request, int beginIndex, int endIndex) throws CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.beginIndex
- The lower bound index for returned product item keys.endIndex
- The upper bound index for returned product item keys.
CatalogException
- on general error.
SQLException
- on database access error.String[] getKeywords(Connection connection, CatalogRequest request, ProductItemKey productKey) throws CatalogFinderException, CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.productKey
- The key of the target product.
CatalogFinderException
- if the product item could not be found.
CatalogException
- on general error.
SQLException
- on database access error.void setKeywords(Connection connection, CatalogRequest request, ProductItemKey productKey, String[] keywords) throws CatalogFinderException, CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.productKey
- The key of the target product.keywords
- The keywords to associate with the given product item.
CatalogFinderException
- if the product item could not be found.
CatalogException
- on general error.
SQLException
- on database access error.void createItem(Connection connection, CatalogRequest request, ProductItem product) throws CatalogCreateException, CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.product
- The product item to persist.
CatalogCreateException
- if the product item could not be created.
CatalogException
- on general error.
SQLException
- on database access error.void updateItem(Connection connection, CatalogRequest request, ProductItem product) throws CatalogFinderException, CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.product
- The product item to update.
CatalogFinderException
- if the product item could not be found.
CatalogException
- on general error.
SQLException
- on database access error.void removeItem(Connection connection, CatalogRequest request, ProductItemKey productKey) throws CatalogRemoveException, CatalogFinderException, CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.product
- The product item to remove.
CatalogRemoveException
- if the product item could not be removed.
CatalogFinderException
- if the product item could not be found.
CatalogException
- on general error.
SQLException
- on database access error.Category getRootCategory(Connection connection, CatalogRequest request) throws CatalogCreateException, CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.
CatalogCreateException
- if the root category could not be created.
CatalogException
- on general error.
SQLException
- on database access error.int getCategoryCount(Connection connection, CatalogRequest request) throws CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.
CatalogException
- on general error.
SQLException
- on database access error.int getItemCount(Connection connection, CatalogRequest request, CategoryKey categoryKey) throws CatalogFinderException, CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.categoryKey
- The key of the target category.
CatalogFinderException
- if the specified category could not be found.
CatalogException
- on general error.
SQLException
- on database access error.int getSubCategoryCount(Connection connection, CatalogRequest request, CategoryKey categoryKey) throws CatalogFinderException, CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.categoryKey
- The key of the target category.
CatalogFinderException
- if the specified category could not be found.
CatalogException
- on general error.
SQLException
- on database access error.int getSiblingCount(Connection connection, CatalogRequest request, CategoryKey categoryKey) throws CatalogFinderException, CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.categoryKey
- The key of the target category.
CatalogFinderException
- if the specified category could not be found.
CatalogException
- on general error.
SQLException
- on database access error.int getOrphanedItemCount(Connection connection, CatalogRequest request) throws CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.
CatalogException
- on general error.
SQLException
- on database access error.Category getCategory(Connection connection, CatalogRequest request, CategoryKey categoryKey) throws CatalogFinderException, CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.categoryKey
- The key of the target category.
CatalogFinderException
- if a category with the given key does not exist.
CatalogException
- on general error.
SQLException
- on database access error.Category[] getCategories(Connection connection, CatalogRequest request, CategoryKey[] categoryKeys) throws CatalogFinderException, CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.keys
- The keys of the target categories.
CatalogFinderException
- if a category with a given key does not exist.
CatalogException
- on general error.
SQLException
- on database access error.CategoryKey[] getCategoryKeys(Connection connection, CatalogRequest request, int beginIndex, int endIndex) throws CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.beginIndex
- The lower bound index for returned category keys.endIndex
- The upper bound index for returned category keys.
CatalogException
- on general error.
SQLException
- on database access error.CategoryKey[] getSiblingKeys(Connection connection, CatalogRequest request, CategoryKey categoryKey, int beginIndex, int endIndex) throws CatalogException, SQLException
connection
- The database connection object.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.
CatalogException
- on general error.
SQLException
- on database access error.CategoryKey[] getSubCategoryKeys(Connection connection, CatalogRequest request, CategoryKey categoryKey, int beginIndex, int endIndex) throws CatalogException, SQLException
connection
- The database connection object.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.
CatalogException
- on general error.
SQLException
- on database access error.Category[] getAncestors(Connection connection, CatalogRequest request, CategoryKey categoryKey) throws CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.categoryKey
- The key of the target category.
CatalogException
- on general error.
SQLException
- on database access error.Category getParent(Connection connection, CatalogRequest request, CategoryKey categoryKey) throws CatalogFinderException, CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.categoryKey
- The key of the target category.
CatalogFinderException
- if the parent could not be found. This could happen if the specified category does not exist or is the root category.
CatalogException
- on general error.
SQLException
- on database access error.ProductItemKey[] getItemKeys(Connection connection, CatalogRequest request, CategoryKey categoryKey, int beginIndex, int endIndex) throws CatalogException, SQLException
connection
- The database connection object.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.
CatalogException
- on general error.
SQLException
- on database access error.ProductItemKey[] getOrphanedItemKeys(Connection connection, CatalogRequest request, int beginIndex, int endIndex) throws CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.beginIndex
- The lower bound index for returned category keys.endIndex
- The upper bound index for returned category keys.
CatalogException
- on general error.
SQLException
- on database access error.void createCategory(Connection connection, CatalogRequest request, CategoryKey parentKey, Category category) throws CatalogCreateException, CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.parentKey
- The key of the target parent category.category
- The category to persist.
CatalogCreateException
- on category creation error.
CatalogException
- on general error.
SQLException
- on database access error.void removeCategory(Connection connection, CatalogRequest request, CategoryKey categoryKey) throws CatalogRemoveException, CatalogFinderException, CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.categoryKey
- The key of the target category.
CatalogRemoveException
- if the specified category could not be removed.
CatalogFinderException
- if the specified category could not be found.
CatalogException
- on general error.
SQLException
- on database access error.void updateCategory(Connection connection, CatalogRequest request, Category category) throws CatalogFinderException, CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.category
- The category to update.
CatalogFinderException
- if the specified category could not be found.
CatalogException
- on general error.
SQLException
- on database access error.void moveCategory(Connection connection, CatalogRequest request, CategoryKey categoryKey, CategoryKey newParentKey) throws CatalogFinderException, CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.categoryKey
- The key of the target category.parentKey
- The key of the new parent category.
CatalogFinderException
- if the specified target or parent category could not be found.
CatalogException
- on general error.
SQLException
- on database access error.void addItem(Connection connection, CatalogRequest request, CategoryKey categoryKey, ProductItemKey itemKey) throws CatalogFinderException, CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.categoryKey
- The key of target category.itemKey
- The key of the target item.
CatalogFinderException
- if the target category or item could not be found.
CatalogException
- on general error.
SQLException
- on database access error.void removeItem(Connection connection, CatalogRequest request, CategoryKey categoryKey, ProductItemKey itemKey) throws CatalogFinderException, CatalogException, SQLException
connection
- The database connection object.request
- The catalog request object.categoryKey
- The key of target category.itemKey
- The key of the target item.
CatalogFinderException
- if the target category could not be found.
CatalogException
- on general error.
SQLException
- on database access error.
|
Copyright © 2000, 2008, Oracle and/or its affiliates. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |