com.beasys.commerce.foundation.pipeline
Class CommercePipelineComponent
java.lang.Object
|
+--com.beasys.commerce.foundation.pipeline.CommercePipelineComponent
- All Implemented Interfaces:
- PipelineComponent
- Direct Known Subclasses:
- CalculateShippingPC, CatalogPC, FillOrderAdjustmentsPC, OrderHistoryByCustomerPC, OrderHistoryDateRangePC, OrderHistoryOrderIdPC, PaymentPC, RegisterUserPC, SecurityPC, TaxPC, UpdatePasswordPC, UpdateUserPC
- public abstract class CommercePipelineComponent
- extends java.lang.Object
- implements PipelineComponent
A CommercePipelineComponent
serves as the base class for all the PipelineComponents
in WLCS.
Method Summary |
java.sql.Connection |
getConnection()
Returns a database connection
|
void |
log(int level,
java.lang.String message)
A utility method to log messages |
void |
log(int level,
java.lang.String message,
java.lang.Throwable exception)
A utility method to log messages |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CommercePipelineComponent
public CommercePipelineComponent()
getConnection
public java.sql.Connection getConnection()
throws SystemException
- Returns a database connection
Set the commerce.jdbc.pool.url property in the weblogiccommerce.properties
to the pool url. For example, for the commerce pool specified in the
weblogic.properties, this property should be set as:
commerce.jdbc.pool.url=weblogic.jdbc.jts.commercePool.
log
public void log(int level,
java.lang.String message,
java.lang.Throwable exception)
- A utility method to log messages
- Parameters:
aLevel
- int. Possible levels are:
Log.LOG_DEBUG
Log.LOG_INFO
Log.LOG_WARNING
Log.LOG_ERROR
Log.LOG_FATAL
Log.LOG_SECURITY
message
- String. The message to be loggedexception
- Throwable. The exception that needs to be logged
log
public void log(int level,
java.lang.String message)
- A utility method to log messages
- Parameters:
aLevel
- int. Possible levels are:
Log.LOG_DEBUG
Log.LOG_INFO
Log.LOG_WARNING
Log.LOG_ERROR
Log.LOG_FATAL
Log.LOG_SECURITY
message
- String. The message to be logged
Copyright © 2001 BEA Systems, Inc. All Rights Reserved