public class ProductSearchListDataBean extends SmartDataBeanImpl
Modifier and Type | Field and Description |
---|---|
protected java.lang.String | _searchType |
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
|
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(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 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 ORDER_BY_CATEGORY_NAME
public static final java.lang.String ORDER_BY_CATEGORY_SHORTDESCRIPTION
public static final java.lang.String ORDER_BY_CATEGORY_IDENTIFIER
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 static final java.lang.String CATENTRY_TYPE_PRODUCT
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_BUNDLE
public static final java.lang.String CATENTRY_TYPE_DYNAMIC_KIT
protected java.lang.String _searchType
public ProductSearchListDataBean()
public java.lang.String getExcludedProductSets(java.lang.String contractId)
public java.lang.String buildCategoryExclusionQuery(java.lang.String contractId, java.lang.String catalogId)
public java.lang.String buildProductExclusionQuery(java.lang.String contractId)
public static java.lang.String escapeSQLstring(java.lang.String result)
Behavior:
\ is inserted before % _ ' and \public java.lang.String getCatalogEntryType()
public java.lang.String getCatalogID()
public java.lang.String getContractID()
public ProductSearchDataBean[] getCatalogList()
public ProductSearchDataBean getCatalogListData(int index) throws java.lang.ArrayIndexOutOfBoundsException
public java.lang.String getDefaultLanguageID() throws java.lang.Exception
public java.lang.String getIndexBegin()
public java.lang.String getIndexEnd()
public java.lang.String getLanguageID() throws 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 TypedProperty getRequestProperties()
public int getResultSetSize()
public java.lang.String getShortDescription()
public java.lang.String getShortDescriptionLike()
public java.lang.String getStoreID()
public static final java.lang.String getUpperCaseFunction()
public void populate()
public void setCatalogEntryType(java.lang.String catEntType)
public void setCatalogID(java.lang.String newCatalogID)
public void setContractID(java.lang.String newContractID)
public void setCatalogList(java.util.Vector newCatalogList)
public void setIndexBegin(java.lang.String newIndexBegin)
public void setIndexEnd(java.lang.String newIndexEnd)
public void setLanguageID(java.lang.String newLanguageID)
public void setMemberID(java.lang.String newMemberID)
public void setName(java.lang.String newName)
public void setNameLike(java.lang.String newNameLike)
public void setOrderBy(java.lang.String newOrderBy)
public void setPartNumber(java.lang.String newPartNumber)
public void setPartNumberLike(java.lang.String newPartNumberLike)
public void setRequestProperties(TypedProperty param)
public void setResultSetSize(int newResultSetSize)
public void setSearchType(java.lang.String searchType)
public void setShortDescription(java.lang.String newShortDescription)
public void setShortDescriptionLike(java.lang.String newShortDescriptionLike)
public void setStoreID(java.lang.String newStoreID)
public java.lang.String getStoreEntityIdWhereClause(java.lang.Integer storeId, java.lang.String prefix)