com.ibm.commerce.marketingcenter.events.objects
Class ProductAdvisorStatisticsAccessBean

java.lang.Object
  |
  +--com.ibm.ivj.ejb.runtime.AbstractAccessBean
        |
        +--com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
              |
              +--com.ibm.commerce.marketingcenter.events.objects.ProductAdvisorStatisticsAccessBean
All Implemented Interfaces:
ProductAdvisorStatisticsAccessBeanData, java.io.Serializable

public class ProductAdvisorStatisticsAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements ProductAdvisorStatisticsAccessBeanData

This bean provides access to the PASTATS table.

The following is a description of this table:

This table captures the invocation statistics for each Product Advisor metaphor.

See Also:
Serialized Form

Fields inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
DEFAULT_NAMESERVICE_PROVIDER_URL, DEFAULT_NAMESERVICE_TYPE, ejbRef
 
Constructor Summary
ProductAdvisorStatisticsAccessBean()
          Default constructor.
ProductAdvisorStatisticsAccessBean(javax.ejb.EJBObject aEJB)
          Creates an access bean for the specified EJB.
ProductAdvisorStatisticsAccessBean(java.lang.Integer aMetaphorTypeId, java.lang.Integer aStoreId, java.lang.Long aCategoryGroupId)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
ProductAdvisorStatisticsAccessBean(java.lang.Integer aMetaphorTypeId, java.lang.Integer aStoreId, java.lang.Long aCategoryGroupId, java.lang.Integer newPACount)
          Maps to a corresponding ejbCreate method in the home interface of the EJB
 
Method Summary
 void commitCopyHelper()
          Update(flush) data to the EJBObject (persistent storage).
 java.util.Enumeration findByCatGroupIdAndStoreId(java.lang.Long aCategoryGroupId, java.lang.Integer aStoreId)
          This method returns an Enumeration of ProductAdvisorStatisticsAccessBean for the given category group identifier and store entity identifier.
 java.util.Enumeration findByMetaphorTypeIdAndStoreId(java.lang.Integer aMetaphorTypeId, java.lang.Integer aStoreId)
          This method returns an Enumeration of ProductAdvisorStatisticsAccessBean for the given metaphor type identifier and store entity identifier.
 java.util.Enumeration findByStoreId(java.lang.Integer aStoreId)
          This method returns an Enumeration of ProductAdvisorStatisticsAccessBean for the given store entity identifier.
 java.lang.String getCatGroupId()
          This method provides access to the PASTATS.CATGROUP_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.
 java.lang.Long getCatGroupIdInEJBType()
          This method provides access to the PASTATS.CATGROUP_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.
 java.lang.String getMetaphorTypeId()
          This method provides access to the PASTATS.METAPHORTYPE column of DB2 type INTEGER NOT NULL and Oracle type INTEGER NOT NULL.
 java.lang.Integer getMetaphorTypeIdInEJBType()
          This method provides access to the PASTATS.METAPHORTYPE column of DB2 type INTEGER NOT NULL and Oracle type INTEGER NOT NULL.
 java.lang.String getPaCount()
          This method provides access to the PASTATS.COUNT column of DB2 type INTEGER NULL and Oracle type INTEGER NULL.
 java.lang.Integer getPaCountInEJBType()
          This method provides access to the PASTATS.COUNT column of DB2 type INTEGER NULL and Oracle type INTEGER NULL.
 java.lang.String getStoreId()
          This method provides access to the PASTATS.STOREENT_ID column of DB2 type INTEGER NOT NULL and Oracle type INTEGER NOT NULL.
 java.lang.Integer getStoreIdInEJBType()
          This method provides access to the PASTATS.STOREENT_ID column of DB2 type INTEGER NOT NULL and Oracle type INTEGER NOT NULL.
 void incrementCount()
          Method to increment the metaphor count.
 void refreshCopyHelper()
          Load data from the EJBObject.
 void setCatGroupId(java.lang.Long aCatGroupId1)
          This method provides access to the PASTATS.CATGROUP_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.
 void setCatGroupId(java.lang.String aCatGroupId1)
          This method provides access to the PASTATS.CATGROUP_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.
 void setInitKey_catGroupId(java.lang.String aInitKey_catGroupId1)
          Set the primary key for this object
 void setInitKey_metaphorTypeId(java.lang.String aInitKey_metaphorTypeId1)
          Set the primary key for this object
 void setInitKey_storeId(java.lang.String aInitKey_storeId1)
          Set the primary key for this object
 void setMetaphorTypeId(java.lang.Integer aMetaphorTypeId1)
          This method provides access to the PASTATS.METAPHORTYPE column of DB2 type INTEGER NOT NULL and Oracle type INTEGER NOT NULL.
 void setMetaphorTypeId(java.lang.String aMetaphorTypeId1)
          This method provides access to the PASTATS.METAPHORTYPE column of DB2 type INTEGER NOT NULL and Oracle type INTEGER NOT NULL.
 void setPaCount(java.lang.Integer aPaCount1)
          This method provides access to the PASTATS.COUNT column of DB2 type INTEGER NULL and Oracle type INTEGER NULL.
 void setPaCount(java.lang.String aPaCount1)
          This method provides access to the PASTATS.COUNT column of DB2 type INTEGER NULL and Oracle type INTEGER NULL.
 void setStoreId(java.lang.Integer aStoreId1)
          This method provides access to the PASTATS.STOREENT_ID column of DB2 type INTEGER NOT NULL and Oracle type INTEGER NOT NULL.
 void setStoreId(java.lang.String aStoreId1)
          This method provides access to the PASTATS.STOREENT_ID column of DB2 type INTEGER NOT NULL and Oracle type INTEGER NOT NULL.
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
__getCache, __getCache, __getKey, __setCache, __setCache, __setKey, commitCopyHelper, createAccessBeans, createAccessBeans, instantiateEJBByPrimaryKey, refreshCopyHelper, setEJBRef
 
