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


public interface SalesAssistantStatisticsHome

This is a Home interface for the Entity Bean


Method Summary
  SalesAssistantStatistics create(java.lang.Integer arg1, java.lang.Integer arg2, java.lang.Integer arg3)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
  SalesAssistantStatistics create(java.lang.Integer aTreeId, java.lang.Integer aStoreId, java.lang.Integer aConceptId, java.lang.Long aCatGroupId, java.lang.Integer newCount)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
  SalesAssistantStatistics findByPrimaryKey( SalesAssistantStatisticsKey key)
          findByPrimaryKey method comment
 java.util.Enumeration findByStoreId(java.lang.Integer sID)           This method returns an Enumeration of SalesAssistantStatisticsAccessBean for the given store entity identifier.
 

Method Detail

create

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

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

Parameters:
arg1 - A tree identifier
arg2 - A store entity identifier
arg3 - java.lang.Integer
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

create

public SalesAssistantStatistics create(java.lang.Integer aTreeId,
                                       java.lang.Integer aStoreId,
                                       java.lang.Integer aConceptId,
                                       java.lang.Long aCatGroupId,
                                       java.lang.Integer newCount)
                                throws javax.ejb.CreateException,
                                       java.rmi.RemoteException

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

Parameters:
aTreeId - A tree identifier
aStoreId - A store entity identifier
aConceptId - A concept identifier
aCatGroupId - A category group identifier
newCount - The number of times the particular concept or tree or store was selected (answered) by the customer
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception

findByPrimaryKey

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

SQL:
SELECT * FROM SASTATS WHERE STOREENT_ID =sID GROUP BY TREE_ID,CATGROUP_ID,CONCEPT_ID,STOREENT_ID,COUNT ORDER BY TREE_ID,CATGROUP_ID

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