|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.beasys.commerce.foundation.SessionImpl com.beasys.commerce.ebusiness.catalog.service.CatalogServiceImpl com.beasys.commerce.ebusiness.catalog.service.JdbcCatalogServiceImpl com.beasys.commerce.ebusiness.catalog.service.item.JdbcProductItemManagerImpl
The implementation class for the JdbcProductItemManager
Session EJB.
JdbcProductItemManager
,
JdbcProductItemManagerHome
,
Serialized FormField Summary |
Fields inherited from class com.beasys.commerce.ebusiness.catalog.service.JdbcCatalogServiceImpl |
DATA_SOURCE_NAME, SCHEMA_FILE_NAME, SQL_MANAGER_CLASS |
Fields inherited from class com.beasys.commerce.ebusiness.catalog.service.CatalogServiceImpl |
CATALOG_MANAGER_HOME |
Fields inherited from class com.beasys.commerce.foundation.SessionImpl |
_ctx, _environmentNamingContext, _environmentPropertyCache, _isDirty |
Constructor Summary | |
JdbcProductItemManagerImpl()
|
Method Summary | |
void |
createItem(CatalogRequest request,
ProductItem product)
Creates a new product item. |
void |
ejbActivate()
ejbActivate method. |
void |
ejbCreate()
ejbCreate method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate()
ejbPostCreate method. |
void |
ejbRemove()
ejbRemove method. |
ProductItem |
getItem(CatalogRequest request,
ProductItemKey productKey)
Returns the product item with the specified key. |
int |
getItemCount(CatalogRequest request)
Returns the number of product items in the product catalog. |
ProductItemKey[] |
getItemKeys(CatalogRequest request,
int beginIndex,
int endIndex)
Returns an array over all existing product item keys within the specified ordered range. |
ViewIterator |
getItems(CatalogRequest request,
int viewSize)
Returns a ViewIterator over all existing product items. |
ProductItem[] |
getItems(CatalogRequest request,
ProductItemKey[] productKeys)
Returns the product items with the given product item keys. |
String[] |
getKeywords(CatalogRequest request,
ProductItemKey productKey)
Returns the keywords associated with a given product item. |
void |
removeItem(CatalogRequest request,
ProductItemKey productKey)
Removes a product item. |
void |
setKeywords(CatalogRequest request,
ProductItemKey productKey,
String[] keywords)
Sets the keywords for a given product item. |
void |
setSessionContext(SessionContext ctx)
setSessionContext method. |
void |
updateItem(CatalogRequest request,
ProductItem product)
Updates a product item. |
Methods inherited from class com.beasys.commerce.ebusiness.catalog.service.JdbcCatalogServiceImpl |
getCatalogSchemaName, getCatalogSqlManager, getCatalogSqlManager, getCatalogSqlManagerName, getDatabaseConnection, getJdbcCatalogFactory |
Methods inherited from class com.beasys.commerce.ebusiness.catalog.service.CatalogServiceImpl |
getCatalogManager, getCatalogManagerJndiName, validateAuthorization |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public JdbcProductItemManagerImpl()
Method Detail |
public void createItem(CatalogRequest request, ProductItem product) throws CatalogCreateException, CatalogException
request
- The catalog request object.product
- The product item to persist.
CatalogCreateException
- if the product item could not be created.
CatalogException
- on general error.public void ejbActivate() throws EJBException
SessionImpl
ejbActivate
in interface SessionBean
ejbActivate
in class JdbcCatalogServiceImpl
EJBException
public void ejbCreate() throws CreateException
SessionImpl
ejbCreate
in class JdbcCatalogServiceImpl
CreateException
public void ejbPassivate() throws EJBException
SessionImpl
ejbPassivate
in interface SessionBean
ejbPassivate
in class JdbcCatalogServiceImpl
EJBException
public void ejbPostCreate() throws CreateException
SessionImpl
ejbPostCreate
in class JdbcCatalogServiceImpl
CreateException
public void ejbRemove() throws EJBException
SessionImpl
ejbRemove
in interface SessionBean
ejbRemove
in class JdbcCatalogServiceImpl
EJBException
public ProductItem getItem(CatalogRequest request, ProductItemKey productKey) throws CatalogFinderException, CatalogException
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.public int getItemCount(CatalogRequest request) throws CatalogException
request
- The catalog request object
CatalogException
- on general error.public ProductItemKey[] getItemKeys(CatalogRequest request, int beginIndex, int endIndex) throws CatalogException
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.public ViewIterator getItems(CatalogRequest request, int viewSize) throws CatalogException, RemoteException
request
- The catalog request object.viewSize
- The view size of the returned ViewIterator.
CatalogException
- on general error.
RemoteException
public ProductItem[] getItems(CatalogRequest request, ProductItemKey[] productKeys) throws CatalogFinderException, CatalogException
request
- The catalog request object.
CatalogFinderException
- if a product item with a given key does not exist.
CatalogException
- on general error.public String[] getKeywords(CatalogRequest request, ProductItemKey productKey) throws CatalogFinderException, CatalogException
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.public void removeItem(CatalogRequest request, ProductItemKey productKey) throws CatalogRemoveException, CatalogFinderException, CatalogException
request
- The catalog request object.
CatalogRemoveException
- if the product item could not be removed.
CatalogFinderException
- if the product item could not be found.
CatalogException
- on general error.public void setKeywords(CatalogRequest request, ProductItemKey productKey, String[] keywords) throws CatalogFinderException, CatalogException
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.public void setSessionContext(SessionContext ctx) throws EJBException
SessionImpl
setSessionContext
in interface SessionBean
setSessionContext
in class JdbcCatalogServiceImpl
EJBException
public void updateItem(CatalogRequest request, ProductItem product) throws CatalogFinderException, CatalogException
request
- The catalog request object.product
- The product item to update.
CatalogFinderException
- if the product item could not be found.
CatalogException
- on general error.
|
© 2005 BEA Systems, Inc. | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |