public class ExperimentResultsListDataBean extends SmartDataBeanImpl implements Protectable, Delegator
When customizing the experiment statistics, this class needs to be extended to return the custom statistics information from the EXPSTATS table.
Constructor and Description |
---|
ExperimentResultsListDataBean()
This method constructs an ExperimentResultsListDataBean and calls the superclass constructor, then sets the value if tracing is enabled for the marketing component.
|
ExperimentResultsListDataBean(java.lang.Integer experimentId, java.lang.Integer storeId)
This method constructs an ExperimentResultsListDataBean and sets the values specified by its parameters.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.StringBuffer | addCustomDataToExpstatsQuery(java.lang.StringBuffer sb)
This method updates the EXPSTATS table query with the custom data columns.
|
CommandContext | getCommandContext()
This method gets the current command's context.
|
ExperimentResultDataBean | getControlElementResult()
This method gets the statistics for the control test element.
|
ExperimentCustomResultDataBean | getCustomControlElementResult()
This method gets the custom statistics for the control test element.
|
protected ExperimentCustomResultDataBean | getCustomDataBean()
This method creates an instance of an ExperimentCustomResultDataBean to return when there are no results for a test element.
|
ExperimentCustomResultDataBean[] | getCustomTestElementResults()
This method gets the custom statistics for the test elements, not including the control test element.
|
Protectable | getDelegate()
This method retrieves the bean's delegatee.
|
java.lang.String | getExperimentId()
This method gets the experiment ID.
|
java.lang.Long | getOwner()
This method returns the member ID of the owner of the store in which the experiment runs.
|
TypedProperty | getRequestProperties()
This method gets the request properties.
|
java.lang.String | getStoreId()
This method gets the store ID.
|
ExperimentResultDataBean[] | getTestElementResults()
This method gets the statistics for the test elements, not including the control test element.
|
void | populate()
This method gets the statistics for an experiment.
|
protected ExperimentCustomResultDataBean | populateCustomDataBean(java.sql.ResultSet rs, int index)
This method creates and populates an instance of an ExperimentCustomResultDataBean to store the custom experiment results.
|
void | runQuery()
This method constructs and runs the database query to get the experiment statistics.
|
void | setCommandContext(CommandContext newICommandContext)
This method sets the command context.
|
void | setExperimentId(java.lang.Integer experimentId)
This method sets the experiment ID.
|
void | setRequestProperties(TypedProperty param)
This method sets the request properties.
|
void | setStoreId(java.lang.Integer storeId)
This method sets the store ID.
|
void | setTestData(ExperimentRuleDefinition data)
Reserved for IBM internal use.
|
public ExperimentResultsListDataBean()
public ExperimentResultsListDataBean(java.lang.Integer experimentId, java.lang.Integer storeId)
public void runQuery() throws java.lang.Exception
public ExperimentResultDataBean getControlElementResult()
public ExperimentResultDataBean[] getTestElementResults()
public ExperimentCustomResultDataBean getCustomControlElementResult()
public ExperimentCustomResultDataBean[] getCustomTestElementResults()
public void populate() throws java.lang.Exception
public java.lang.String getExperimentId()
public void setExperimentId(java.lang.Integer experimentId)
public java.lang.String getStoreId()
public void setStoreId(java.lang.Integer storeId)
public void setCommandContext(CommandContext newICommandContext)
public CommandContext getCommandContext()
public void setRequestProperties(TypedProperty param)
public TypedProperty getRequestProperties()
public void setTestData(ExperimentRuleDefinition data)
protected java.lang.StringBuffer addCustomDataToExpstatsQuery(java.lang.StringBuffer sb)
sb.append(", EXPSTATS.GIFTCLICK, EXPSTATS.GIFTORDERS, EXPSTATS.GIFTREVENUE, EXPSTATS.WISHCLICK, EXPSTATS.WISHORDERS, EXPSTATS.WISHREVENUE "); return sb;The necessary data will then be in the ResultSet passed to populateCustomDataBean. This class should be extended, and this method overridden. The default implementation of this method retrieves the data from FIELD1, FIELD2, FIELD3, FIELD4.
protected ExperimentCustomResultDataBean populateCustomDataBean(java.sql.ResultSet rs, int index) throws java.sql.SQLException
Integer field1 = new Integer(rs.getInt(index++)); // gift registry clicks Integer field2 = new Integer(rs.getInt(index++)); // gift registry orders BigDecimal field3 = rs.getBigDecimal(index++); // gift registry revenue CustomExperimentCustomResultDataBean expBean = new CustomExperimentCustomResultDataBean(); expBean.setCustomData(field1, field2, field3); return expBean;
protected ExperimentCustomResultDataBean getCustomDataBean()
CustomExperimentCustomResultDataBean expBean = new CustomExperimentCustomResultDataBean(); return expBean;
public Protectable getDelegate() throws java.lang.Exception
public java.lang.Long getOwner() throws java.lang.Exception, java.rmi.RemoteException