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

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

public class ProductComparisonStatisticsAccessBean
extends com.ibm.ivj.ejb.runtime.AbstractEntityAccessBean
implements ProductComparisonStatisticsAccessBeanData

This table captures statistics related to the Product Comparison Product Advisor metaphor. This access bean corresponds to the database table 'PCSTATS'.

See Also:
Serialized Form

Constructor Summary
ProductComparisonStatisticsAccessBean()
Zero argument constructor used to initialize the access bean.
ProductComparisonStatisticsAccessBean(javax.ejb.EJBObject o)
constructor
ProductComparisonStatisticsAccessBean(java.lang.Long arg1, java.lang.Integer arg2)
Maps to a corresponding ejbCreate method in the home interface of the EJB
ProductComparisonStatisticsAccessBean(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
Method Summary
void commitCopyHelper()
Update(flush) data to the EJBObject (persistent storage).
protected java.lang.String defaultJNDIName()
java.util.Enumeration findByStoreId(java.lang.Integer sID)
This method returns an Enumeration of ProductComparisonStatisticsAccessBean for the given store entity identifier.
java.lang.String getCatGroupId()
This method provides access to the PCSTATS.CATGROUP_ID column of DB2 type BIGINT NOT NULL.
java.lang.Long getCatGroupIdInEJBType()
This method provides access to the PCSTATS.CATGROUP_ID column of DB2 type BIGINT NOT NULL.
java.lang.String getPcClicks()
This method provides access to the PCSTATS.CLICKS column of DB2 type INTEGER.
java.lang.Integer getPcClicksInEJBType()
This method provides access to the PCSTATS.CLICKS column of DB2 type INTEGER.
java.lang.String getPcViews()
This method provides access to the PCSTATS.VIEWS column of DB2 type INTEGER.
java.lang.Integer getPcViewsInEJBType()
This method provides access to the PCSTATS.VIEWS column of DB2 type INTEGER.
java.lang.String getStoreId()
This method provides access to the PCSTATS.STOREENT_ID column of DB2 type INTEGER NOT NULL.
java.lang.Integer getStoreIdInEJBType()
This method provides access to the PCSTATS.STOREENT_ID column of DB2 type INTEGER NOT NULL.
void incrementClicks()
Method to increment the click count.
void incrementViews()
Method to increment the view count.
void incrementViews(java.lang.Integer views)
Method to increment the view 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_storeId(java.lang.String newValue)
Set the primary key for this object
void setPcClicks(java.lang.Integer newValue)
This method accesses a non-CMP field
void setPcClicks(java.lang.String newValue)
This method accesses a non-CMP field
void setPcViews(java.lang.Integer newValue)
This method accesses a non-CMP field
void setPcViews(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

ProductComparisonStatisticsAccessBean

public ProductComparisonStatisticsAccessBean()
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.ProductComparisonStatistics com.ibm.commerce.marketingcenter.events.objects.ProductComparisonStatisticsHome.findByPrimaryKey(com.ibm.commerce.marketingcenter.events.objects.ProductComparisonStatisticsKey) 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_catGroupId( java.lang.Long ) setInitKey_storeId( java.lang.Integer )

ProductComparisonStatisticsAccessBean

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

ProductComparisonStatisticsAccessBean

public ProductComparisonStatisticsAccessBean(java.lang.Long arg1,
                                             java.lang.Integer arg2)
                                      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 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
javax.naming.NamingException

ProductComparisonStatisticsAccessBean

public ProductComparisonStatisticsAccessBean(java.lang.Long aCatGroupId,
                                             java.lang.Integer aStoreId,
                                             java.lang.Integer newClicks,
                                             java.lang.Integer newViews)
                                      throws javax.ejb.CreateException,
                                             java.rmi.RemoteException,
                                             javax.naming.NamingException

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

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

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_storeId

public void setInitKey_storeId(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

getPcViews

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

This method provides access to the PCSTATS.VIEWS column of DB2 type INTEGER.

The following is a description of this column:

The total number of products shown to customers in Product Comparison.

Specified by:
getPcViews in interface ProductComparisonStatisticsAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getPcViewsInEJBType

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

This method provides access to the PCSTATS.VIEWS column of DB2 type INTEGER.

The following is a description of this column:

The total number of products shown to customers in Product Comparison.

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

setPcViews

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

setPcViews

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

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 PCSTATS.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 ProductComparisonStatisticsAccessBeanData
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 PCSTATS.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 ProductComparisonStatisticsAccessBeanData

setCatGroupId

public void setCatGroupId(java.lang.Long 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 PCSTATS.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 ProductComparisonStatisticsAccessBeanData
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 PCSTATS.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 ProductComparisonStatisticsAccessBeanData

setStoreId

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

getPcClicks

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

This method provides access to the PCSTATS.CLICKS column of DB2 type INTEGER.

The following is a description of this column:

The number of times customers clicked on a product in Product Comparison.

Specified by:
getPcClicks in interface ProductComparisonStatisticsAccessBeanData
Returns:
String
Throws:
java.rmi.RemoteException
javax.ejb.CreateException
javax.ejb.FinderException
javax.naming.NamingException

getPcClicksInEJBType

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

This method provides access to the PCSTATS.CLICKS column of DB2 type INTEGER.

The following is a description of this column:

The number of times customers clicked on a product in Product Comparison.

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

setPcClicks

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

setPcClicks

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

incrementClicks

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

Method to increment the click count.

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

incrementViews

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

Method to increment the view count.

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

incrementViews

public void incrementViews(java.lang.Integer views)
                    throws java.rmi.RemoteException,
                           javax.ejb.FinderException,
                           javax.naming.NamingException

Method to increment the view count.

Parameters:
views - A view count
Returns:
void
Throws:
java.rmi.RemoteException - The java.rmi.RemoteException exception
javax.ejb.FinderException
javax.naming.NamingException

Feedback