com.ibm.commerce.marketingcenter.events.dbobjects
Class PAStats
java.lang.Object
com.ibm.commerce.marketingcenter.events.dbobjects.PAStats
- All Implemented Interfaces:
- MktgEventHandler, MktgLogEventHandler
- public class PAStats
- extends java.lang.Object
- implements MktgLogEventHandler
This is the object that will persist (create / update) the event into the PASTATS table.
Field Summary |
java.lang.Long |
catgroup_id
Category group ID, maps to the table column with the same name. |
static java.lang.String |
COPYRIGHT
IBM copyright notice field. |
java.lang.Integer |
metaphortype_id
Metaphor type ID, maps to the table column with the same name. |
java.lang.Integer |
pacount
# times shown to shoppers (impressions), 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 |
PAStats()
Constructor for PAStats. |
Method Summary |
void |
addEvent()
This method will persist/update a record in the PASTATS table. |
void |
addEvent(java.util.Hashtable h)
This method will persist/update a record in the PASTATS table. |
void |
addEvent(java.lang.Integer metaphorTypeId, java.lang.Integer storeId, java.lang.Long catGroupId)
This method will persist/update a record in the PASTATS table. |
void |
addEvent(TypedProperty tp)
This method will persist/update a record in the PASTATS table. |
void |
addEvent(TypedProperty tp, java.lang.Integer storeIdentifier)
This method will persist/update a record in the PASTATS table. |
java.lang.Long |
getCatgroup_id()
Gets the category ID recorded in the current event. |
java.lang.Integer |
getMetaphortype_id()
Gets the metaphor type ID recorded in the current event. |
java.lang.Integer |
getPacount()
Gets the product advisor count 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 |
setMetaphortype_id(java.lang.Integer newMetaphortype_id)
Sets the metaphor type ID recorded in the current event. |
void |
setPacount(java.lang.Integer newPacount)
Sets the number of product advisor count 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 |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field.
- See Also:
- Constant Field Values
metaphortype_id
public java.lang.Integer metaphortype_id
- Metaphor type ID, 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 group ID, maps to the table column with the same name.
pacount
public java.lang.Integer pacount
- # times shown to shoppers (impressions), maps to the table column with the same name.
PAStats
public PAStats()
- Constructor for PAStats.
addEvent
public void addEvent()
- This method will persist/update a record in the PASTATS 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 PASTATS 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 PASTATS 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.Integer metaphorTypeId,
java.lang.Integer storeId,
java.lang.Long catGroupId)
- This method will persist/update a record in the PASTATS 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:
- metaphorTypeId - the metaphor type ID to be persisted
- storeId - the store ID to be persisted
- catGroupId - the category ID to be persisted
addEvent
public void addEvent(java.util.Hashtable h)
- This method will persist/update a record in the PASTATS 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
getMetaphortype_id
public java.lang.Integer getMetaphortype_id()
- Gets the metaphor type ID recorded in the current event.
-
- Returns:
- metaphor type ID
getPacount
public java.lang.Integer getPacount()
- Gets the product advisor count recorded in the current event.
-
- Returns:
- product advisor count
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
setMetaphortype_id
public void setMetaphortype_id(java.lang.Integer newMetaphortype_id)
- Sets the metaphor type ID recorded in the current event.
-
- Parameters:
- newMetaphortype_id - metaphor type ID
setPacount
public void setPacount(java.lang.Integer newPacount)
- Sets the number of product advisor count recorded in the current event.
-
- Parameters:
- newPacount - product advisor count
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
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.