CatalogQueryWrapper Class
- public class CatalogQueryWrapper
extends Object
implements CatalogRuleConstants
A wrapper/helper class that wraps a
com.beasys.commerce.ebusiness.catalog.service.query.CatalogQuery
and helps create an instance of the latter. The rules service creates this object
by passing as arguments the type of the CatalogQuery and the query string.
-
Hierarchy
-
Object
CatalogQueryWrapper
-
All Implemented Interfaces
-
CatalogRuleConstants
Methods from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
catalogManagerName
protected String
catalogManagerName
- The CatalogManagerName. The
CatalogManager to use to fire this
query.
keywordQuery
protected KeywordQuery
keywordQuery
- The wrapped KeywordQuery.
maxResults
protected int maxResults
- The max query results returned.
productItemQuery
protected ProductItemQuery
productItemQuery
- The wrapped ProductItemQuery.
queryString
protected String
queryString
- The query string. Could be a
space separated list of keywords
or a query exrpession.
queryType
protected String
queryType
- String representation of the query type.
Helps the rules service let this class know
the type of query without the former having
to have any knowledge of the nature of the
query string. The rules service gets information
about the type from the node type in the
rule xml.
viewSize
protected int viewSize
- The viewSize. This is an optional
parameter and if specified will
fire a query that returns a
ViewIterator over the results.
If viewSize is zero an array
of productItems will be returned.
CatalogQueryWrapper
public CatalogQueryWrapper(String
queryType,
String
queryString,
int maxResults,
String
catalogManagerName,
int viewSize)
- Constructor with arguments.
getCatalogManagerName() Method
public String
getCatalogManagerName()
Get the value of catalogManagerName.
Returns
- Value of catalogManagerName.
getKeywordQuery() Method
public KeywordQuery
getKeywordQuery()
Get the value of keywordQuery.
Returns
- Value of keywordQuery.
getMaxResults() Method
public int getMaxResults()
Get the value of maxResults.
Returns
- Value of maxResults.
getProductItemQuery() Method
public ProductItemQuery
getProductItemQuery()
Get the value of productItemQuery.
Returns
- Value of productItemQuery.
getQuery() Method
public CatalogQuery
getQuery()
Hands out the one query object that this class wraps.
Returns
- CatalogQuery The wrapped query object.
getQueryString() Method
public String
getQueryString()
Get the value of queryString.
Returns
- Value of queryString.
getQueryType() Method
public String
getQueryType()
Get the value of queryType.
Returns
- Value of queryType.
getViewSize() Method
public int getViewSize()
Get the value of viewSize.
Returns
- Value of viewSize.
setCatalogManagerName(String) Method
protected void setCatalogManagerName(String
v)
Set the value of catalogManagerName.
Parameters
-
v
- Value to assign to catalogManagerName.
setKeywordQuery(KeywordQuery) Method
protected void setKeywordQuery(KeywordQuery
v)
Set the value of keywordQuery.
Parameters
-
v
- Value to assign to keywordQuery.
setMaxResults(int) Method
protected void setMaxResults(int v)
Set the value of maxResults.
Parameters
-
v
- Value to assign to maxResults.
setProductItemQuery(ProductItemQuery) Method
protected void setProductItemQuery(ProductItemQuery
v)
Set the value of productItemQuery.
Parameters
-
v
- Value to assign to productItemQuery.
setQueryString(String) Method
protected void setQueryString(String
v)
Set the value of queryString.
Parameters
-
v
- Value to assign to queryString.
setQueryType(String) Method
protected void setQueryType(String
v)
Set the value of queryType.
Parameters
-
v
- Value to assign to queryType.
setViewSize(int) Method
public void setViewSize(int v)
Set the value of viewSize.
Parameters
-
v
- Value to assign to viewSize.