© 2005 BEA Systems, Inc.

com.beasys.commerce.ebusiness.catalog.service.data
Class CustomDataManagerImpl

java.lang.Object
  extended bycom.beasys.commerce.foundation.SessionImpl
      extended bycom.beasys.commerce.ebusiness.catalog.service.CatalogServiceImpl
          extended bycom.beasys.commerce.ebusiness.catalog.service.data.CustomDataManagerImpl
All Implemented Interfaces:
EnterpriseBean, Serializable, SessionBean

public class CustomDataManagerImpl
extends CatalogServiceImpl

The implementation class for the CustomDataManager Session EJB. This implementation delegates to the service specifed by the following EJB environment property:

See Also:
CustomDataManager, CustomDataManagerHome, CatalogManager, Serialized Form

Field Summary
 
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
CustomDataManagerImpl()
           
 
Method Summary
 long createUniqueId(CatalogRequest request, String jndiHomeName, String pkString)
          Create a record for a new ConfigurableEntity, as identified by the given jndiHomeName and pkString.
 void ejbActivate()
          ejbActivate method.
 void ejbCreate()
          ejbCreate method.
 void ejbPassivate()
          ejbPassivate method.
 void ejbPostCreate()
          ejbPostCreate method.
 void ejbRemove()
          ejbRemove method.
 Map getProperties(CatalogRequest request, CatalogItemKey itemKey)
          Retrieve all the property values within a namespace
 Map getProperties(CatalogRequest request, CatalogItemKey itemKey, String namespace)
          Retrieve all the property values within a namespace
 Object getProperty(CatalogRequest request, CatalogItemKey itemKey, String namespace, String key, Object defaultValue)
          Retrieve the value associated with the named key.
 Object getProperty(CatalogRequest request, CatalogItemKey itemKey, String propertySetName, String propertySetType, String key, boolean returnDefault)
          Retrieve the value associated with the named key.
 void removeProperties(CatalogRequest request, CatalogItemKey itemKey)
          Remove all the properties for an item with a namespace
 Object removeProperty(CatalogRequest request, CatalogItemKey itemKey, String namespace, String key)
          Remove the property associated with the named key.
 Object removeProperty(CatalogRequest request, CatalogItemKey itemKey, String propertySetName, String propertySetType, String key)
          Remove the property associated with the named key.
 void setProperty(CatalogRequest request, CatalogItemKey itemKey, String namespace, String key, Object value)
          Associate the specified value with the named key.
 void setProperty(CatalogRequest request, CatalogItemKey itemKey, String propertySetName, String propertySetType, String key, Object value)
          Associate the specified value with the named key.
 void setSessionContext(SessionContext ctx)
          setSessionContext method.
 
Methods inherited from class com.beasys.commerce.ebusiness.catalog.service.CatalogServiceImpl
getCatalogManager, getCatalogManagerJndiName, validateAuthorization
 
Methods inherited from class com.beasys.commerce.foundation.SessionImpl
clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, doRelationalBinding, doRelationalBinding, doRelationalBindingOnElement, doRelationalBindingOnElement, doRelationalBindingOnElement, doRelationalBindingOnSingleton, doRelationalBindingOnSingleton, doRelationalBindingOnSingleton, doRelationalBindingWithMapKey, doRelationalBindingWithMapKey, doRelationalBindingWithMapKey, enumerateRelationalBinding, enumerateRelationalBinding, getEnvironmentNamingContext, getEnvironmentProperty, getEnvironmentProperty, getEnvironmentPropertyCache, getPersistenceHelperPlugin, getSessionContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomDataManagerImpl

public CustomDataManagerImpl()
Method Detail

createUniqueId

public long createUniqueId(CatalogRequest request,
                           String jndiHomeName,
                           String pkString)
                    throws RemoteException,
                           CatalogException
Create a record for a new ConfigurableEntity, as identified by the given jndiHomeName and pkString.

Parameters:
request - The catalog request.
jndiHomeName - the entity's home name
pkString - the entity's identifier string
Returns:
the newly created entity id
Throws:
CatalogException - if there is an error
RemoteException

ejbActivate

public void ejbActivate()
                 throws EJBException
Description copied from class: SessionImpl
ejbActivate method.

Specified by:
ejbActivate in interface SessionBean
Overrides:
ejbActivate in class CatalogServiceImpl
Throws:
EJBException

ejbCreate

public void ejbCreate()
               throws CreateException
Description copied from class: SessionImpl
ejbCreate method.

Overrides:
ejbCreate in class CatalogServiceImpl
Throws:
CreateException

ejbPassivate

public void ejbPassivate()
                  throws EJBException
