public class SegmentNotebookDataminingDatabean
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright field.
|
Constructor and Description |
---|
SegmentNotebookDataminingDatabean()
Constructor which simply initializes instance variables.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getFilteredResults(java.lang.String modelStr,
java.lang.String segmentStr,
java.lang.String scoreStr)
Called only if the user has clicked the Refresh button and has entered a
score threshold.
|
void |
getJSArray(javax.servlet.jsp.JspWriter out)
Formats the data from the enterprise bean into a JavaScript array for use by the JSP file.
|
java.lang.String |
getModelDescription(java.lang.String modelStr)
Retrieves the segment description for the specified model and writes it
to the JSP file.
|
java.lang.String |
getModelOptions(java.lang.String modelStr,
javax.servlet.jsp.JspWriter out)
Creates the entries for the model select box in the JSP file.
|
void |
init(CommandContext commandContext)
First method called by the JSP file.
|
boolean |
isThereAnyData()
Checks to see if the EJB beans were able to find any data
|
public static final java.lang.String COPYRIGHT
public SegmentNotebookDataminingDatabean()
public void init(CommandContext commandContext)
CommandContext
- commandContext The command context from Commerce.public java.lang.String getFilteredResults(java.lang.String modelStr, java.lang.String segmentStr, java.lang.String scoreStr)
String
- modelStr The segmentation_id..String
- segmentStr The segment_index.String
- scoreStr The score (a number between 0 and 1).public void getJSArray(javax.servlet.jsp.JspWriter out)
JspWriter
- The response stream to the JSP.public java.lang.String getModelOptions(java.lang.String modelStr, javax.servlet.jsp.JspWriter out)
String
- modelStr The segmentation_id.JspWriter
- out The response stream to the JSP file.public boolean isThereAnyData()
public java.lang.String getModelDescription(java.lang.String modelStr)
modelStr
- String The model for which to get the description