Methods inherited from class com.ibm.ivj.ejb.runtime.AbstractAccessBean
defaultJNDIName, defaultNameServiceType, defaultNameServiceURL, getEJBRef, getGlobalHome, getHome, getInit_GlobalNameServiceTypeName, getInit_GlobalNameServiceURLName, getInit_JNDIName, getInit_NameServiceTypeName, getInit_NameServiceURLName, getInitContext, getInitContext, instantiateEJB, resetEJBRef, resetHomeCache, setInit_GlobalNameServiceTypeName, setInit_GlobalNameServiceURLName, setInit_JNDIName, setInit_NameServiceTypeName, setInit_NameServiceURLName
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductAdvisorStatisticsAccessBean

public ProductAdvisorStatisticsAccessBean()

Default constructor. Maps to findByPrimaryKey.


ProductAdvisorStatisticsAccessBean

public ProductAdvisorStatisticsAccessBean(javax.ejb.EJBObject aEJB)
                                   throws java.rmi.RemoteException

Creates an access bean for the specified EJB.

Parameters:
aEJB - A ProductAdvisorStatistics EJBObject reference
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception

ProductAdvisorStatisticsAccessBean

public ProductAdvisorStatisticsAccessBean(java.lang.Integer aMetaphorTypeId,
                                          java.lang.Integer aStoreId,
                                          java.lang.Long aCategoryGroupId)
                                   throws javax.ejb.CreateException,
                                          java.rmi.RemoteException,
                                          javax.naming.NamingException

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

Parameters:
aMetaphorTypeId - A metaphor type identifier
aStoreId - A store entity identifier
aCategoryGroupId - A category group identifier
Throws:
javax.ejb.CreateException - The javax.ejb.CreateException exception
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.naming.NamingException - The javax.naming.NamingException exception

ProductAdvisorStatisticsAccessBean

public ProductAdvisorStatisticsAccessBean(java.lang.Integer aMetaphorTypeId,
                                          java.lang.Integer aStoreId,
                                          java.lang.Long aCategoryGroupId,
                                          java.lang.Integer newPACount)
                                   throws javax.ejb.CreateException,
                                          java.rmi.RemoteException,
                                          javax.naming.NamingException

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

Parameters:
aMetaphorTypeId - A metaphor type identifier
aStoreId - A store identifier
aCategoryGroupId - A category group identifier
newPACount - 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
javax.naming.NamingException - The javax.naming.NamingException exception
Method Detail

commitCopyHelper

public void commitCopyHelper()
                      throws java.rmi.RemoteException,
                             javax.ejb.CreateException,
                             javax.ejb.FinderException,
                             javax.naming.NamingException

Update(flush) data to the EJBObject (persistent storage).

Overrides:
commitCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

findByCatGroupIdAndStoreId

public java.util.Enumeration findByCatGroupIdAndStoreId(java.lang.Long aCategoryGroupId,
                                                        java.lang.Integer aStoreId)
                                                 throws java.rmi.RemoteException,
                                                        javax.ejb.FinderException,
                                                        javax.naming.NamingException

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

SQL:
SELECT * FROM PASTATS WHERE CATGROUP_ID = aCategoryGroupId AND STOREENT_ID =aStoreId

Parameters:
aCategoryGroupId - A category group identifier
aStoreId - 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
javax.naming.NamingException - The javax.naming.NamingException exception

findByMetaphorTypeIdAndStoreId