Description copied from class: SessionImpl
ejbPassivate method.

Specified by:
ejbPassivate in interface SessionBean
Overrides:
ejbPassivate in class CatalogServiceImpl
Throws:
EJBException

ejbPostCreate

public void ejbPostCreate()
                   throws CreateException
Description copied from class: SessionImpl
ejbPostCreate method.

Overrides:
ejbPostCreate in class CatalogServiceImpl
Throws:
CreateException

ejbRemove

public void ejbRemove()
               throws EJBException
Description copied from class: SessionImpl
ejbRemove method.

Specified by:
ejbRemove in interface SessionBean
Overrides:
ejbRemove in class CatalogServiceImpl
Throws:
EJBException

getProperties

public Map getProperties(CatalogRequest request,
                         CatalogItemKey itemKey)
                  throws RemoteException,
                         CatalogException
Retrieve all the property values within a namespace

Parameters:
request - The catalog request.
itemKey - The key of the target catalog item.
Throws:
CatalogException - on general error.
RemoteException

getProperties

public Map getProperties(CatalogRequest request,
                         CatalogItemKey itemKey,
                         String namespace)
                  throws RemoteException,
                         CatalogException
Retrieve all the property values within a namespace

Parameters:
request - The catalog request.
itemKey - The key of the target catalog item.
Throws:
CatalogException - on general error.
RemoteException

getProperty

public Object getProperty(CatalogRequest request,
                          CatalogItemKey itemKey,
                          String namespace,
                          String key,
                          Object defaultValue)
                   throws RemoteException,
                          CatalogException
Retrieve the value associated with the named key.

Parameters:
request - The catalog request.
itemKey - The key of the target catalog item.
key - The name of the property to retrieve.
defaultValue - The value to return if that property is not set.
Throws:
CatalogException - on general error.
RemoteException

getProperty

public Object getProperty(CatalogRequest request,
                          CatalogItemKey itemKey,
                          String propertySetName,
                          String propertySetType,
                          String key,
                          boolean returnDefault)
                   throws CatalogException,
                          RemoteException
Retrieve the value associated with the named key.

Parameters:
request - The catalog request.
itemKey - The key of the target catalog item.
key - The name of the property to retrieve.
Throws:
CatalogException - on general error.
RemoteException

removeProperties

public void removeProperties(CatalogRequest request,
                             CatalogItemKey itemKey)
                      throws RemoteException,
                             CatalogException
Remove all the properties for an item with a namespace

Parameters:
request - The catalog request.
itemKey - The key of the target catalog item.
Throws:
CatalogException - on general error.
RemoteException

removeProperty

public Object removeProperty(CatalogRequest request,
                             CatalogItemKey itemKey,
                             String namespace,
                             String key)
                      throws RemoteException,
                             CatalogException
Remove the property associated with the named key.

Parameters:
request - The catalog request.
itemKey - The key of the target catalog item.
key - The name of the property to remove.
Throws:
CatalogException - on general error.
RemoteException

removeProperty

public Object removeProperty(CatalogRequest request,
                             CatalogItemKey itemKey,
                             String propertySetName,
                             String propertySetType,
                             String key)
                      throws CatalogException,
                             RemoteException
Remove the property associated with the named key.

Parameters:
request - The catalog request.
itemKey - The key of the target catalog item.
key - The name of the property to remove.
Throws:
CatalogException - on general error.
RemoteException

setProperty

public void setProperty(CatalogRequest request,
                        CatalogItemKey itemKey,
                        String namespace,
                        String key,
                        Object value)
                 throws RemoteException,
                        CatalogException
Associate the specified value with the named key.

Parameters:
request - The catalog request.
itemKey - The key of the target catalog item.
value - The value to associate with the name.
Throws:
CatalogException - on general error.
RemoteException

setProperty

public void setProperty(CatalogRequest request,
                        CatalogItemKey itemKey,
                        String propertySetName,
                        String propertySetType,
                        String key,
                        Object value)
                 throws RemoteException,
                        CatalogException
Associate the specified value with the named key.

Parameters:
request - The catalog request.
itemKey - The key of the target catalog item.
value - The value to associate with the name.
Throws:
CatalogException - on general error.
RemoteException

setSessionContext

public void setSessionContext(SessionContext ctx)
                       throws EJBException
Description copied from class: SessionImpl
setSessionContext method.

Specified by:
setSessionContext in interface SessionBean
Overrides:
setSessionContext in class CatalogServiceImpl
Throws:
EJBException

© 2005 BEA Systems, Inc.

Copyright © 2005 BEA Systems, Inc. All Rights Reserved