|
© 2003 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
This is the base service implementation for all JDBC-based Catalog services.
It contains common functionality that all JDBC-based Catalog services must
implement; therefore, all JDBC-based Catalog service implementations should
extend this class.
The JdbcCatalogService depends upon several environment variables
to dictate its runtime behavior:
jdbc/commercePool environment property.
SchemaFile environment variable.
SqlManagerClass environment variable.
JdbcCatalogService,
JdbcCatalogServiceHome,
CatalogSqlManager,
Serialized Form| Field Summary | |
protected static String |
DATA_SOURCE_NAME
The environment property that specifies JDBC pool that all JDBC services will access. |
protected static String |
SCHEMA_FILE_NAME
The environment property that specifies the schema file that all JDBC services will utilize. |
protected static String |
SQL_MANAGER_CLASS
The environment property that specifies the SQL manager class that all JDBC service will utilize. |
| 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 | |
JdbcCatalogServiceImpl()
|
|
| Method Summary | |
void |
ejbActivate()
ejbActivate method. |
void |
ejbCreate()
ejbCreate method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate()
ejbPostCreate method. |
void |
ejbRemove()
ejbRemove method. |
protected String |
getCatalogSchemaName()
Returns the name of the Catalog schema file. |
protected CatalogSqlManager |
getCatalogSqlManager()
Returns an instance of the Catalog SQL manager assoicated with this service. |
protected static CatalogSqlManager |
getCatalogSqlManager(String catalogManagerClassName,
String schemaName)
Returns a specified CatalogSqlManager implementation class instance. |
protected String |
getCatalogSqlManagerName()
Returns the class name of the SQL manager associated with this service. |
protected Connection |
getDatabaseConnection()
Gets a database connection from the Commerce Server connection pool. |
protected JdbcCatalogFactory |
getJdbcCatalogFactory()
Returns a JDBC-based Catalog factory. |
void |
setSessionContext(SessionContext ctx)
setSessionContext method. |
| 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 |
| Field Detail |
protected static final String DATA_SOURCE_NAME
protected static final String SCHEMA_FILE_NAME
protected static final String SQL_MANAGER_CLASS
| Constructor Detail |
public JdbcCatalogServiceImpl()
| Method Detail |
public void ejbCreate()
throws CreateException
SessionImpl
ejbCreate in class CatalogServiceImplCreateException
public void ejbPostCreate()
throws CreateException
SessionImpl
ejbPostCreate in class CatalogServiceImplCreateException
public void ejbActivate()
throws EJBException
SessionImpl
ejbActivate in interface SessionBeanejbActivate in class CatalogServiceImplEJBException
public void ejbPassivate()
throws EJBException
SessionImpl
ejbPassivate in interface SessionBeanejbPassivate in class CatalogServiceImplEJBException
public void ejbRemove()
throws EJBException
SessionImpl
ejbRemove in interface SessionBeanejbRemove in class CatalogServiceImplEJBException
public void setSessionContext(SessionContext ctx)
throws EJBException
SessionImpl
setSessionContext in interface SessionBeansetSessionContext in class CatalogServiceImplEJBException
protected Connection getDatabaseConnection()
throws CatalogDeploymentException
CatalogDeploymentException - if the connection pool is misconfigured.
protected JdbcCatalogFactory getJdbcCatalogFactory()
throws SystemException
SystemException
protected String getCatalogSqlManagerName()
throws SystemException
SystemException
protected String getCatalogSchemaName()
throws SystemException
SystemException
protected CatalogSqlManager getCatalogSqlManager()
throws SystemException
SystemException
protected static CatalogSqlManager getCatalogSqlManager(String catalogManagerClassName,
String schemaName)
throws SystemException
CatalogSqlManager implementation class instance.
catalogManagerClassName - The name of the CatalogSqlManager implementation class.
SystemException
|
© 2003 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||