com.ibm.commerce.marketingcenter.events.dbobjects

Class SAStats

  • java.lang.Object
    • com.ibm.commerce.marketingcenter.events.dbobjects.SAStats
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      java.lang.Long catgroup_id
      Category ID, maps to the table column with the same name.
      java.lang.Integer concept_id
      Concept ID, maps to the table column with the same name.
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
      java.lang.Integer sacount
      Sales assistant count, 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.
      java.lang.Integer tree_id
      Tree ID, maps to the table column with the same name.
    • Constructor Summary

      Constructors 
      Constructor and Description
      SAStats()
      Constructor for SAStats.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void addClick()
      This method will update a record in the SASTATS table.
      void addClick(java.util.Hashtable h)
      This method will update a record in the SASTATS table.
      void addClick(com.ibm.commerce.datatype.TypedProperty tp)
      This method will update a record in the SASTATS table.
      void addClick(com.ibm.commerce.datatype.TypedProperty tp, java.lang.Integer storeIdentifier)
      This method will update a record in the SASTATS table.
      void addEvent()
      This method will persist/update a record in the SASTATS table.
      void addEvent(java.util.Hashtable h)
      This method will persist/update a record in the SASTATS table.
      void addEvent(java.lang.Integer treeId, java.lang.Integer storeId, java.lang.Integer conceptId, java.lang.Long catGroupId)
      This method will persist/update a record in the SASTATS table.
      void addEvent(com.ibm.commerce.datatype.TypedProperty tp)
      This method will persist/update a record in the SASTATS table.
      void addEvent(com.ibm.commerce.datatype.TypedProperty tp, java.lang.Integer storeIdentifier)
      This method will persist/update a record in the SASTATS table.
      java.lang.Long getCatgroup_id()
      Gets the category ID recorded in the current event.
      java.lang.Integer getConcept_id()
      Gets the concept ID recorded in the current event.
      int getEventType()
      Gets the event type recorded in the current event.
      java.lang.Integer getSacount()
      Gets the number of sales assistant count recorded in the current event.
      java.lang.Integer getStoreent_id()
      Gets the store entity ID recorded in the current event.
      java.lang.Integer getTree_id()
      Gets the tree ID recorded in the current event.
      void persistClickEvent()
      Persists the current click event by inserting the event details into the database.
      void persistEvent()
      Persists the current event by inserting the event details into the database.
      void processEvent()
      Processes the current click event by persisting the event details into the database.
      void setCatgroup_id(java.lang.Long newCatgroup_id)
      Sets the category ID recorded in the current event.
      void setConcept_id(java.lang.Integer newConcept_id)
      Sets the concept ID recorded in the current event.
      void setEventType(int newEventType)
      Sets the event type recorded in the current event.
      void setSacount(java.lang.Integer newSacount)
      Sets the sales assistant count recorded in the current event.
      void setStoreent_id(java.lang.Integer newStoreent_id)
      Sets the store entity ID recorded in the current event.
      void setTree_id(java.lang.Integer newTree_id)
      Sets the tree ID recorded in the current event.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • catgroup_id

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

        public java.lang.Integer concept_id
        Concept ID, maps to the table column with the same name.
      • COPYRIGHT

        public static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
      • sacount

        public java.lang.Integer sacount
        Sales assistant count, 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.
      • tree_id

        public java.lang.Integer tree_id
        Tree ID, maps to the table column with the same name.
    • Constructor Detail

      • SAStats

        public SAStats()
        Constructor for SAStats.
    • Method Detail

      • addClick

        public void addClick()
        This method will update a record in the SASTATS table. If a a record is not found, no work will be done. If a record exists, the click count is incremented. The caller must do all the setXXX prior to calling this.
      • addClick

        public void addClick(java.util.Hashtable h)
        This method will update a record in the SASTATS table. If a a record is not found, no work will be done. If a record exists, the click count is incremented.
        Specified by:
        addClick in interface MktgClickEventHandler
        Parameters:
        h - The Hashtable that contains all the column=value pairs that are components of the primary key. The Hashtable key names should be the same names as in the database table. The type should also be the same (e.g. Integer).
      • addClick

        public void addClick(com.ibm.commerce.datatype.TypedProperty tp)
        This method will update a record in the SASTATS table. If a a record is not found, no work will be done. If a record exists, the click count is incremented.
        Specified by:
        addClick in interface MktgClickEventHandler
        Parameters:
        tp - The TypedProperty that contains all the column=value pairs that are components of the primary key. The TypedProperty key names should be the same names as in the database table. The type should also be the same (e.g. Integer).
      • addClick

        public void addClick(com.ibm.commerce.datatype.TypedProperty tp,
                             java.lang.Integer storeIdentifier)
        This method will update a record in the SASTATS table. If a a record is not found, no work will be done. If a record exists, the click count is incremented.
        Specified by:
        addClick in interface MktgClickEventHandler
        Parameters:
        tp - The TypedProperty that contains all the column=value pairs that are components of the primary key. The TypedProperty key names should be the same names as in the database table. The type should also be the same (e.g. Integer).
        storeIdentifier - Not used since this is not a component of the primary key.
      • addEvent

        public void addEvent()
        This method will persist/update a record in the SASTATS 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(java.util.Hashtable h)
        This method will persist/update a record in the SASTATS 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).
      • addEvent

        public void addEvent(java.lang.Integer treeId,
                             java.lang.Integer storeId,
                             java.lang.Integer conceptId,
                             java.lang.Long catGroupId)
        This method will persist/update a record in the SASTATS 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:
        treeId - the tree ID to be persisted
        storeId - the store ID to be persisted
        conceptId - the concept ID to be persisted
        catGroupId - the category ID to be persisted
      • addEvent

        public void addEvent(com.ibm.commerce.datatype.TypedProperty tp)
        This method will persist/update a record in the SASTATS 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(com.ibm.commerce.datatype.TypedProperty tp,
                             java.lang.Integer storeIdentifier)
        This method will persist/update a record in the SASTATS 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
      • getCatgroup_id

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

        public java.lang.Integer getConcept_id()
        Gets the concept ID recorded in the current event.
        Returns:
        concept ID
      • getEventType

        public int getEventType()
        Gets the event type recorded in the current event.
        Returns:
        event type
      • getSacount

        public java.lang.Integer getSacount()
        Gets the number of sales assistant count recorded in the current event.
        Returns:
        sales assistant count
      • getStoreent_id

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

        public java.lang.Integer getTree_id()
        Gets the tree ID recorded in the current event.
        Returns:
        tree ID
      • persistClickEvent

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

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

        public void processEvent()
        Processes the current click event by persisting 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
      • setConcept_id

        public void setConcept_id(java.lang.Integer newConcept_id)
        Sets the concept ID recorded in the current event.
        Parameters:
        newConcept_id - concept ID
      • setEventType

        public void setEventType(int newEventType)
        Sets the event type recorded in the current event.
        Parameters:
        newEventType - event type
      • setSacount

        public void setSacount(java.lang.Integer newSacount)
        Sets the sales assistant count recorded in the current event.
        Parameters:
        newSacount - sales assistant 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
      • setTree_id

        public void setTree_id(java.lang.Integer newTree_id)
        Sets the tree ID recorded in the current event.
        Parameters:
        newTree_id - tree ID