com.ibm.commerce.marketingcenter.events.objects
Interface ProductComparisonStatisticsHome


public interface ProductComparisonStatisticsHome

This is a Home interface for the Entity Bean


Method Summary
  ProductComparisonStatistics create(java.lang.Long arg1, java.lang.Integer arg2)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
  ProductComparisonStatistics create(java.lang.Long aCatGroupId, java.lang.Integer aStoreId, java.lang.Integer newClicks, java.lang.Integer newViews)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
  ProductComparisonStatistics findByPrimaryKey( ProductComparisonStatisticsKey key)
          findByPrimaryKey method comment
 java.util.Enumeration findByStoreId(java.lang.Integer sID)           This method returns an Enumeration of ProductComparisonStatisticsAccessBean for the given store entity identifier.
 

Method Detail

create

public ProductComparisonStatistics create(java.lang.Long arg1,
                                          java.lang.Integer arg2)
                                   throws javax.ejb.CreateException,
                                          java.rmi.RemoteException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
arg1 - A category group identifier
arg2 - A store entity identifier
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

create

public ProductComparisonStatistics create(java.lang.Long aCatGroupId,
                                          java.lang.Integer aStoreId,
                                          java.lang.Integer newClicks,
                                          java.lang.Integer newViews)
                                   throws javax.ejb.CreateException,
                                          java.rmi.RemoteException

Maps to a corresponding ejbCreate method in the home interface of the EJB

Parameters:
aCatGroupId - A category group identifier
aStoreId - A store entity identifier
newClicks - The number of times customers clicked on a product in Product Comparison
newViews - The total number of products shown to customers in Product Comparison
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

findByPrimaryKey

public ProductComparisonStatistics findByPrimaryKey(ProductComparisonStatisticsKey key)
                                             throws java.rmi.RemoteException,
                                                    javax.ejb.FinderException
findByPrimaryKey method comment
Parameters:
key - com.ibm.commerce.marketingcenter.events.objects.ProductComparisonStatisticsKey
Returns:
com.ibm.commerce.marketingcenter.events.objects.ProductComparisonStatistics
Throws:
java.rmi.RemoteException - The exception description.
javax.ejb.FinderException - The exception description.

findByStoreId

public java.util.Enumeration findByStoreId(java.lang.Integer sID)
                                    throws java.rmi.RemoteException,
                                           javax.ejb.FinderException

This method returns an Enumeration of ProductComparisonStatisticsAccessBean for the given store entity identifier.

SQL:
SELECT * FROM PCSTATS WHERE STOREENT_ID =sID GROUP BY CATGROUP_ID, STOREENT_ID, CLICKS, VIEWS ORDER BY CATGROUP_ID, STOREENT_ID, CLICKS, VIEWS

Parameters:
sID - A store entity identifier
Returns:
java.util.Enumeration
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception