public class CampaignLoggingECEventListenerImpl
extends com.ibm.commerce.event.impl.AbstractECEventListener
When customizing the campaign statistics, this class needs to be extended to persist the customer's actions to the CPGNLOG logging table by doing the following:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
CampaignLoggingECEventListenerImpl()
This constructor creates an instance of the campaign logging event listener.
|
Modifier and Type | Method and Description |
---|---|
protected CampaignLoggingDataBean | getCampaignLoggingData(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent cbe)
This method extracts the campaign logging data from the common base event.
|
java.lang.Class | getECEventContainer()
This method returns the class CampaignLoggingEventContainer as the event container.
|
java.util.Set | getEvents()
This method returns a set containing the extension name for the campaign logging event.
|
protected void | insertLog(CampaignLoggingDataBean campaignLogData)
This method inserts a new row into the CPGNLOG table.
|
protected void | insertStatistics(CampaignLoggingDataBean campaignLogData)
This method inserts a new row in the CPGNSTATS table.
|
protected void | processCampaignLoggingEvent(CampaignLoggingDataBean campaignLogData)
This method checks the campaign event data for custom fields, and updates the campaign statistics and log tables.
|
protected void | processCampaignLoggingEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent cbe) |
void | processEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
This method processes campaign logging common base events.
|
protected boolean | queryStatistics(CampaignLoggingDataBean campaignLogData)
This method checks whether or not the campaign has already been recorded in the statistics table.
|
void | setTestData(CampaignLoggingDataBean campaignLogData)
Reserved for IBM internal use.
|
protected void | updateStatistics(java.lang.String sql, CampaignLoggingDataBean campaignLogData)
This method updates the data in the CPGNSTATS table.
|
public static final java.lang.String COPYRIGHT
public CampaignLoggingECEventListenerImpl()
protected void processCampaignLoggingEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent cbe)
protected void insertLog(CampaignLoggingDataBean campaignLogData) throws java.sql.SQLException
protected void insertStatistics(CampaignLoggingDataBean campaignLogData) throws java.sql.SQLException
protected boolean queryStatistics(CampaignLoggingDataBean campaignLogData)
protected void updateStatistics(java.lang.String sql, CampaignLoggingDataBean campaignLogData) throws java.sql.SQLException
public java.lang.Class getECEventContainer()
public java.util.Set getEvents()
public void processEvent(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent commonBaseEvent)
public void setTestData(CampaignLoggingDataBean campaignLogData)
protected CampaignLoggingDataBean getCampaignLoggingData(org.eclipse.hyades.logging.events.cbe.CommonBaseEvent cbe)
protected void processCampaignLoggingEvent(CampaignLoggingDataBean campaignLogData) throws java.sql.SQLException