com.ibm.commerce.marketingcenter.events.databeans
Class ProductComparisonStatisticsListDataBean

java.lang.Object
  |
  +--com.ibm.commerce.marketingcenter.events.databeans.ProductComparisonStatisticsListDataBean
All Implemented Interfaces:
DataBean, InputDataBean, java.io.Serializable, SmartDataBean

public class ProductComparisonStatisticsListDataBean
extends java.lang.Object
implements SmartDataBean

This class accesses all the entries of the product comparison statistics in the database, where each row is represented by a ProductComparisonStatisticsBean.

See Also:
Serialized Form

Field Summary
protected  java.lang.Long catGroupId
           
protected  CommandContext commandContext
           
static java.lang.String COPYRIGHT
          IBM copyright notice field.
protected  TypedProperty requestProperties
           
protected   ProductComparisonStatisticsAccessBean[] statsAccessBeanList
           
protected   ProductComparisonStatisticsBean[] statsDataBeanList
           
 
Fields inherited from interface com.ibm.commerce.beans. DataBean
emptyString
 
Constructor Summary
ProductComparisonStatisticsListDataBean()
          Constructor for ProductComparisonStatisticsListDataBean.
 
Method Summary
 java.lang.Long getCatGroupId()
          Gets the category ID associated with all the statistics in this bean, in EJB attribute type.
  CommandContext getCommandContext()
          Gets the current command context that is used to retrieve the runtime attribute like the store ID and the member ID.
  TypedProperty getRequestProperties()
          Gets the requestProperties associated with the data bean.
  ProductComparisonStatisticsAccessBean[] getStatsAccessBeanList()
          Gets the array of ProductComparisonStatisticsAccessBean objects that represents all the statistics in the list.
  ProductComparisonStatisticsBean[] getStatsDataBeanList()
          Gets the array of ProductComparisonStatisticsBean objects that represents all the statistics in the list.
 void populate()
          Populate the databean that includes all the statistics found.
 void setCatGroupId(java.lang.Long newCatGroupId)
          Sets the category ID associated with all the statistics in this bean, in EJB attribute type.
 void setCommandContext( CommandContext newCommandContext)
          Sets the current command context that is used to retrieve the runtime attribute like the store ID and the member ID.
 void setRequestProperties( TypedProperty newRequestProperties)
          Sets the requestProperties associated with the data bean.
 void setStatsAccessBeanList( ProductComparisonStatisticsAccessBean[] newStatsAccessBeanList)
          Sets the array of ProductComparisonStatisticsAccessBean objects that represents all the statistics in the list.
 void setStatsDataBeanList( ProductComparisonStatisticsBean[] newStatsDataBeanList)
          Sets the array of ProductComparisonStatisticsBean objects that represents all the statistics in the list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values

catGroupId

protected java.lang.Long catGroupId

requestProperties

protected TypedProperty requestProperties

commandContext

protected CommandContext commandContext

statsDataBeanList

protected ProductComparisonStatisticsBean[] statsDataBeanList

statsAccessBeanList

protected ProductComparisonStatisticsAccessBean[] statsAccessBeanList
Constructor Detail

ProductComparisonStatisticsListDataBean

public ProductComparisonStatisticsListDataBean()
Constructor for ProductComparisonStatisticsListDataBean.
Method Detail

getCatGroupId

public java.lang.Long getCatGroupId()
Gets the category ID associated with all the statistics in this bean, in EJB attribute type.
Returns:
category ID

getCommandContext

public CommandContext getCommandContext()
Gets the current command context that is used to retrieve the runtime attribute like the store ID and the member ID.
Specified by:
getCommandContext in interface SmartDataBean
Returns:
the current command context

getRequestProperties

public TypedProperty getRequestProperties()
Gets the requestProperties associated with the data bean.
Specified by:
getRequestProperties in interface InputDataBean
Returns:
The set of properties passed to the JSP page that invokes this data bean.

getStatsAccessBeanList

public ProductComparisonStatisticsAccessBean[] getStatsAccessBeanList()
Gets the array of ProductComparisonStatisticsAccessBean objects that represents all the statistics in the list.
Returns:
an array of ProductComparisonStatisticsAccessBean objects

getStatsDataBeanList

public ProductComparisonStatisticsBean[] getStatsDataBeanList()
Gets the array of ProductComparisonStatisticsBean objects that represents all the statistics in the list.
Returns:
an array of ProductComparisonStatisticsBean objects

populate

public void populate()
              throws java.lang.Exception
Populate the databean that includes all the statistics found.
Specified by:
populate in interface SmartDataBean
Throws:
java.lang.Exception - Thrown whenever an exception is encountered.

setCatGroupId

public void setCatGroupId(java.lang.Long newCatGroupId)
Sets the category ID associated with all the statistics in this bean, in EJB attribute type.
Parameters:
newCatGroupId - category ID

setCommandContext

public void setCommandContext(CommandContext newCommandContext)
Sets the current command context that is used to retrieve the runtime attribute like the store ID and the member ID.
Specified by:
setCommandContext in interface SmartDataBean
Parameters:
newCommandContext - the current command context

setRequestProperties

public void setRequestProperties(TypedProperty newRequestProperties)
Sets the requestProperties associated with the data bean.
Specified by:
setRequestProperties in interface InputDataBean
Parameters:
newRequestProperties - The set of properties passed to the JSP page that invokes this data bean.

setStatsAccessBeanList

public void setStatsAccessBeanList(ProductComparisonStatisticsAccessBean[] newStatsAccessBeanList)
Sets the array of ProductComparisonStatisticsAccessBean objects that represents all the statistics in the list.
Parameters:
newStatsAccessBeanList - an array of ProductComparisonStatisticsAccessBean objects

setStatsDataBeanList

public void setStatsDataBeanList(ProductComparisonStatisticsBean[] newStatsDataBeanList)
Sets the array of ProductComparisonStatisticsBean objects that represents all the statistics in the list.
Parameters:
newStatsDataBeanList - an array of ProductComparisonStatisticsBean objects