public java.util.Enumeration findByMetaphorTypeIdAndStoreId(java.lang.Integer aMetaphorTypeId,
                                                            java.lang.Integer aStoreId)
                                                     throws java.rmi.RemoteException,
                                                            javax.ejb.FinderException,
                                                            javax.naming.NamingException

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

SQL:
SELECT * FROM PASTATS WHERE METAPHORTYPE_ID = aMetaphorTypeId AND STOREENT_ID =aStoreId

Parameters:
aMetaphorTypeId - A metaphor type identifier
aStoreId - 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
javax.naming.NamingException - The javax.naming.NamingException exception

findByStoreId

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

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

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

Parameters:
aStoreId - 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
javax.naming.NamingException - The javax.naming.NamingException exception

getCatGroupId

public java.lang.String getCatGroupId()
                               throws java.rmi.RemoteException,
                                      javax.ejb.CreateException,
                                      javax.ejb.FinderException,
                                      javax.naming.NamingException

This method provides access to the PASTATS.CATGROUP_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.

The following is a description of this column:

The category group identifier as described in the CATGROUP_ID column of the CATGROUP table.

Specified by:
getCatGroupId in interface ProductAdvisorStatisticsAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getCatGroupIdInEJBType

public java.lang.Long getCatGroupIdInEJBType()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.ejb.FinderException,
                                             javax.naming.NamingException

This method provides access to the PASTATS.CATGROUP_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.

The following is a description of this column:

The category group identifier as described in the CATGROUP_ID column of the CATGROUP table.

Returns:
java.lang.Long
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getMetaphorTypeId

public java.lang.String getMetaphorTypeId()
                                   throws java.rmi.RemoteException,
                                          javax.ejb.CreateException,
                                          javax.ejb.FinderException,
                                          javax.naming.NamingException

This method provides access to the PASTATS.METAPHORTYPE column of DB2 type INTEGER NOT NULL and Oracle type INTEGER NOT NULL.

The following is a description of this column:

The metaphor type identifier as described in the METAPHORTYPEID column of the ICMETAREG table.

Specified by:
getMetaphorTypeId in interface ProductAdvisorStatisticsAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getMetaphorTypeIdInEJBType

public java.lang.Integer getMetaphorTypeIdInEJBType()
                                             throws java.rmi.RemoteException,
                                                    javax.ejb.CreateException,
                                                    javax.ejb.FinderException,
                                                    javax.naming.NamingException

This method provides access to the PASTATS.METAPHORTYPE column of DB2 type INTEGER NOT NULL and Oracle type INTEGER NOT NULL.

The following is a description of this column:

The metaphor type identifier as described in the METAPHORTYPEID column of the ICMETAREG table.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getPaCount

public java.lang.String getPaCount()
                            throws java.rmi.RemoteException,
                                   javax.ejb.CreateException,
                                   javax.ejb.FinderException,
                                   javax.naming.NamingException

This method provides access to the PASTATS.COUNT column of DB2 type INTEGER NULL and Oracle type INTEGER NULL.

The following is a description of this column:

The number of times this particular metaphor was invoked by a customer.

Specified by:
getPaCount in interface ProductAdvisorStatisticsAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getPaCountInEJBType

public java.lang.Integer getPaCountInEJBType()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.ejb.FinderException,
                                             javax.naming.NamingException

This method provides access to the PASTATS.COUNT column of DB2 type INTEGER NULL and Oracle type INTEGER NULL.

The following is a description of this column:

The number of times this particular metaphor was invoked by a customer.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getStoreId

public java.lang.String getStoreId()
                            throws java.rmi.RemoteException,
                                   javax.ejb.CreateException,
                                   javax.ejb.FinderException,
                                   javax.naming.NamingException

This method provides access to the PASTATS.STOREENT_ID column of DB2 type INTEGER NOT NULL and Oracle type INTEGER NOT NULL.

The following is a description of this column:

The store entity identifier as described in the STOREENT_ID column of the STOREENT table.

Specified by:
getStoreId in interface ProductAdvisorStatisticsAccessBeanData
Returns:
java.lang.String
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

getStoreIdInEJBType

public java.lang.Integer getStoreIdInEJBType()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.ejb.FinderException,
                                             javax.naming.NamingException

This method provides access to the PASTATS.STOREENT_ID column of DB2 type INTEGER NOT NULL and Oracle type INTEGER NOT NULL.

The following is a description of this column:

The store entity identifier as described in the STOREENT_ID column of the STOREENT table.

Returns:
java.lang.Integer
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

incrementCount

public void incrementCount()
                    throws java.rmi.RemoteException,
                           javax.ejb.FinderException,
                           javax.naming.NamingException

Method to increment the metaphor count.

Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

