public abstract class SearchBaseDataBean extends SmartDataBeanImpl implements SearchConstants
ALL, ALL_CATALOG, ALL_CATEGORIES, ALLWORDS, ANYWORDS, ATTRVALUE_FLOATVALUE, ATTRVALUE_INTEGERVALUE, ATTRVALUE_STRINGVALUE, BOTH, CASE_SENSITIVE, CATGPENREL_BOTH_SCHEMA_TYPE, CATGPENREL_PRODUCT_SCHEMA_TYPE, DISTINCT_RESULT, EXACTPHRASE, ITEM, LISTPRICE_ON, MASTER_CATALOG, OPERATOR_EQUAL, OPERATOR_GREATER, OPERATOR_GREATER_EQUAL, OPERATOR_IN, OPERATOR_LEFT_LIKE, OPERATOR_LESS, OPERATOR_LESS_EQUAL, OPERATOR_LIKE, OPERATOR_NOT_EQUAL, OPERATOR_NOT_LIKE, OPERATOR_RIGHT_LIKE, PRODUCT, SEARCH_IN_CATEGORYNAME, SEARCH_IN_CATEGORYNAME_AND_DESCRIPTIONS, SEARCH_IN_CATEGORYNAME_AND_SHORT_DESCRIPTION, SEARCH_IN_KEYWORD, SEARCH_IN_PRODUCTNAME, SEARCH_IN_PRODUCTNAME_AND_DESCRIPTIONS, SEARCH_IN_PRODUCTNAME_AND_SHORT_DESCRIPTION
emptyString
Constructor and Description |
---|
SearchBaseDataBean()
SearchDataBean constructor comment.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBeginIndex()
Returns beginIndex of type String
|
int |
getCurrentPageNumber()
Returns the current page number in the result set (based on page size -- if page size is zero or null, this function returns 1)
|
int |
getEndIndex()
Returns the end index for the result set on the page.
|
boolean |
getExceededPageSize()
This method indicates whether the pageSize set has exceeded maxPageSize limits of ProductSearchThreshold or not.
|
java.util.Locale |
getLocale()
gets the locale used in the data bean.
|
java.lang.String |
getPageSize()
Return pageSize of type String
|
java.lang.String |
getResultCount()
Returns
resultCount . |
int |
getResultSetSize()
Gets the size of the result set list
|
int |
getTotalNumberOfResultSetPages()
Returns the total number of pages in the result set (based on page size -- if page size is zero or null, this function returns 1)
|
boolean |
isNextPageExists()
Determines whether a next page of data exists
|
boolean |
isPreviousPageExists()
Determines whether a previous page of data exists
|
boolean |
isResultSetEmpty()
Determines whether the result set is empty
|
abstract void |
populate()
Populate the data bean.
|
void |
setAcceleratorFlag(boolean newAcceleratorFlag)
To set
acceleratorFlag . |
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 |
setExceededPageSize(boolean newExceededPageSize)
To set
exceededPageSize . |
void |
setLocale(java.util.Locale locale)
sets the locale used in the data bean.
|
void |
setPageSize(java.lang.String newPageSize)
To set pageSize defines the number elements in each page
|
void |
setResultCount(java.lang.String newResultCount)
The resultCount is the total number of elements in result set
|
fulfills, getCommandContext, getHttpRequest, getHttpResponse, getResources, getViewCommandContext, setCommandContext, setHttpRequest, setHttpResponse, setViewCommandContext
getRequestProperties, setRequestProperties
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getRequestProperties, setRequestProperties
public SearchBaseDataBean()
public java.lang.String getBeginIndex()
public java.lang.String getPageSize()
public java.lang.String getResultCount()
resultCount
. resultCount (String)
: This variable will contain total number of results returned for a search.public boolean getExceededPageSize()
true
if limits exceeded false
otherwise.public abstract void populate() throws java.lang.Exception
populate
in interface SmartDataBean
populate
in class SmartDataBeanImpl
java.lang.Exception
- This method should never be thrown because there is no data retrieved to populate the data bean.public void setBeginIndex(java.lang.String newBeginIndex)
newBeginIndex
- int. The first element result of any page from total number of elements in result set.public void setPageSize(java.lang.String newPageSize)
newPageSize
- int. The number of elements in each page.public void setAcceleratorFlag(boolean newAcceleratorFlag)
acceleratorFlag
.newAcceleratorFlag
- boolean.
Used for IBM Internal Use Onlypublic void setResultCount(java.lang.String newResultCount)
newResultCount
- java.lang.String. The total number of elements in the result set.public void setExceededPageSize(boolean newExceededPageSize)
exceededPageSize
.newExceededPageSize
- boolean. The exceeded flag.public int getResultSetSize()
public boolean isResultSetEmpty()
public boolean isPreviousPageExists()
public boolean isNextPageExists()
public int getEndIndex()
public int getTotalNumberOfResultSetPages()
public int getCurrentPageNumber()
public java.util.Locale getLocale()
public void setLocale(java.util.Locale locale)
locale
- the locale.