com.ibm.commerce.marketingcenter.events.dbobjects
Class PEStats

java.lang.Object
  |
  +--com.ibm.commerce.marketingcenter.events.dbobjects.PEStats
All Implemented Interfaces:
MktgEventHandler, MktgLogEventHandler

public class PEStats
extends java.lang.Object
implements MktgLogEventHandler

This is the object that will persist (create / update) the event into the PESTATS table.


Field Summary
 java.lang.Long catgroup_id
          Category ID, maps to the table column with the same name.
static java.lang.String COPYRIGHT
          IBM copyright notice field.
 java.lang.Integer feature_id
          Feature ID, maps to the table column with the same name.
 java.lang.Integer pecount
          # times feature was searched for, maps to the table column with the same name.
 java.lang.String pefeaturename
          Feature name, maps to the table column with the same name.
 java.lang.Integer storeent_id
          Store entity ID, maps to the table column with the same name.
 
Constructor Summary
PEStats()
          Constructor for PEStats.
 
Method Summary
 void addEvent()
          This method will persist/update a record in the PESTATS table.
 void addEvent(java.util.Hashtable h)
          This method will persist/update a record in the PESTATS table.
 void addEvent(java.lang.Long catGroupId, java.lang.Integer storeId, java.lang.Integer featureId, java.lang.String peFeatureName)
          This method will persist/update a record in the PESTATS table.
 void addEvent( TypedProperty tp)
          This method will persist/update a record in the PESTATS table.
 void addEvent( TypedProperty tp, java.lang.Integer storeIdentifier)
          This method will persist/update a record in the PESTATS table.
 java.lang.Long getCatgroup_id()
          Gets the category ID recorded in the current event.
 java.lang.Integer getFeature_id()
          Gets the feature ID recorded in the current event.
 java.lang.Integer getPecount()
          Gets the number of product explorer count recorded in the current event.
 java.lang.String getPefeaturename()
          Gets the product explorer feature name recorded in the current event.
 java.lang.Integer getStoreent_id()
          Gets the store entity ID recorded in the current event.
 void persistEvent()
          Persists the current event by inserting the event details into the database.
 void setCatgroup_id(java.lang.Long newCatgroup_id)
          Sets the category ID recorded in the current event.
 void setFeature_id(java.lang.Integer newFeature_id)
          Sets the feature ID recorded in the current event.
 void setPecount(java.lang.Integer newPecount)
          Sets the product explorer count recorded in the current event.
 void setPefeaturename(java.lang.String newPefeaturename)
          Sets the product explorer feature name recorded in the current event.
 void setStoreent_id(java.lang.Integer newStoreent_id)
          Sets the store entity ID recorded in the current event.
 
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 COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values

feature_id

public java.lang.Integer feature_id
Feature ID, maps to the table column with the same name.

pefeaturename

public java.lang.String pefeaturename
Feature name, maps to the table column with the same name.

storeent_id

public java.lang.Integer storeent_id
Store entity ID, maps to the table column with the same name.

catgroup_id

public java.lang.Long catgroup_id
Category ID, maps to the table column with the same name.

pecount

public java.lang.Integer pecount
# times feature was searched for, maps to the table column with the same name.
Constructor Detail

PEStats

public PEStats()
Constructor for PEStats.
Method Detail

addEvent

public void addEvent()
This method will persist/update a record in the PESTATS table. If a a record is not found, one will be created with the counters set to 0. If a record exists, the view count is incremented. The caller must do all the setXXX prior to calling this.

addEvent

public void addEvent(TypedProperty tp)
This method will persist/update a record in the PESTATS table. If a a record is not found, one will be created with the counters set to 0. If a record exists, the view count is incremented.
Specified by:
addEvent in interface MktgLogEventHandler
Parameters:
tp - The TypedProperty that contains all the column=value pairs. The key name should be the same name as in the database table. The type should also be the same (e.g. Integer).

addEvent

public void addEvent(TypedProperty tp,
                     java.lang.Integer storeIdentifier)
This method will persist/update a record in the PESTATS table. If a a record is not found, one will be created with the counters set to 0. If a record exists, the view count is incremented.
Specified by:
addEvent in interface MktgLogEventHandler
Parameters:
tp - The TypedProperty that contains all the column=value pairs. The key name should be the same name as in the database table. The type should also be the same (e.g. Integer).
storeIdentifier - The WCS store Id

addEvent

public void addEvent(java.lang.Long catGroupId,
                     java.lang.Integer storeId,
                     java.lang.Integer featureId,
                     java.lang.String peFeatureName)
This method will persist/update a record in the PESTATS table. If a a record is not found, one will be created with the counters set to 0. If a record exists, the view count is incremented.
Parameters:
catGroupId - the category ID to be persisted
storeId - the store ID to be persisted
featureId - the feature ID to be persisted
peFeatureName - the product explorer feature name to be persisted

addEvent

public void addEvent(java.util.Hashtable h)
This method will persist/update a record in the PESTATS table. If a a record is not found, one will be created with the counters set to 0. If a record exists, the view count is incremented.
Specified by:
addEvent in interface MktgLogEventHandler
Parameters:
h - The Hashtable that contains all the column=value pairs. The key name should be the same name as in the database table. The type should also be the same (e.g. Integer).

getCatgroup_id

public java.lang.Long getCatgroup_id()
Gets the category ID recorded in the current event.
Returns:
category ID

getFeature_id

public java.lang.Integer getFeature_id()
Gets the feature ID recorded in the current event.
Returns:
feature ID

getPecount

public java.lang.Integer getPecount()
Gets the number of product explorer count recorded in the current event.
Returns:
product explorer count

getPefeaturename

public java.lang.String getPefeaturename()
Gets the product explorer feature name recorded in the current event.
Returns:
product explorer feature name

getStoreent_id

public java.lang.Integer getStoreent_id()
Gets the store entity ID recorded in the current event.
Returns:
store entity ID

persistEvent

public void persistEvent()
Persists the current event by inserting the event details into the database.

setCatgroup_id

public void setCatgroup_id(java.lang.Long newCatgroup_id)
Sets the category ID recorded in the current event.
Parameters:
newCatgroup_id - category ID

setFeature_id

public void setFeature_id(java.lang.Integer newFeature_id)
Sets the feature ID recorded in the current event.
Parameters:
newFeature_id - feature ID

setPecount

public void setPecount(java.lang.Integer newPecount)
Sets the product explorer count recorded in the current event.
Parameters:
newPecount - product explorer count

setPefeaturename

public void setPefeaturename(java.lang.String newPefeaturename)
Sets the product explorer feature name recorded in the current event.
Parameters:
newPefeaturename - product explorer feature name

setStoreent_id

public void setStoreent_id(java.lang.Integer newStoreent_id)
Sets the store entity ID recorded in the current event.
Parameters:
newStoreent_id - store entity ID