public abstract class SearchBaseDataBean extends SmartDataBeanImpl implements SearchConstants
Modifier and Type | Field and Description |
---|---|
protected com.ibm.commerce.base.objects.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 | compId
compId (String): This is used to retrieve search limits
|
protected ComponentConfiguration | config |
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 | defaultPageSize |
protected boolean | exceededPageSize
This variable indicates whether the pageSize set, has exceeded maxPageSize limits of ProductSearchThreshold or not.
|
protected boolean | exceededResultSize
This variable indicates whether the total number of results has exceeded maxResultSize limits of ProductSearchThreshold or not.
|
protected java.lang.String | maxPageSize |
protected int | maxPageSizeInt |
protected java.lang.String | maxResultSize |
protected int | maxResultSizeInt |
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.
|
protected java.util.Vector | resultSet
resultSet (Vector): The result set of the search query.
|
Constructor and Description |
---|
SearchBaseDataBean()
SearchDataBean constructor comment.
|
Modifier and Type | Method and Description |
---|---|
protected abstract void | execute()
Build complete query and retrieve result set
|
protected boolean | getAcceleratorFlag()
This method indicates whether the search beans are accessed through catalog sections of Accelerator or not.
|
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.
|
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.
|
int | getResultSetSize()
Gets the size of the result set list
|
protected int | getStringOperator(java.lang.String opKey)
Converts Operators (LIKE,EQUAL,NOTLIKE) to search interface integer constant
|
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)
|
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.
|
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
|
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
|
protected java.lang.String beginIndex
protected java.lang.String pageSize
protected com.ibm.commerce.base.objects.Cursor aCursor
protected java.lang.String databaseType
protected java.lang.String resultCount
protected boolean exceededResultSize
protected boolean exceededPageSize
protected RuleQuery q
protected CommandContext commandContext
protected java.util.Vector resultSet
protected java.lang.String compId
protected ComponentConfiguration config
protected java.lang.String defaultPageSize
protected java.lang.String maxPageSize
protected java.lang.String maxResultSize
protected int maxPageSizeInt
protected int maxResultSizeInt
public SearchBaseDataBean()
protected abstract void execute() throws java.lang.Exception
public java.lang.String getBeginIndex()
protected int getNumericOperator(java.lang.String opKey)
public java.lang.String getPageSize()
protected boolean getAcceleratorFlag()
public java.lang.String getResultCount()
public boolean getExceededPageSize()
protected int getStringOperator(java.lang.String opKey)
protected void initialize() throws java.lang.Exception
protected boolean isEmpty(java.lang.String str)
public abstract void populate() throws java.lang.Exception
public void setBeginIndex(java.lang.String newBeginIndex)
public void setPageSize(java.lang.String newPageSize)
public void setAcceleratorFlag(boolean newAcceleratorFlag)
protected abstract void setPredefinedAttributes() throws java.lang.Exception
public void setResultCount(java.lang.String newResultCount)
public void setExceededPageSize(boolean newExceededPageSize)
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)