refreshCopyHelper

public void refreshCopyHelper()
                       throws java.rmi.RemoteException,
                              javax.ejb.CreateException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException

Load data from the EJBObject.

Overrides:
refreshCopyHelper in class com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.CreateException - The javax.ejb.CreateException exception
javax.ejb.FinderException - The javax.ejb.FinderException exception
javax.naming.NamingException - The javax.naming.NamingException exception

setCatGroupId

public void setCatGroupId(java.lang.Long aCatGroupId1)

This method provides access to the PASTATS.CATGROUP_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.

The following is a description of this column:

The category group identifier as described in the CATGROUP_ID column of the CATGROUP table.

Parameters:
aCatGroupId1 - A category group identifier
Returns:
void

setCatGroupId

public void setCatGroupId(java.lang.String aCatGroupId1)

This method provides access to the PASTATS.CATGROUP_ID column of DB2 type BIGINT NOT NULL and Oracle type NUMBER NOT NULL.

The following is a description of this column:

The category group identifier as described in the CATGROUP_ID column of the CATGROUP table.

Specified by:
setCatGroupId in interface ProductAdvisorStatisticsAccessBeanData
Parameters:
aCatGroupId1 - A category group identifier
Returns:
void

setInitKey_catGroupId

public void setInitKey_catGroupId(java.lang.String aInitKey_catGroupId1)

Set the primary key for this object

Parameters:
aInitKey_catGroupId1 - A category group identifier
Returns:
void

setInitKey_metaphorTypeId

public void setInitKey_metaphorTypeId(java.lang.String aInitKey_metaphorTypeId1)

Set the primary key for this object

Parameters:
aInitKey_metaphorTypeId1 - A metaphor type identifier
Returns:
void

setInitKey_storeId

public void setInitKey_storeId(java.lang.String aInitKey_storeId1)

Set the primary key for this object

Parameters:
aInitKey_storeId1 - A store entity identifier
Returns:
void

setMetaphorTypeId

public void setMetaphorTypeId(java.lang.Integer aMetaphorTypeId1)

This method provides access to the PASTATS.METAPHORTYPE column of DB2 type INTEGER NOT NULL and Oracle type INTEGER NOT NULL.

The following is a description of this column:

The metaphor type identifier as described in the METAPHORTYPEID column of the ICMETAREG table.

Parameters:
aMetaphorTypeId1 - A metaphor type identifier
Returns:
void

setMetaphorTypeId

public void setMetaphorTypeId(java.lang.String aMetaphorTypeId1)

This method provides access to the PASTATS.METAPHORTYPE column of DB2 type INTEGER NOT NULL and Oracle type INTEGER NOT NULL.

The following is a description of this column:

The metaphor type identifier as described in the METAPHORTYPEID column of the ICMETAREG table.

Specified by:
setMetaphorTypeId in interface ProductAdvisorStatisticsAccessBeanData
Parameters:
aMetaphorTypeId1 - A metaphor type identifier
Returns:
void

setPaCount

public void setPaCount(java.lang.Integer aPaCount1)

This method provides access to the PASTATS.COUNT column of DB2 type INTEGER NULL and Oracle type INTEGER NULL.

The following is a description of this column:

The number of times this particular metaphor was invoked by a customer.

Parameters:
aPaCount1 - The number of times this particular metaphor was invoked by a customer
Returns:
void

setPaCount

public void setPaCount(java.lang.String aPaCount1)

This method provides access to the PASTATS.COUNT column of DB2 type INTEGER NULL and Oracle type INTEGER NULL.

The following is a description of this column:

The number of times this particular metaphor was invoked by a customer.

Specified by:
setPaCount in interface ProductAdvisorStatisticsAccessBeanData
Parameters:
aPaCount1 - The number of times this particular metaphor was invoked by a customer
Returns:
void

setStoreId

public void setStoreId(java.lang.Integer aStoreId1)

This method provides access to the PASTATS.STOREENT_ID column of DB2 type INTEGER NOT NULL and Oracle type INTEGER NOT NULL.

The following is a description of this column:

The store entity identifier as described in the STOREENT_ID column of the STOREENT table.

Parameters:
aStoreId1 - A store entity identifier
Returns:
void

setStoreId

public void setStoreId(java.lang.String aStoreId1)

This method provides access to the PASTATS.STOREENT_ID column of DB2 type INTEGER NOT NULL and Oracle type INTEGER NOT NULL.

The following is a description of this column:

The store entity identifier as described in the STOREENT_ID column of the STOREENT table.

Specified by:
setStoreId in interface ProductAdvisorStatisticsAccessBeanData
Parameters:
aStoreId1 - A store entity identifier
Returns:
void