|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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 FormField Summary | |
static java.lang.String |
DATA_SOURCE_NAME
The environment property that specifies JDBC pool that all JDBC services will access. |
static java.lang.String |
SCHEMA_FILE_NAME
The environment property that specifies the schema file that all JDBC services will utilize. |
static java.lang.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()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbPostCreate()
|
void |
ejbRemove()
|
protected java.lang.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(java.lang.String catalogManagerClassName,
java.lang.String schemaName)
Returns a specified CatalogSqlManager implementation class instance. |
protected java.lang.String |
getCatalogSqlManagerName()
Returns the class name of the SQL manager associated with this service. |
protected java.sql.Connection |
getDatabaseConnection()
Gets a database connection from the Commerce Server connection pool. |
protected JdbcCatalogFactory |
getJdbcCatalogFactory()
Returns a JDBC-based Catalog factory. |
void |
setSessionContext(javax.ejb.SessionContext ctx)
|
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 |
public static final java.lang.String DATA_SOURCE_NAME
public static final java.lang.String SCHEMA_FILE_NAME
public static final java.lang.String SQL_MANAGER_CLASS
Constructor Detail |
public JdbcCatalogServiceImpl()
Method Detail |
public void ejbCreate() throws javax.ejb.CreateException
public void ejbPostCreate() throws javax.ejb.CreateException
public void ejbActivate() throws javax.ejb.EJBException
public void ejbPassivate() throws javax.ejb.EJBException
public void ejbRemove() throws javax.ejb.EJBException
public void setSessionContext(javax.ejb.SessionContext ctx) throws javax.ejb.EJBException
protected java.sql.Connection getDatabaseConnection() throws CatalogDeploymentException
protected JdbcCatalogFactory getJdbcCatalogFactory() throws SystemException
protected java.lang.String getCatalogSqlManagerName() throws SystemException
protected java.lang.String getCatalogSchemaName() throws SystemException
protected CatalogSqlManager getCatalogSqlManager() throws SystemException
protected static CatalogSqlManager getCatalogSqlManager(java.lang.String catalogManagerClassName, java.lang.String schemaName) throws SystemException
CatalogSqlManager
implementation class instance.
catalogManagerClassName
- The name of the CatalogSqlManager
implementation class.
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |