public class StatsJDBCPersistenceManager
extends com.ibm.commerce.marketing.promotion.persistence.JDBCPersistenceManager
implements com.ibm.commerce.marketing.promotion.stats.StatsPersistenceManager
StatsJDBCPersistenceManager
class implements the
StatsPersistenceManager
interface and is the Java DataBase
Connectivity (JDBC) persistence manager for statistics on the application of
promotions.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright
|
Constructor and Description |
---|
StatsJDBCPersistenceManager()
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
countRedemptionsForPromotion(PromotionKey key) |
int |
countRedemptionsForPromotionForUser(PromotionKey pkey,
CustomerKey ckey) |
void |
fromXML(org.w3c.dom.Node anXMLNode)
Transforms the XML node into its corresponding real Object.
|
void |
logStats(OrderKey okey,
CustomerKey ckey,
PromotionExecutionRecord record) |
java.lang.Number |
nextNumericKey() |
java.lang.String |
toXML()
Converts the object into its corresponding XML format representation.
|
public static final java.lang.String COPYRIGHT
public void logStats(OrderKey okey, CustomerKey ckey, PromotionExecutionRecord record) throws PersistenceCreateException
logStats
in interface com.ibm.commerce.marketing.promotion.stats.StatsPersistenceManager
PersistenceCreateException
StatsPersistenceManager.logStats(com.ibm.commerce.marketing.promotion.dependency.OrderKey, com.ibm.commerce.marketing.promotion.dependency.CustomerKey, com.ibm.commerce.marketing.promotion.runtime.PromotionExecutionRecord)
public int countRedemptionsForPromotion(PromotionKey key) throws PersistenceObjectReadException
countRedemptionsForPromotion
in interface com.ibm.commerce.marketing.promotion.stats.StatsPersistenceManager
PersistenceObjectReadException
StatsPersistenceManager.countRedemptionsForPromotion(PromotionKey)
public int countRedemptionsForPromotionForUser(PromotionKey pkey, CustomerKey ckey) throws PersistenceObjectReadException
countRedemptionsForPromotionForUser
in interface com.ibm.commerce.marketing.promotion.stats.StatsPersistenceManager
PersistenceObjectReadException
com.ibm.commerce.marketing.promotion.stats.StatsPersistenceManager#countRedemptionsForPromotionForUser(PromotionKey)
public java.lang.String toXML() throws XMLizationException
XMLizable
toXML
in interface XMLizable
XMLizationException
- when this process failsXMLizable.toXML()
public void fromXML(org.w3c.dom.Node anXMLNode) throws DeXMLizationException
XMLizable
fromXML
in interface XMLizable
anXMLNode
- The node that represents an XMLizable objectDeXMLizationException
- when this process failsXMLizable.fromXML(org.w3c.dom.Node)
public java.lang.Number nextNumericKey()
nextNumericKey
in interface com.ibm.commerce.marketing.promotion.stats.StatsPersistenceManager
PromotionPersistenceManager.nextNumericKey()