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


public interface ProductAdvisorStatisticsHome

This is a Home interface for the Entity Bean


Method Summary
  ProductAdvisorStatistics create(java.lang.Integer arg1, java.lang.Integer arg2, java.lang.Long arg3)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
  ProductAdvisorStatistics create(java.lang.Integer aMetaphorTypeId, java.lang.Integer aStoreId, java.lang.Long aCatGroupId, java.lang.Integer aPACount)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
 java.util.Enumeration findByCatGroupIdAndStoreId(java.lang.Long cGID, java.lang.Integer sID)
          This method returns an Enumeration of ProductAdvisorStatisticsAccessBean for the given category group identifier and store entity identifier.
 java.util.Enumeration findByMetaphorTypeIdAndStoreId(java.lang.Integer mTID, java.lang.Integer sID)
          This method returns an Enumeration of ProductAdvisorStatisticsAccessBean for the given metaphor type identifier and store entity identifier.
  ProductAdvisorStatistics findByPrimaryKey( ProductAdvisorStatisticsKey key)
          findByPrimaryKey method comment
 java.util.Enumeration findByStoreId(java.lang.Integer sID)           This method returns an Enumeration of ProductAdvisorStatisticsAccessBean for the given store entity identifier.
 

Method Detail

create

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

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

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

create

public ProductAdvisorStatistics create(java.lang.Integer aMetaphorTypeId,
                                       java.lang.Integer aStoreId,
                                       java.lang.Long aCatGroupId,
                                       java.lang.Integer aPACount)
                                throws javax.ejb.CreateException,
                                       java.rmi.RemoteException

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

Parameters:
aMetaphorTypeId - A metaphor type identifier
aStoreId - A store identifier
aCatGroupId - A category group identifier
aPACount - The number of times this particular metaphor was invoked by a customer
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

findByCatGroupIdAndStoreId

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

This method returns an Enumeration of ProductAdvisorStatisticsAccessBean for the given category group identifier and store entity identifier.

SQL:
SELECT * FROM PASTATS WHERE CATGROUP_ID = cGID AND STOREENT_ID =sID

Parameters:
cGID - A category group identifier
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

findByMetaphorTypeIdAndStoreId

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

This method returns an Enumeration of ProductAdvisorStatisticsAccessBean for the given metaphor type identifier and store entity identifier.

SQL:
SELECT * FROM PASTATS WHERE METAPHORTYPE_ID = mTID AND STOREENT_ID =sID

Parameters:
mTID - A metaphor type identifier
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

findByPrimaryKey

public ProductAdvisorStatistics findByPrimaryKey(ProductAdvisorStatisticsKey key)
                                          throws java.rmi.RemoteException,
                                                 javax.ejb.FinderException
findByPrimaryKey method comment
Parameters:
key - com.ibm.commerce.marketingcenter.events.objects.ProductAdvisorStatisticsKey
Returns:
com.ibm.commerce.marketingcenter.events.objects.ProductAdvisorStatistics
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 ProductAdvisorStatisticsAccessBean for the given store entity identifier.

SQL:
SELECT * FROM PASTATS WHERE STOREENT_ID =sID GROUP BY CATGROUP_ID, METAPHORTYPE, STOREENT_ID, COUNT ORDER BY CATGROUP_ID, METAPHORTYPE

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