ProductItemManagerImpl Class
- public class ProductItemManagerImpl
extends CatalogServiceImpl
The implementation class for the ProductItemManager
Session EJB.
This implementation delegates to the service specifed by the following EJB
environment property:
delegateName
- specifies the delegatory ProductItemManager
service.
Related Topics
ProductItemManager
ProductItemManagerHome
CatalogManager
-
Hierarchy
-
Object
SessionImpl
CatalogServiceImpl
ProductItemManagerImpl
-
All Implemented Interfaces
-
EnterpriseBean
, Serializable
, SessionBean
public void |
-
createItem (CatalogRequest request, ProductItem product)
- Creates a new product item.
|
public void |
-
ejbActivate ()
- ejbActivate method.
|
public void |
-
ejbCreate ()
- ejbCreate method.
|
public void |
-
ejbPassivate ()
- ejbPassivate method.
|
public void |
-
ejbPostCreate ()
- ejbPostCreate method.
|
public void |
-
ejbRemove ()
- ejbRemove method.
|
public ProductItem |
-
getItem (CatalogRequest request, ProductItemKey productKey)
- Returns the product item with the specified key.
|
public int |
-
getItemCount (CatalogRequest request)
- Returns the number of product items in the product catalog.
|
public ProductItemKey [] |
-
getItemKeys (CatalogRequest request, int beginIndex, int endIndex)
- Returns an array over all existing product item keys within the specified ordered range.
|
public ProductItem [] |
-
getItems (CatalogRequest request, ProductItemKey [] productKeys)
- Returns the product items with the given product item keys.
|
public ViewIterator |
-
getItems (CatalogRequest request, int viewSize)
- Returns a ViewIterator over all existing product items.
|
public String [] |
-
getKeywords (CatalogRequest request, ProductItemKey productKey)
- Returns the keywords associated with a given product item.
|
public void |
-
removeItem (CatalogRequest request, ProductItemKey productKey)
- Removes a product item.
|
public void |
-
setKeywords (CatalogRequest request, ProductItemKey productKey, String [] keywords)
- Sets the keywords for a given product item.
|
public void |
-
setSessionContext (SessionContext ctx)
- setSessionContext method.
|
public void |
-
updateItem (CatalogRequest request, ProductItem product)
- Updates a product item.
|
Methods from com.beasys.commerce.foundation.SessionImpl |
clearRelationalBinding , clearRelationalBinding , clearRelationalBinding , clearRelationalBinding , doRelationalBinding , doRelationalBinding , doRelationalBindingOnElement , doRelationalBindingOnElement , doRelationalBindingOnElement , doRelationalBindingOnSingleton , doRelationalBindingOnSingleton , doRelationalBindingOnSingleton , doRelationalBindingWithMapKey , doRelationalBindingWithMapKey , doRelationalBindingWithMapKey , ejbActivate , ejbCreate , ejbPassivate , ejbPostCreate , ejbRemove , enumerateRelationalBinding , enumerateRelationalBinding , getEnvironmentNamingContext , getEnvironmentProperty , getEnvironmentProperty , getEnvironmentPropertyCache , getPersistenceHelperPlugin , getSessionContext , setSessionContext
|
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProductItemManagerImpl
public ProductItemManagerImpl()
createItem(CatalogRequest, ProductItem) Method
public void createItem(CatalogRequest
request,
ProductItem
product)
throws CatalogCreateException
, CatalogException
, RemoteException
Creates a new product item.
Parameters
-
request
- The catalog request object.
-
product
- The product item to persist.
Exceptions
-
CatalogCreateException
- if the product item could not be created.
-
CatalogException
- on general error.
-
RemoteException
ejbActivate() Method
public void ejbActivate()
throws EJBException
Description copied from SessionImpl.ejbActivate()
ejbActivate method.
-
Overrides
-
CatalogServiceImpl.ejbActivate()
Exceptions
-
EJBException
ejbCreate() Method
public void ejbCreate()
throws CreateException
Description copied from SessionImpl.ejbCreate()
ejbCreate method.
-
Overrides
-
CatalogServiceImpl.ejbCreate()
Exceptions
-
CreateException
ejbPassivate() Method
public void ejbPassivate()
throws EJBException
Description copied from SessionImpl.ejbPassivate()
ejbPassivate method.
-
Overrides
-
CatalogServiceImpl.ejbPassivate()
Exceptions
-
EJBException
ejbPostCreate() Method
public void ejbPostCreate()
throws CreateException
Description copied from SessionImpl.ejbPostCreate()
ejbPostCreate method.
-
Overrides
-
CatalogServiceImpl.ejbPostCreate()
Exceptions
-
CreateException
ejbRemove() Method
public void ejbRemove()
throws EJBException
Description copied from SessionImpl.ejbRemove()
ejbRemove method.
-
Overrides
-
CatalogServiceImpl.ejbRemove()
Exceptions
-
EJBException
getItem(CatalogRequest, ProductItemKey) Method
public ProductItem
getItem(CatalogRequest
request,
ProductItemKey
productKey)
throws CatalogFinderException
, CatalogException
, RemoteException
Returns the product item with the specified key.
Parameters
-
request
- The catalog request object.
-
productKey
- The key of the target product.
Exceptions
-
CatalogFinderException
- if the product item could not be found.
-
CatalogException
- on general error.
-
RemoteException
getItemCount(CatalogRequest) Method
public int getItemCount(CatalogRequest
request)
throws CatalogException
, RemoteException
Returns the number of product items in the product catalog.
Parameters
-
request
- The catalog request object
Returns
- The number of product items in the product catalog.
Exceptions
-
CatalogException
- on general error.
-
RemoteException
getItemKeys(CatalogRequest, int, int) Method
public ProductItemKey
[] getItemKeys(CatalogRequest
request,
int beginIndex,
int endIndex)
throws CatalogException
, RemoteException
Returns an array over all existing product item keys within the specified ordered range.
Parameters
-
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.
Returns
- An array of the product item keys.
Exceptions
-
CatalogException
- on general error.
-
RemoteException
getItems(CatalogRequest, ProductItemKey[]) Method
public ProductItem
[] getItems(CatalogRequest
request,
ProductItemKey
[] productKeys)
throws CatalogFinderException
, CatalogException
, RemoteException
Returns the product items with the given product item keys.
Parameters
-
request
- The catalog request object.
-
productKeys
- The keys of the target product items.
Returns
- The product items with the given product item keys.
Exceptions
-
CatalogFinderException
- if a product item with a given key does not exist.
-
CatalogException
- on general error.
-
RemoteException
getItems(CatalogRequest, int) Method
public ViewIterator
getItems(CatalogRequest
request,
int viewSize)
throws CatalogException
, RemoteException
Returns a ViewIterator over all existing product items.
Parameters
-
request
- The catalog request object.
-
viewSize
- The view size of the returned ViewIterator.
Returns
- A ViewIterator over all existing product items.
Exceptions
-
CatalogException
- on general error.
-
RemoteException
getKeywords(CatalogRequest, ProductItemKey) Method
public String
[] getKeywords(CatalogRequest
request,
ProductItemKey
productKey)
throws CatalogFinderException
, CatalogException
, RemoteException
Returns the keywords associated with a given product item.
Parameters
-
request
- The catalog request object.
-
productKey
- The key of the target product.
Returns
- The keywords associated with the given product item. If there are no keywords associated with the item, a zero length <code>String</code> array is returned.
Exceptions
-
CatalogFinderException
- if the product item could not be found.
-
CatalogException
- on general error.
-
RemoteException
removeItem(CatalogRequest, ProductItemKey) Method
public void removeItem(CatalogRequest
request,
ProductItemKey
productKey)
throws CatalogRemoveException
, CatalogFinderException
, CatalogException
, RemoteException
Removes a product item.
Parameters
-
request
- The catalog request object.
-
productKey
- The product item to remove.
Exceptions
-
CatalogRemoveException
- if the product item could not be removed.
-
CatalogFinderException
- if the product item could not be found.
-
CatalogException
- on general error.
-
RemoteException
setKeywords(CatalogRequest, ProductItemKey, String[]) Method
public void setKeywords(CatalogRequest
request,
ProductItemKey
productKey,
String
[] keywords)
throws CatalogFinderException
, CatalogException
, RemoteException
Sets the keywords for a given product item.
Parameters
-
request
- The catalog request object.
-
productKey
- The key of the target product.
-
keywords
- The keywords to associate with the given product item.
Exceptions
-
CatalogFinderException
- if the product item could not be found.
-
CatalogException
- on general error.
-
RemoteException
setSessionContext(SessionContext) Method
public void setSessionContext(SessionContext
ctx)
throws EJBException
Description copied from SessionImpl.setSessionContext(SessionContext)
setSessionContext method.
-
Overrides
-
CatalogServiceImpl.setSessionContext(SessionContext)
Exceptions
-
EJBException
updateItem(CatalogRequest, ProductItem) Method
public void updateItem(CatalogRequest
request,
ProductItem
product)
throws CatalogFinderException
, CatalogException
, RemoteException
Updates a product item.
Parameters
-
request
- The catalog request object.
-
product
- The product item to update.
Exceptions
-
CatalogFinderException
- if the product item could not be found.
-
CatalogException
- on general error.
-
RemoteException