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

java.lang.Object
  com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
      com.ibm.commerce.marketingcenter.events.objects.ProductAdvisorStatisticsAccessBean
All Implemented Interfaces:
ProductAdvisorStatisticsAccessBeanData

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

This table captures the invocation statistics for each Product Advisor metaphor. This access bean corresponds to the database table 'PASTATS'.

See Also:
Serialized Form

Constructor Summary
ProductAdvisorStatisticsAccessBean()
Zero argument constructor used to initialize the access bean.
ProductAdvisorStatisticsAccessBean(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
ProductAdvisorStatisticsAccessBean(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
ProductAdvisorStatisticsAccessBean(javax.ejb.EJBObject o)
constructor
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
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.
java.util.Enumeration findByStoreId(java.lang.Integer sID)
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.
java.lang.Long getCatGroupIdInEJBType()
This method provides access to the PASTATS.CATGROUP_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getMetaphorTypeId()
This method provides access to the PASTATS.METAPHORTYPE column of DB2 type INTEGER NOT NULL.
java.lang.Integer getMetaphorTypeIdInEJBType()
This method provides access to the PASTATS.METAPHORTYPE column of DB2 type INTEGER NOT NULL.
java.lang.String getPaCount()
This method provides access to the PASTATS.COUNT column of DB2 type INTEGER.
java.lang.Integer getPaCountInEJBType()
This method provides access to the PASTATS.COUNT column of DB2 type INTEGER.
java.lang.String getStoreId()
This method provides access to the PASTATS.STOREENT_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getStoreIdInEJBType()
This method provides access to the PASTATS.STOREENT_ID column of DB2 type INTEGER NOT NULL.
void incrementCount()
Method to increment the metaphor count.
protected void instantiateEJB()
protected boolean instantiateEJBByPrimaryKey()
void refreshCopyHelper()
Load data from the EJBObject.
void setCatGroupId(java.lang.Long newValue)
This method accesses a non-CMP field
void setCatGroupId(java.lang.String newValue)
This method accesses a non-CMP field
void setInitKey_catGroupId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_metaphorTypeId(java.lang.String newValue)
Set the primary key for this object
void setInitKey_storeId(java.lang.String newValue)
Set the primary key for this object
void setMetaphorTypeId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setMetaphorTypeId(java.lang.String newValue)
This method accesses a non-CMP field
void setPaCount(java.lang.Integer newValue)
This method accesses a non-CMP field
void setPaCount(java.lang.String newValue)
This method accesses a non-CMP field
void setStoreId(java.lang.Integer newValue)
This method accesses a non-CMP field
void setStoreId(java.lang.String newValue)
This method accesses a non-CMP field
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

ProductAdvisorStatisticsAccessBean

public ProductAdvisorStatisticsAccessBean()
Zero argument constructor used to initialize the access bean. This constructor corresponds to the following home interface method: public abstract com.ibm.commerce.marketingcenter.events.objects.ProductAdvisorStatistics com.ibm.commerce.marketingcenter.events.objects.ProductAdvisorStatisticsHome.findByPrimaryKey(com.ibm.commerce.marketingcenter.events.objects.ProductAdvisorStatisticsKey) throws java.rmi.RemoteException,javax.ejb.FinderException The home interface method properties need to be set by calling the following setter methods before calling any business methods: setInitKey_storeId( java.lang.Integer ) setInitKey_catGroupId( java.lang.Long ) setInitKey_metaphorTypeId( java.lang.Integer )

ProductAdvisorStatisticsAccessBean

public ProductAdvisorStatisticsAccessBean(javax.ejb.EJBObject o)
                                   throws java.rmi.RemoteException
constructor
Parameters:
o - javax.ejb.EJBObject
Throws:
java.rmi.RemoteException

ProductAdvisorStatisticsAccessBean

public ProductAdvisorStatisticsAccessBean(java.lang.Integer arg1,
                                          java.lang.Integer arg2,
                                          java.lang.Long arg3)
                                   throws javax.ejb.CreateException,
                                          java.rmi.RemoteException,
                                          javax.naming.NamingException

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
javax.naming.NamingException

ProductAdvisorStatisticsAccessBean

public ProductAdvisorStatisticsAccessBean(java.lang.Integer aMetaphorTypeId,
                                          java.lang.Integer aStoreId,
                                          java.lang.Long aCatGroupId,
                                          java.lang.Integer aPACount)
                                   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
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
javax.naming.NamingException
Method Detail

findByCatGroupIdAndStoreId

public java.util.Enumeration findByCatGroupIdAndStoreId(java.lang.Long cGID,
                                                        java.lang.Integer sID)
                                                 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 = 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
javax.naming.NamingException

findByMetaphorTypeIdAndStoreId

public java.util.Enumeration findByMetaphorTypeIdAndStoreId(java.lang.Integer mTID,
                                                            java.lang.Integer sID)
                                                     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 = 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
javax.naming.NamingException

findByStoreId

public java.util.Enumeration findByStoreId(java.lang.Integer sID)
                                    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 =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
javax.naming.NamingException

setInitKey_storeId

public void setInitKey_storeId(java.lang.String newValue)

Set the primary key for this object

Parameters:
newValue - java.lang.String
Returns:
void

setInitKey_catGroupId

public void setInitKey_catGroupId(java.lang.String newValue)

Set the primary key for this object

Parameters:
newValue - java.lang.String
Returns:
void

setInitKey_metaphorTypeId

public void setInitKey_metaphorTypeId(java.lang.String newValue)

Set the primary key for this object

Parameters:
newValue - java.lang.String
Returns:
void

defaultJNDIName

protected java.lang.String defaultJNDIName()
Returns:
String

instantiateEJB

protected void instantiateEJB()
                       throws java.rmi.RemoteException,
                              javax.ejb.FinderException,
                              javax.naming.NamingException
Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.FinderException
javax.naming.NamingException

instantiateEJBByPrimaryKey

protected boolean instantiateEJBByPrimaryKey()
                                      throws java.rmi.RemoteException,
                                             javax.ejb.CreateException,
                                             javax.naming.NamingException
Returns:
boolean
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.naming.NamingException

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).

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

refreshCopyHelper

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

Load data from the EJBObject.

Returns:
void
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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.

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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.

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setCatGroupId

public void setCatGroupId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setCatGroupId in interface ProductAdvisorStatisticsAccessBeanData

setCatGroupId

public void setCatGroupId(java.lang.Long newValue)
This method accesses a non-CMP field

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.

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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.

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setMetaphorTypeId

public void setMetaphorTypeId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setMetaphorTypeId in interface ProductAdvisorStatisticsAccessBeanData

setMetaphorTypeId

public void setMetaphorTypeId(java.lang.Integer newValue)
This method accesses a non-CMP field

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.

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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.

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setPaCount

public void setPaCount(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setPaCount in interface ProductAdvisorStatisticsAccessBeanData

setPaCount

public void setPaCount(java.lang.Integer newValue)
This method accesses a non-CMP field

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.

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:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

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.

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
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

setStoreId

public void setStoreId(java.lang.String newValue)
This method accesses a non-CMP field
Specified by:
setStoreId in interface ProductAdvisorStatisticsAccessBeanData

setStoreId

public void setStoreId(java.lang.Integer newValue)
This method accesses a non-CMP field

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
javax.naming.NamingException

Feedback