public class ProductSearchListDataBean
extends com.ibm.commerce.beans.SmartDataBeanImpl
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CATENTRY_TYPE_BUNDLE
Catentry type constants
|
static java.lang.String |
CATENTRY_TYPE_DYNAMIC_KIT
Catentry type constants
|
static java.lang.String |
CATENTRY_TYPE_ITEM
Catentry type constants
|
static java.lang.String |
CATENTRY_TYPE_PACKAGE
Catentry type constants
|
static java.lang.String |
CATENTRY_TYPE_PRODUCT
Catentry type constants
|
static java.lang.String |
ORDER_BY_CATEGORY_IDENTIFIER
Order by constants
|
static java.lang.String |
ORDER_BY_CATEGORY_NAME
Order by constants
|
static java.lang.String |
ORDER_BY_CATEGORY_SHORTDESCRIPTION
Order by constants
|
static java.lang.String |
ORDER_BY_PRODUCT_CODE
Order by constants
|
static java.lang.String |
ORDER_BY_PRODUCT_NAME
Order by constants
|
static java.lang.String |
ORDER_BY_SHORTDESCRIPTION
Order by constants
|
static java.lang.String |
TYPE_LIKE_CASE_SENSITIVE
Pattern match type constants
|
static java.lang.String |
TYPE_LIKE_IGNORE_CASE
Pattern match type constants
|
static java.lang.String |
TYPE_MATCH_CASE_SENSITIVE
Pattern match type constants
|
static java.lang.String |
TYPE_MATCH_IGNORE_CASE
Pattern match type constants
|
Constructor and Description |
---|
ProductSearchListDataBean()
Creates a ProductSearchListDataBean
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
buildCategoryExclusionQuery(java.lang.String contractId,
java.lang.String catalogId)
Builds the query to excluded the excluded categories
|
java.lang.String |
buildProductExclusionQuery(java.lang.String contractId)
Builds the query to excluded the excluded catentries
|
static java.lang.String |
escapeSQLstring(java.lang.String result)
Receives a string to be used in an SQL command and inserts any necessary
escape characters.
|
java.lang.String |
getCatalogEntryType()
Gets the catalog entry type
|
java.lang.String |
getCatalogID()
Gets the store identifier
|
ProductSearchDataBean[] |
getCatalogList()
Gets the list of entries that were found
|
ProductSearchDataBean |
getCatalogListData(int index)
Gets a specific entry that was found
|
java.lang.String |
getContractID()
Gets the contract ID
|
java.lang.String |
getDefaultLanguageID()
Gets the language identifier for the language in which to search
|
java.lang.String |
getExcludedProductSets(java.lang.String contractId)
Finds the excluded product sets from the base contract
|
java.lang.String |
getIndexBegin()
Gets the beginning index into the search results
|
java.lang.String |
getIndexEnd()
Gets the end index into the search results
|
java.lang.String |
getLanguageID()
Gets the language identifier for the language in which to search
|
int |
getListSize()
Gets the size of the search results list
|
java.lang.String |
getMemberID()
Gets the member identifier
|
java.lang.String |
getName()
Gets the name of the item to search for
|
java.lang.String |
getNameLike()
Gets the type of name search
|
java.lang.String |
getOrderBy()
Gets the parameter to order the results by
|
java.lang.String |
getPartNumber()
Gets the SKU to search for
|
java.lang.String |
getPartNumberLike()
Gets the type of SKU search
|
com.ibm.commerce.datatype.TypedProperty |
getRequestProperties()
Gets the request properties
|
int |
getResultSetSize()
Gets the total number of entries found
|
java.lang.String |
getShortDescription()
Gets the short description to search for
|
java.lang.String |
getShortDescriptionLike()
Gets the type of short description search
|
java.lang.String |
getStoreEntityIdWhereClause(java.lang.Integer storeId,
java.lang.String prefix)
Gets the where clause that includes the stores on the store path.
|
java.lang.String |
getStoreID()
Gets the store identifier
|
static java.lang.String |
getUpperCaseFunction()
Determines the DB-dependent upper case function by different database.
|
void |
populate()
This method is used to populate the Category or Catalog Entry data.
|
void |
setCatalogEntryType(java.lang.String catEntType)
Sets the type of catalog entry identifier search
|
void |
setCatalogID(java.lang.String newCatalogID)
Sets the catalog identifier
|
void |
setCatalogList(java.util.Vector newCatalogList)
Sets the list of results found
|
void |
setContractID(java.lang.String newContractID)
Sets the contract identifier
|
void |
setIndexBegin(java.lang.String newIndexBegin)
Sets the starting index of the result items
|
void |
setIndexEnd(java.lang.String newIndexEnd)
Sets the end index of the result items
|
void |
setLanguageID(java.lang.String newLanguageID)
Sets the language identifier in which to search
|
void |
setMemberID(java.lang.String newMemberID)
Sets the member identifier
|
void |
setName(java.lang.String newName)
Sets the name to search for
|
void |
setNameLike(java.lang.String newNameLike)
Sets the type of name search
|
void |
setOrderBy(java.lang.String newOrderBy)
Sets the parameter in which to sort by
|
void |
setPartNumber(java.lang.String newPartNumber)
Sets the SKU to search for
|
void |
setPartNumberLike(java.lang.String newPartNumberLike)
Sets the type of SKU search
|
void |
setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
Sets the request properties
|
void |
setResultSetSize(int newResultSetSize)
Sets the total number of results
|
void |
setSearchType(java.lang.String searchType)
Sets the type of search to perform
|
void |
setShortDescription(java.lang.String newShortDescription)
Sets the short description to search for
|
void |
setShortDescriptionLike(java.lang.String newShortDescriptionLike)
Sets the type of short description search
|
void |
setStoreID(java.lang.String newStoreID)
Sets the store identifier
|
public static final java.lang.String CATENTRY_TYPE_BUNDLE
public static final java.lang.String CATENTRY_TYPE_DYNAMIC_KIT
public static final java.lang.String CATENTRY_TYPE_ITEM
public static final java.lang.String CATENTRY_TYPE_PACKAGE
public static final java.lang.String CATENTRY_TYPE_PRODUCT
public static final java.lang.String ORDER_BY_CATEGORY_IDENTIFIER
public static final java.lang.String ORDER_BY_CATEGORY_NAME
public static final java.lang.String ORDER_BY_CATEGORY_SHORTDESCRIPTION
public static final java.lang.String ORDER_BY_PRODUCT_CODE
public static final java.lang.String ORDER_BY_PRODUCT_NAME
public static final java.lang.String ORDER_BY_SHORTDESCRIPTION
public static final java.lang.String TYPE_LIKE_CASE_SENSITIVE
public static final java.lang.String TYPE_LIKE_IGNORE_CASE
public static final java.lang.String TYPE_MATCH_CASE_SENSITIVE
public static final java.lang.String TYPE_MATCH_IGNORE_CASE
public ProductSearchListDataBean()
public java.lang.String buildCategoryExclusionQuery(java.lang.String contractId, java.lang.String catalogId)
contractId
- java.lang.StringcatalogId
- java.lang.Stringpublic java.lang.String buildProductExclusionQuery(java.lang.String contractId)
contractId
- java.lang.Stringpublic static java.lang.String escapeSQLstring(java.lang.String result)
Behaviour:
\ is inserted before % _ ' and \result
- The string to be formatted for SQL.public java.lang.String getCatalogEntryType()
public java.lang.String getCatalogID()
public ProductSearchDataBean[] getCatalogList()
public ProductSearchDataBean getCatalogListData(int index) throws java.lang.ArrayIndexOutOfBoundsException
index
- intjava.lang.ArrayIndexOutOfBoundsException
public java.lang.String getContractID()
public java.lang.String getDefaultLanguageID() throws java.lang.Exception
java.lang.Exception
public java.lang.String getExcludedProductSets(java.lang.String contractId)
contractId
- java.lang.Stringpublic java.lang.String getIndexBegin()
public java.lang.String getIndexEnd()
public java.lang.String getLanguageID() throws java.lang.Exception
java.lang.Exception
public int getListSize()
public java.lang.String getMemberID()
public java.lang.String getName()
public java.lang.String getNameLike()
public java.lang.String getOrderBy()
public java.lang.String getPartNumber()
public java.lang.String getPartNumberLike()
public com.ibm.commerce.datatype.TypedProperty getRequestProperties()
getRequestProperties
in interface com.ibm.commerce.beans.InputDataBean
getRequestProperties
in class com.ibm.commerce.beans.InputDataBeanImpl
public int getResultSetSize()
public java.lang.String getShortDescription()
public java.lang.String getShortDescriptionLike()
public java.lang.String getStoreEntityIdWhereClause(java.lang.Integer storeId, java.lang.String prefix)
storeId
- java.lang.Integerprefix
- java.lang.Stringpublic java.lang.String getStoreID()
public static final java.lang.String getUpperCaseFunction()
public void populate()
DataBeanManager.activate()
runs.populate
in interface com.ibm.commerce.beans.SmartDataBean
populate
in class com.ibm.commerce.beans.SmartDataBeanImpl
public void setCatalogEntryType(java.lang.String catEntType)
catEntType
- java.lang.Stringpublic void setCatalogID(java.lang.String newCatalogID)
newCatalogID
- java.lang.Stringpublic void setCatalogList(java.util.Vector newCatalogList)
newCatalogList
- java.util.Vectorpublic void setContractID(java.lang.String newContractID)
newContractID
- java.lang.Stringpublic void setIndexBegin(java.lang.String newIndexBegin)
newIndexBegin
- java.lang.Stringpublic void setIndexEnd(java.lang.String newIndexEnd)
newIndexEnd
- java.lang.Stringpublic void setLanguageID(java.lang.String newLanguageID)
newLanguageID
- java.lang.Stringpublic void setMemberID(java.lang.String newMemberID)
newMemberID
- java.lang.Stringpublic void setName(java.lang.String newName)
newName
- java.lang.Stringpublic void setNameLike(java.lang.String newNameLike)
newNameLike
- java.lang.Stringpublic void setOrderBy(java.lang.String newOrderBy)
newOrderBy
- java.lang.Stringpublic void setPartNumber(java.lang.String newPartNumber)
newPartNumber
- java.lang.Stringpublic void setPartNumberLike(java.lang.String newPartNumberLike)
newPartNumberLike
- java.lang.Stringpublic void setRequestProperties(com.ibm.commerce.datatype.TypedProperty param)
setRequestProperties
in interface com.ibm.commerce.beans.InputDataBean
setRequestProperties
in class com.ibm.commerce.beans.InputDataBeanImpl
param
- com.ibm.commerce.datatype.TypedPropertypublic void setResultSetSize(int newResultSetSize)
newResultSetSize
- intpublic void setSearchType(java.lang.String searchType)
searchType
- Stringpublic void setShortDescription(java.lang.String newShortDescription)
newShortDescription
- java.lang.Stringpublic void setShortDescriptionLike(java.lang.String newShortDescriptionLike)
newShortDescriptionLike
- java.lang.Stringpublic void setStoreID(java.lang.String newStoreID)
newStoreID
- java.lang.String