java.lang.Object | +--com.ibm.commerce.beans.InputDataBeanImpl | +--com.ibm.commerce.beans.SmartDataBeanImpl | +--com.ibm.commerce.search.beans.SearchBaseDataBean
Insert the type's description here.
Field Summary | |
---|---|
protected
Cursor |
aCursor aCursor (Cursor): This is a virtual cursor to manage paging of result set in pageSize blocks. |
protected
java.lang.String |
beginIndex beginIndex (String): The value of this variable is used identify the first result of the any page. |
protected
CommandContext |
commandContext commandContext (CommandContext): Commerce context containing session data |
protected
java.lang.String |
databaseType databaseType (String): This is a virtual cursor to manage paging of result set in pageSize blocks. |
protected
java.lang.String |
pageSize pageSize (String): The value of this variable is used identify the number of elements on each page. |
protected
RuleQuery |
q q (RuleQuery): The search interface query object containing generated SQL |
protected
java.lang.String |
resultCount resultCount (String): The total number of elements found in result set. |
Fields inherited from class com.ibm.commerce.beans. SmartDataBeanImpl |
COPYRIGHT |
Fields inherited from class com.ibm.commerce.beans. InputDataBeanImpl |
requestProperties |
Fields inherited from interface com.ibm.commerce.beans. DataBean |
emptyString |
Constructor Summary | |
---|---|
SearchBaseDataBean() SearchDataBean constructor comment. |
Method Summary | |
---|---|
protected
abstract void |
execute() Build complete query and retrieve result set |
java.lang.String |
getBeginIndex() Returns beginIndex of type String |
protected
int |
getNumericOperator(java.lang.String opKey) The input search criteria operators are of type String. |
java.lang.String |
getPageSize() Return pageSize of type String |
java.lang.String |
getResultCount() Returns resultCount |
protected
int |
getStringOperator(java.lang.String opKey) Converts Operators (LIKE,EQUAL,NOTLIKE) to search interface integer constant |
protected
void |
initialize() Defines cursor begin index and page size |
protected
boolean |
isEmpty(java.lang.String str) Checks if a string is null or blank space. |
abstract
void |
populate() Insert the method's description here. |
void |
setBeginIndex(java.lang.String newBeginIndex) The beginIndex identifies the first element result of any page from total number of elements in result set. |
void |
setPageSize(java.lang.String newPageSize) To set pageSize defines the number elements in each page |
protected
abstract void |
setPredefinedAttributes() Processes data bean variables from request object |
void |
setResultCount(java.lang.String newResultCount) The resultCount is the total number of elements in result set |
Methods inherited from class com.ibm.commerce.beans. SmartDataBeanImpl |
fulfills,
getCommandContext,
getResources,
setCommandContext |
Methods inherited from class com.ibm.commerce.beans. InputDataBeanImpl |
getRequestProperties,
setRequestProperties |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll,
toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.beans. InputDataBean |
getRequestProperties,
setRequestProperties |
Field Detail |
---|
protected java.lang.String beginIndex
protected java.lang.String pageSize
protected Cursor aCursor
protected java.lang.String databaseType
protected java.lang.String resultCount
protected RuleQuery q
protected CommandContext commandContext
Constructor Detail |
---|
public SearchBaseDataBean()
Method Detail |
---|
protected abstract void execute() throws java.lang.Exception
java.lang.Exception
public java.lang.String getBeginIndex()
protected int getNumericOperator(java.lang.String opKey)
opKey
- The input search criteria operator (numeric operator)
of type String value.public java.lang.String getPageSize()
public java.lang.String getResultCount()
protected int getStringOperator(java.lang.String opKey)
opKey
- The search interface constant for operators Like,
Equal and Not Equal.protected void initialize() throws java.lang.Exception
java.lang.Exception
protected boolean isEmpty(java.lang.String str)
str
- Input string that is to be checked for null or blank
space.public abstract void populate() throws java.lang.Exception
populate
in interface
SmartDataBean
populate
in class
SmartDataBeanImpl
java.lang.Exception
- should not happen since there is no data
retrieved to populate the databean.public void setBeginIndex(java.lang.String newBeginIndex)
newBeginIndex
- intpublic void setPageSize(java.lang.String newPageSize)
newPageSize
- intprotected abstract void setPredefinedAttributes() throws java.lang.Exception
java.lang.Exception
public void setResultCount(java.lang.String newResultCount)
newResultCount
- java.lang.String