public class SelectQuery
extends java.lang.Object
catentry
ids for the set of queries,
catentry
ids as returned by the database for the set of queries,
catentry
ids picked in random for the set of queries.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ALL_Item
References the constant string value representing the ALL_Item.
|
static int |
AND_Operator
References the constant integer value representing the AND Operator.
|
static int |
ANY_QueryType
References the constant integer value representing the ANY QueryType.
|
static int |
ASC_Operator
References the constant integer value representing the ASC Operator.
|
static int |
ATTRIBUTE_ATTRIBUTE_ID_Attr
References the value used for the ATTRIBUTE_ID column of the ATTRIBUTE database table.
|
static int |
ATTRIBUTE_CATENTRY_ID_Attr
References the value used for the CATENTRY_ID column of the ATTRIBUTE database table.
|
static int |
ATTRIBUTE_LANGUAGE_ID_Attr
References the value used for the LANGUAGE_ID column of the ATTRIBUTE database table.
|
static int |
ATTRIBUTE_NAME_Attr
References the value used for the NAME column of the ATTRIBUTE database table.
|
static int |
ATTRVALUE_ATTRIBUTE_ID_Attr
References the value used for the ATTRIBUTE_ID column of the ATTRVALUE database table.
|
static int |
ATTRVALUE_CATENTRY_ID_Attr
References the value used for the CATENTRY_ID column of the ATTRVALUE database table.
|
static int |
ATTRVALUE_FLOATVALUE_Attr
References the value used for the FLOATVALUE column of the ATTRVALUE database table.
|
static int |
ATTRVALUE_INTEGERVALUE_Attr
References the value used for the INTEGERVALUE column of the ATTRVALUE database table.
|
static int |
ATTRVALUE_LANGUAGE_ID_Attr
References the value used for the LANGUAGE_ID column of the ATTRVALUE database table.
|
static int |
ATTRVALUE_NAME_Attr
References the value used for the NAME column of the ATTRVALUE database table.
|
static int |
ATTRVALUE_STRINGVALUE_Attr
References the value used for the STRINGVALUE column of the ATTRVALUE database table.
|
static int |
AVG_Operator
References the constant integer value representing the AVG Operator.
|
static int |
BOTH_QueryType
References the constant integer value representing the BOTH Query Type.
|
static int |
BUNDLE_CatEntryType
References the constant integer value representing the BUNDLE CatEntry Type.
|
static int |
CATALOG_CATALOG_ID_Attr
References the value used for the CATALOG_ID column of the CATALOG database table.
|
static int |
CATALOG_DESCRIPTION_Attr
References the value used for the DESCRIPTION column of the CATALOG database table.
|
static int |
CATALOG_IDENTIFIER_Attr
References the value used for the IDENTIFIER column of the CATALOG database table.
|
static int |
CATALOGDSC_LANGUAGE_ID_Attr
References the value used for the LANGUAGE_ID column of the CATALOGDSC database table.
|
static int |
CATALOGDSC_NAME_Attr
References the value used for the NAME column of the CATALOGDSC database table.
|
static int |
CATALOGDSC_SHORTDESCRIPTION_Attr
References the value used for the SHORTDESCRIPTION column of the CATALOGDSC database table.
|
static int |
CATENTDESC_AVAILABILITY_DATE_Attr
References the value used for the AVAILABILITY_DATE column of the CATENTDESC database table
|
static int |
CATENTDESC_AVAILABLE_Attr
References the value used for the AVAILABLE column of the CATENTDESC database table.
|
static int |
CATENTDESC_CATENTRY_ID_Attr
References the value used for the CATENTRY_ID column of the CATENTDESC database table
|
static int |
CATENTDESC_KEYWORD_Attr
References the value used for the KEYWORD column of the CATENTDESC database table.
|
static int |
CATENTDESC_LANGUAGE_ID_Attr
References the value used for the LANGUAGE_ID column of the CATENTDESC database table
|
static int |
CATENTDESC_LONGDESCRIPTION_Attr
References the value used for the LONGDESCRIPTION column of the CATENTDESC database table
|
static int |
CATENTDESC_NAME_Attr
References the value used for the NAME column of the CATENTDESC database table
|
static int |
CATENTDESC_PARTNUMBER_Attr
References the value used for the PARTNUMBER column of the CATENTDESC database table
|
static int |
CATENTDESC_PUBLISHED_Attr
References the value used for the PUBLISHED column of the CATENTDESC database table
|
static int |
CATENTDESC_SHORT_DESC_Attr
References the value used for the SHORT_DESC column of the CATENTDESC database table
|
static int |
CATENTDESC_SHORTDESCRIPTION_Attr
References the value used for the SHORTDESCRIPTION column of the Listprice CATENTDESC table
|
static int |
CATENTDESC_THUMBNAIL_Attr
References the value used for the THUMBNAIL column of the CATENTDESC database table
|
static int |
CATENTREL_CATENTRY_ID_CHILD_Attr
References the value used for the CATENTRY_ID_CHILD column of the CATENTREL database table.
|
static int |
CATENTREL_CATENTRY_ID_PARENT_Attr
References the value used for the CATENTRY_ID_PARENT column of the CATENTREL database table.
|
static int |
CATENTREL_CATREL_TYPE_ID_Attr
References the value used for the CATREL_TYPE_ID column of the CATENTREL database table.
|
static int |
CATENTRY_BUYABLE_Attr
References the value used for the BUYABLE column of the CATENTRY database table
|
static int |
CATENTRY_CATENTRY_ID_Attr
References the value used for the CATENTRY_ID column of the CATENTRY database table
|
static int |
CATENTRY_ID_Attr
References the value used for the CATENTRY_ID column of the CATENTRY database table
|
static int |
CATENTRY_LASTUPDATE_Attr
References the value used for the LASTUPDATE column of the CATENTRY database table
|
static int |
CATENTRY_MARKFORDELETE_Attr
References the value used for the MARKFORDELETE column of the CATENTRY database table
|
static int |
CATENTRY_MFNAME_Attr
References the value used for the MFNAME column of the CATENTRY database table
|
static int |
CATENTRY_MFPARTNUMBER_Attr
References the value used for the MFPARTNUMBER column of the CATENTRY database table
|
static int |
CATENTRY_ONAUCTION_Attr
References the value used for the ONAUCTION column of the CATENTRY database table
|
static int |
CATENTRY_ONSPECIAL_Attr
References the value used for the ONSPECIAL column of the CATENTRY database table
|
static int |
CATENTRY_PARTNUMBER_Attr
References the value used for the PARTNUMBER column of the CATENTRY database table
|
static int |
CATENTRY_SKU_Attr
References the value used for the SKU column of the CATENTRY database table
|
static int |
CATENTRY_SKU_QueryType
References the constant integer value representing the CATENTRY_SKU Query Type.
|
static int |
CATGPENREL_CATALOG_ID_Attr
References the value used for the CATALOG_ID column of the CATGPENREL database table.
|
static int |
CATGPENREL_CATENTRY_ID_Attr
References the value used for the CATENTRY_ID column of the CATGPENREL database table.
|
static int |
CATGPENREL_CATGROUP_ID_Attr
References the value used for the CATGROUP_ID column of the CATGPENREL database table.
|
static int |
CATGROUP_CATGROUP_ID_Attr
References the value used for the CATGROUP_ID column of the CATGROUP database table.
|
static int |
CATGROUP_IDENTIFIER_Attr
References the value used for the IDENTIFIER column of the CATGROUP database table.
|
static int |
CATGROUP_IDENTIFIER_ID_Attr
References the value used for the IDENTIFIER_ID column of the CATGROUP database table.
|
static int |
CATGROUP_LASTUPDATE_Attr
References the value used for the LASTUPDATE column of the CATGROUP database table.
|
static int |
CATGROUP_MARKFORDELETE_Attr
References the value used for the MARKFORDELETE column of the CATGROUP database table.
|
static int |
CATGRPDESC_KEYWORD_Attr
References the value used for the KEYWORD column of the CATGRPDESC database table
|
static int |
CATGRPDESC_LANGUAGE_ID_Attr
References the value used for the LANGUAGE_ID column of the CATGRPDESC database table
|
static int |
CATGRPDESC_LONGDESCRIPTION_Attr
References the value used for the LONGDESCRIPTION column of the CATGRPDESC database table
|
static int |
CATGRPDESC_NAME_Attr
References the value used for the NAME column of the CATGRPDESC database table
|
static int |
CATGRPDESC_PUBLISHED_Attr
References the value used for the PUBLISHED column of the CATGRPDESC database table
|
static int |
CATGRPDESC_SHORTDESCRIPTION_Attr
References the value used for the SHORTDESCRIPTION column of the CATGRPDESC database table
|
static java.lang.String |
COPYRIGHT |
static int |
COUNT_Operator
References the constant integer value representing the COUNT Operator.
|
static int |
DESC_Operator
References the constant integer value representing the DESC Operator.
|
static int |
EQ_Operator
References the constant integer value representing the EQ Operator.
|
static int |
GE_Operator
References the constant integer value representing the GE Operator.
|
static int |
GENERIC_QueryType
References the constant integer value representing the GENERIC Query Type.
|
static int |
GROUP_BY_Operator
References the constant integer value representing the GROUP_BY Operator.
|
static int |
GT_Operator
References the constant integer value representing the GT Operator.
|
static int |
IN_Operator
References the constant integer value representing the IN Operator.
|
static int |
INVSTVW_QUANTITY_AVAILABLE_Attr
References the value used for the QUANTITY_AVAILABLE column of the INVSTVW database table.
|
static int |
INVSTVW_QUANTITY_MEASURE_Attr
References the value used for the QUANTITY_MEASURE column of the INVSTVW database table.
|
static int |
INVSTVW_STORE_ID_Attr
References the value used for the STORE_ID column of the INVSTVW database table.
|
static int |
IS_NOT_NULL_Operator
References the constant integer value representing the IS_NOT_NULL Operator.
|
static int |
IS_NULL_Operator
References the constant integer value representing the IS_NULL Operator.
|
static int |
ITEM_CatEntryType
References the constant integer value representing the ITEM CatEntry Type.
|
static int |
ITEM_QueryType
References the constant integer value representing the ITEM Query Type.
|
static int |
LE_Operator
References the constant integer value representing the LE Operator.
|
static int |
LEFT_LIKE_Operator
References the constant integer value representing the LEFT_LIKE Operator.
|
static int |
LIKE_Operator
References the constant integer value representing the LIKE Operator.
|
static int |
LISTPRICE_Attr
References the value used for the LISTPRICE column of the Listprice database table
|
static int |
LISTPRICE_CATENTRY_ID_Attr
References the value used for the CATENTRY_ID column of the Listprice database table
|
static int |
LISTPRICE_CURRENCY_Attr
References the value used for the CURRENCY column of the Listprice database table
|
static int |
LISTPRICE_LISTPRICE_Attr
References the value used for the LISTPRICE column of the Listprice database table
|
static int |
LT_Operator
References the constant integer value representing the LT Operator.
|
static int |
MAX_Operator
References the constant integer value representing the MAX Operator.
|
static int |
MIN_Operator
References the constant integer value representing the MIN Operator.
|
static int |
NE_Operator
References the constant integer value representing the NE Operator.
|
static int |
NOT_GT_Operator
References the constant integer value representing the NOT_GT Operator.
|
static int |
NOT_IN_Operator
References the constant integer value representing the NOT_IN Operator.
|
static int |
NOT_LEFT_LIKE_Operator
References the constant integer value representing the NOT_LEFT_LIKE Operator.
|
static int |
NOT_LIKE_Operator
References the constant integer value representing the NOT_LIKE Operator.
|
static int |
NOT_LT_Operator
References the constant integer value representing the NOT_LT Operator.
|
static int |
NOT_RIGHT_LIKE_Operator
References the constant integer value representing the NOT_RIGHT_LIKE Operator.
|
static int |
OFFER_MAXIMUMQUANTITY_Attr
References the value used for the MAXIMUMQUANTITY column of the OFFER database table.
|
static int |
OFFER_MINIMUMQUANTITY_Attr
References the value used for the MINIMUMQUANTITY column of the OFFER database table.
|
static int |
OFFER_OFFER_ID_Attr
References the value used for the OFFER_ID column of the OFFER database table.
|
static int |
OFFER_TRADEPOSCN_ID_Attr
References the value used for the TRADEPOSCN_ID column of the OFFER database table.
|
static int |
OFFERPRICE_CURRENCY_Attr
References the value used for the CURRENCY column of the OFFERPRICE database table
|
static int |
OFFERPRICE_OFFER_ID_Attr
References the value used for the OFFER_ID column of the OFFERPRICE database table.
|
static int |
OFFERPRICE_PRICE_Attr
References the value used for the PRICE column of the OFFERPRICE database table.
|
static int |
OR_Operator
References the constant integer value representing the OR Operator.
|
static int |
ORDER_BY_Operator
References the constant integer value representing the ORDER_BY Operator.
|
static int |
PACKAGE_CatEntryType
References the constant integer value representing the PACKAGE CatEntry Type.
|
static int |
PRODUCT_CatEntryType
References the constant integer value representing the PRODUCT_CatEntry Type.
|
static int |
PRSETCEREL_CATENTRY_ID_Attr
References the value used for the CATENTRY_ID column of the PRSETCEREL database table.
|
static int |
PRSETCEREL_PRODUCTSET_ID_Attr
References the value used for the PRODUCTSET_ID column of the PRSETCEREL database table.
|
static int |
RIGHT_LIKE_Operator
References the constant integer value representing the RIGHT_LIKE Operator.
|
static int |
STDPRICEVW_CATENTRY_ID_Attr
References the value used for the CATENTRY_ID column of the STDPRICEVW database table.
|
static int |
STDPRICEVW_CURRENCY_Attr
References the value used for the CURRENCY column of the STDPRICEVW database table.
|
static int |
STDPRICEVW_PRICE_Attr
References the value used for the PRICE column of the STDPRICEVW database table.
|
static int |
STORECAT_MASTERCATALOG_Attr
References the value used for the MASTERCATALOG column of the STORECAT database table.
|
static int |
STORECAT_STOREENT_ID_Attr
References the value used for the STOREENT_ID column of the STORECAT database table.
|
static int |
STORECATENTRY_STORE_ID_Attr
References the value used for the STORE_ID column of the STORECATENTRY database table.
|
static int |
STORECGRP_STOREENT_ID_Attr
References the value used for the STOREENT_ID column of the STORECGRP database table.
|
static int |
STOREINVENTORY_QUANTITY_Attr
References the value used for the QUANTITY column of the STOREINVENTORY database table
|
static int |
STOREINVENTORY_QUANTITY_MEASURE_Attr
References the value used for the QUANTITY_MEASURE column of the STOREINVENTORY database table
|
static int |
SUM_Operator
References the constant integer value representing the SUM Operator.
|
static int |
TRADEPOSCN_TRADEPOSCN_ID_Attr
References the value used for the TRADEPOSCN_ID column of the TRADEPOSCN database table.
|
static int |
TRADEPOSCN_TYPE_ID_Attr
References the value used for the TYPE_ID column of the TRADEPOSCN database table.
|
static int |
UPPER_Function
References the constant integer value representing the UPPER Function.
|
static int |
USER_ID_Attr
References the value used for the USER_ID.
|
Constructor and Description |
---|
SelectQuery()
Default select query constructor.
|
SelectQuery(int aStoreID,
int aUserID)
SelectQuery constructor with store and user id as arguments.
|
SelectQuery(int inStoreID,
TradingAgreementAccessBean[] inAgreements)
Deprecated.
|
SelectQuery(int inStoreID,
TradingAgreementAccessBean[] inAgreements,
java.lang.Long userId)
SelectQuery constructor with store id, trading agreement access bean and user id as arguments.
|
SelectQuery(com.ibm.commerce.search.base.Query q)
SelectQuery constructor with query as an argument.
|
SelectQuery(TradingAgreementAccessBean[] inAgreements)
Deprecated.
|
SelectQuery(TradingAgreementAccessBean[] inAgreements,
java.lang.Long userId)
SelectQuery constructor with trading agreement access bean and user id as arguments.
|
SelectQuery(java.util.Vector inStoreIDs,
int aUserID)
SelectQuery constructor with a collection of store ids and a user id as arguments.
|
SelectQuery(java.util.Vector inStoreIDs,
TradingAgreementAccessBean[] inAgreements)
Deprecated.
|
SelectQuery(java.util.Vector inStoreIDs,
TradingAgreementAccessBean[] inAgreements,
java.lang.Long userId)
SelectQuery constructor with a collection of store ids, trading agreement access bean and user id as arguments.
|
Modifier and Type | Method and Description |
---|---|
void |
addFilterAttribute(int attribute,
int operator)
Adds a predicate to query Where clause to filter a row, example, TABLE.COLUMN IS NOT NULL.
|
void |
addFilterAttribute(int attribute,
int operator,
int function)
Adds a predicate to query Where clause to filter a row, example FUNCTION(TABLE.COLUMN) IS NULL.
|
void |
addFilterAttribute(int attribute,
int operator,
java.lang.String value)
Adds a predicate to query Where clause to filter a row, example, TABLE.COLUMN LIKE '%VALUE%'.
|
void |
addFilterAttribute(int attribute,
int operator,
java.lang.String value,
int function)
Adds a predicate to query Where clause to filter a row, example FUNCTION(TABLE.COLUMN) LIKE '%VALUE%'.
|
void |
addFilterAttribute(com.ibm.commerce.search.base.Predicate predicate)
Adds a collection of WHERE clause predicates into temporary filter predicate collection.
|
void |
addFilterOperator(int operator)
Adds an operator that combines a set of filter predicates.
|
void |
addGlobalPredicate(com.ibm.commerce.search.base.Predicate p)
Method to insert a predicate that will be applied to entire query like BUYABLE/PUBLISHABLE/LANGUAGE_ID.
|
void |
addGroupByAttribute(int attribute)
To set group by operator
The attribute parameter values are obtained from the corresponding constants defined within this class.
|
void |
addOrderByAttribute(int attribute,
int operator)
To set order by operator
The attribute and operator parameter values are obtained from the corresponding constants defined within this class.
|
void |
addRule()
Adds a set of predicates to a Query.
|
void |
addRule(int aQueryType)
Adds a set of predicate to Query.
|
void |
addSelectAttribute(int attribute,
int operator)
Adds a predicate to query Where clause, example, TABLE.COLUMN IS NOT NULL.
|
void |
addSelectAttribute(int attribute,
int operator,
int function)
Adds a predicate to query Where clause, example FUNCTION(TABLE.COLUMN) IS NULL.
|
void |
addSelectAttribute(int attribute,
int operator,
java.lang.String value)
Adds a predicate to query Where clause, example, TABLE.COLUMN LIKE '%VALUE%'.
|
void |
addSelectAttribute(int attribute,
int operator,
java.lang.String value,
int function)
Adds a predicate to query Where clause, example FUNCTION(TABLE.COLUMN) LIKE '%VALUE%'.
|
void |
addSelectAttribute(java.lang.String attribute,
int operator,
java.lang.String value)
Deprecated.
|
void |
addSelectAttribute(java.lang.String attribute,
int operator,
java.lang.String value,
int attrValueType,
java.lang.String languageId,
java.lang.String prodType)
Adds a Rich attribute predicate.
|
void |
addSelectAttribute(java.lang.String attribute,
int operator,
java.lang.String value,
int attrValueType,
java.lang.String languageId,
java.lang.String prodType,
int function)
Adds a Rich attribute predicate.
|
void |
addSelectAttribute(java.lang.String attribute,
int operator,
java.lang.String value,
java.lang.String languageId,
java.lang.String prodType)
|
void |
addSelectAttribute(java.lang.String attribute,
int operator,
java.lang.String value,
java.lang.String languageId,
java.lang.String prodType,
int function)
|
void |
addSelectOperand(com.ibm.commerce.search.base.Predicate predicate)
Adds a collection of WHERE clause predicates into temporary select set predicate collection.
|
void |
addSelectOperator(int operator)
Adds an operator that combines a set of filter predicates.
|
java.util.Vector |
execute()
Executes a set of catalog search query and retrieves all non duplicate
catentry ids that satisfy these query. |
java.util.Vector |
execute(int maxResults)
Executes a set of catalog search query and retrieves certain number (specified in
maxResults ) of non duplicate catentry ids that satisfy these query. |
java.util.Vector |
execute(int numProductRequested,
boolean randomStatus)
Executes a set of catalog search query and retrieves at random a certain number (specified in numProductRequested) of non duplicate
catentry ids that satisfy these query. |
java.util.Vector |
execute(int maxResults,
com.ibm.commerce.base.objects.Cursor aCursor)
Executes a set of catalog search query and retrieves certain number (specified in
maxResults ) of non duplicate catentry ids that satisfy these query. |
java.lang.Long |
getLongUserId()
Returns the user id.
|
com.ibm.commerce.search.base.Predicate |
getPredicate()
Returns the selectSet and filterSet predicate.
|
java.util.Vector |
getRules()
Returns the query collection.
|
java.lang.Integer |
getStoreID()
Returns the store id.
|
java.util.Vector |
getStoreIDs()
Returns the collection of store ids.
|
java.lang.Integer |
getUserID()
Returns the user id.
|
void |
reset()
Re-initialize filterSet and selectSet variables
|
void |
setDistinct()
To set distinct operator
|
void |
setDistinct(boolean distinctFlag)
To set distinct operator.
|
void |
setLongUserId(java.lang.Long newLongUserId)
To set the user id.
|
void |
setRules(java.util.Vector newRules)
To set the query collection.
|
void |
setStoreID(int newStoreID)
To set the store id.
|
void |
setStoreIDs(java.util.Vector newStoreIDs)
To set the collection of store ids.
|
void |
setUserID(int newUserID)
To set the user id.
|
public static final java.lang.String COPYRIGHT
public static final int LISTPRICE_LISTPRICE_Attr
public static final int LISTPRICE_Attr
public static final int LISTPRICE_CURRENCY_Attr
public static final int LISTPRICE_CATENTRY_ID_Attr
public static final int STOREINVENTORY_QUANTITY_Attr
public static final int STOREINVENTORY_QUANTITY_MEASURE_Attr
public static final int CATGRPDESC_NAME_Attr
public static final int CATGRPDESC_LANGUAGE_ID_Attr
public static final int CATGRPDESC_LONGDESCRIPTION_Attr
public static final int CATGRPDESC_SHORTDESCRIPTION_Attr
public static final int CATGRPDESC_KEYWORD_Attr
public static final int CATGRPDESC_PUBLISHED_Attr
public static final int CATENTRY_SKU_Attr
public static final int CATENTRY_CATENTRY_ID_Attr
public static final int CATENTRY_ID_Attr
public static final int CATENTRY_BUYABLE_Attr
public static final int CATENTRY_ONAUCTION_Attr
public static final int CATENTRY_ONSPECIAL_Attr
public static final int CATENTRY_PARTNUMBER_Attr
public static final int CATENTRY_MFNAME_Attr
public static final int CATENTRY_MFPARTNUMBER_Attr
public static final int CATENTRY_MARKFORDELETE_Attr
public static final int CATENTRY_LASTUPDATE_Attr
public static final int CATENTDESC_NAME_Attr
public static final int CATENTDESC_AVAILABILITY_DATE_Attr
public static final int CATENTDESC_LANGUAGE_ID_Attr
public static final int CATENTDESC_PUBLISHED_Attr
public static final int CATENTDESC_SHORT_DESC_Attr
public static final int CATENTDESC_CATENTRY_ID_Attr
public static final int CATENTDESC_THUMBNAIL_Attr
public static final int CATENTDESC_LONGDESCRIPTION_Attr
public static final int CATENTDESC_SHORTDESCRIPTION_Attr
public static final int CATENTDESC_PARTNUMBER_Attr
public static final int CATENTDESC_KEYWORD_Attr
public static final int CATENTDESC_AVAILABLE_Attr
public static final int STORECATENTRY_STORE_ID_Attr
public static final int USER_ID_Attr
public static final int CATENTREL_CATENTRY_ID_CHILD_Attr
public static final int CATENTREL_CATENTRY_ID_PARENT_Attr
public static final int CATENTREL_CATREL_TYPE_ID_Attr
public static final int ATTRIBUTE_NAME_Attr
public static final int ATTRIBUTE_LANGUAGE_ID_Attr
public static final int ATTRIBUTE_CATENTRY_ID_Attr
public static final int ATTRIBUTE_ATTRIBUTE_ID_Attr
public static final int ATTRVALUE_LANGUAGE_ID_Attr
public static final int ATTRVALUE_NAME_Attr
public static final int ATTRVALUE_CATENTRY_ID_Attr
public static final int ATTRVALUE_STRINGVALUE_Attr
public static final int ATTRVALUE_ATTRIBUTE_ID_Attr
public static final int ATTRVALUE_FLOATVALUE_Attr
public static final int ATTRVALUE_INTEGERVALUE_Attr
public static final int CATGPENREL_CATGROUP_ID_Attr
public static final int CATGPENREL_CATENTRY_ID_Attr
public static final int CATGPENREL_CATALOG_ID_Attr
public static final int CATGROUP_CATGROUP_ID_Attr
public static final int CATGROUP_MARKFORDELETE_Attr
public static final int CATGROUP_LASTUPDATE_Attr
public static final int CATGROUP_IDENTIFIER_ID_Attr
public static final int CATGROUP_IDENTIFIER_Attr
public static final int PRSETCEREL_PRODUCTSET_ID_Attr
public static final int PRSETCEREL_CATENTRY_ID_Attr
public static final int OFFERPRICE_PRICE_Attr
public static final int OFFERPRICE_OFFER_ID_Attr
public static final int OFFERPRICE_CURRENCY_Attr
public static final int OFFER_TRADEPOSCN_ID_Attr
public static final int OFFER_OFFER_ID_Attr
public static final int OFFER_MAXIMUMQUANTITY_Attr
public static final int OFFER_MINIMUMQUANTITY_Attr
public static final int TRADEPOSCN_TRADEPOSCN_ID_Attr
public static final int TRADEPOSCN_TYPE_ID_Attr
public static final int INVSTVW_QUANTITY_AVAILABLE_Attr
public static final int INVSTVW_QUANTITY_MEASURE_Attr
public static final int INVSTVW_STORE_ID_Attr
public static final int STDPRICEVW_PRICE_Attr
public static final int STDPRICEVW_CATENTRY_ID_Attr
public static final int STDPRICEVW_CURRENCY_Attr
public static final int CATALOG_CATALOG_ID_Attr
public static final int CATALOG_DESCRIPTION_Attr
public static final int CATALOG_IDENTIFIER_Attr
public static final int CATALOGDSC_NAME_Attr
public static final int CATALOGDSC_SHORTDESCRIPTION_Attr
public static final int CATALOGDSC_LANGUAGE_ID_Attr
public static final int STORECAT_MASTERCATALOG_Attr
public static final int STORECAT_STOREENT_ID_Attr
public static final int STORECGRP_STOREENT_ID_Attr
public static final int OR_Operator
public static final int AND_Operator
public static final int IS_NULL_Operator
public static final int IS_NOT_NULL_Operator
public static final int LIKE_Operator
public static final int LEFT_LIKE_Operator
public static final int RIGHT_LIKE_Operator
public static final int NOT_LIKE_Operator
public static final int NOT_LEFT_LIKE_Operator
public static final int NOT_RIGHT_LIKE_Operator
public static final int EQ_Operator
public static final int GT_Operator
public static final int GE_Operator
public static final int LT_Operator
public static final int LE_Operator
public static final int NE_Operator
public static final int IN_Operator
public static final int NOT_IN_Operator
public static final int NOT_GT_Operator
public static final int NOT_LT_Operator
public static final int GROUP_BY_Operator
public static final int ORDER_BY_Operator
public static final int COUNT_Operator
public static final int ASC_Operator
public static final int DESC_Operator
public static final int MIN_Operator
public static final int MAX_Operator
public static final int SUM_Operator
public static final int AVG_Operator
public static final int UPPER_Function
public static final int GENERIC_QueryType
public static final int CATENTRY_SKU_QueryType
public static final int ANY_QueryType
public static final int ITEM_QueryType
public static final int BOTH_QueryType
public static final int ITEM_CatEntryType
public static final int BUNDLE_CatEntryType
public static final int PACKAGE_CatEntryType
public static final int PRODUCT_CatEntryType
public static final java.lang.String ALL_Item
public SelectQuery()
public SelectQuery(TradingAgreementAccessBean[] inAgreements)
SelectQuery(TradingAgreementAccessBean[] inAgreements, Long userId)
.public SelectQuery(TradingAgreementAccessBean[] inAgreements, java.lang.Long userId)
inAgreements
- The trading agreement access bean array - used in entitlementuserID
- The user id - used in the queries.public SelectQuery(int inStoreID, TradingAgreementAccessBean[] inAgreements)
SelectQuery(int inStoreID, TradingAgreementAccessBean[] inAgreements, Long userId)
.public SelectQuery(int inStoreID, TradingAgreementAccessBean[] inAgreements, java.lang.Long userId)
storeID
- The store id - used in the queries.inAgreements
- The trading agreement access bean array - used in entitlementuserID
- The user id of type long - used in the queries.public SelectQuery(int aStoreID, int aUserID)
storeID
- The store id - used in the queries.userID
- The user id - used in the queries.public SelectQuery(com.ibm.commerce.search.base.Query q)
q
- The query object.public SelectQuery(java.util.Vector inStoreIDs, TradingAgreementAccessBean[] inAgreements)
SelectQuery(Vector inStoreIDs, TradingAgreementAccessBean[] inAgreements, Long userId)
.public SelectQuery(java.util.Vector inStoreIDs, TradingAgreementAccessBean[] inAgreements, java.lang.Long userId)
instoreIDs
- A collection of store ids - used in the queries.inAgreements
- The trading agreement access bean array - used in entitlementuserID
- The user id of type long- used in the queries.public SelectQuery(java.util.Vector inStoreIDs, int aUserID)
storeID
- The store id collection - used in the queries.userID
- The user id - used in the queries.public void addFilterAttribute(int attribute, int operator) throws java.lang.Exception
NOTLIKE
.
The attribute and operator parameter values are obtained from the corresponding constants defined within this class.The
- static integer constant equivalent of a column name.The
- static integer constant equivalent of an operator.java.lang.Exception
public void addFilterAttribute(int attribute, int operator, int function) throws java.lang.Exception
NOTLIKE
.
The attribute, operator, and function parameter values are obtained from the corresponding constants defined within this class.The
- static integer constant equivalent of a column name.The
- static integer constant equivalent of an operator.The
- static integer constant equivalent of a function. At present only UPPER function is supported.java.lang.Exception
public void addFilterAttribute(int attribute, int operator, java.lang.String value) throws java.lang.Exception
NOTLIKE
.
The attribute and operator parameter values are obtained from the corresponding constants defined within this class.The
- static integer constant equivalent of a column name.The
- static integer constant equivalent of an operator.The
- value to be filtered from the database.java.lang.Exception
public void addFilterAttribute(int attribute, int operator, java.lang.String value, int function) throws java.lang.Exception
NOTLIKE
.
The attribute, operator, and function parameter values are obtained from the corresponding constants defined within this class.The
- static integer constant equivalent of a column name.The
- static integer constant equivalent of an operator.The
- value to be filtered from the database.The
- static integer constant equivalent of a function. At present only UPPER function is supported.java.lang.Exception
public void addFilterAttribute(com.ibm.commerce.search.base.Predicate predicate) throws java.lang.Exception
A
- collection of WHERE clause predicatesjava.lang.Exception
public void addFilterOperator(int operator)
The
- static integer constant equivalent of an operator.public void addGlobalPredicate(com.ibm.commerce.search.base.Predicate p)
ANDedwith the selectSet/filterSet.
public void addGroupByAttribute(int attribute) throws java.lang.Exception
java.lang.Exception
public void addOrderByAttribute(int attribute, int operator) throws java.lang.Exception
java.lang.Exception
public void addRule()
public void addRule(int aQueryType)
aQueryType
- The type of result to be retrieved by the query. The search interface can retrieve only Products, only Items or Both.public void addSelectAttribute(int attribute, int operator) throws java.lang.Exception
The
- static integer constant equivalent of a column name.The
- static integer constant equivalent of an operator.java.lang.Exception
public void addSelectAttribute(int attribute, int operator, int function) throws java.lang.Exception
The
- static integer constant equivalent of a column name.The
- static integer constant equivalent of an operator.The
- static integer constant equivalent of a function. At present only UPPER function is supported.java.lang.Exception
public void addSelectAttribute(int attribute, int operator, java.lang.String value) throws java.lang.Exception
The
- static integer constant equivalent of a column name.The
- static integer constant equivalent of an operator.The
- value to be filtered from the database.java.lang.Exception
public void addSelectAttribute(int attribute, int operator, java.lang.String value, int function) throws java.lang.Exception
NOTLIKE
.
The attribute, operator, and function parameter values are obtained from the corresponding constants defined within this class.The
- static integer constant equivalent of a column name.The
- static integer constant equivalent of an operator.The
- value to be filtered from the database.The
- static integer constant equivalent of a function. At present only UPPER function is supported.java.lang.Exception
public void addSelectAttribute(java.lang.String attribute, int operator, java.lang.String value) throws java.lang.Exception
addSelectAttribute(int attribute, int operator, String value)
.AttrValue
column.
The attribute and operator parameter values are obtained from the corresponding constants defined within this class.attribute
- An attribute defined in Attribute table, for example Color, Size.operator
- The static integer operator constant.value
- The value of an attribute defined in AttrValue
table, for example Red, Length = 32.java.lang.Exception
public void addSelectAttribute(java.lang.String attribute, int operator, java.lang.String value, int attrValueType, java.lang.String languageId, java.lang.String prodType) throws java.lang.Exception
AttrValue
column.
The attribute and operator parameter values are obtained from the corresponding constants defined within this class.attribute
- A search attribute, for example Color, Size.operator
- The static integer operator constant.value
- The value of a search attribute, for example Red, Length = 32.attrValueType
- The column in AttrValue
table that must be used to search for the value, example Integervalue, Stringvalue, Floatvalue or Name.languageId
- The language id that must be used for searching the rich attribute.prodType
- The Parent - Child relationship defined in CATENREL
table. At present this method only supports Product_Item
or NULL.java.lang.Exception
public void addSelectAttribute(java.lang.String attribute, int operator, java.lang.String value, int attrValueType, java.lang.String languageId, java.lang.String prodType, int function) throws java.lang.Exception
AttrValue
column.
The attribute, operator, and function parameter values are obtained from the corresponding constants defined within this class.attribute
- A search attribute, for example Color, Size.operator
- The static integer operator constant.value
- The value of a search attribute, for example Red, Length = 32.attrValueType
- The column in AttrValue
table that must be used to search for the value, example Integervalue, Stringvalue, Floatvalue or Name.languageId
- The language id that must be used for searching the rich attribute.prodType
- The Parent - Child relationship defined in CATENREL
table. At present this method only supports Product_Item
or NULL.function
- The static integer operator for UPPER functionjava.lang.Exception
public void addSelectAttribute(java.lang.String attribute, int operator, java.lang.String value, java.lang.String languageId, java.lang.String prodType) throws java.lang.Exception
addSelectAttribute(String attribute, int operator, String value, int attrValueType, String languageId, String prodType, int function)
.AttrValue
column.
The attribute, operator, and function parameter values are obtained from the corresponding constants defined within this class.attribute
- A search attribute, for example Color, Size.operator
- The static integer operator constant.value
- The value of a search attribute, for example Red, Length = 32.languageId
- The language id that must be used for searching the rich attribute.prodType
- The Parent - Child relationship defined in CATENREL
table. At present this method only supports Product_Item
or NULL.java.lang.Exception
public void addSelectAttribute(java.lang.String attribute, int operator, java.lang.String value, java.lang.String languageId, java.lang.String prodType, int function) throws java.lang.Exception
addSelectAttribute(String attribute, int operator, String value, int attrValueType, String languageId, String prodType, int function)
.AttrValue
column.
The attribute, operator, and function parameter values are obtained from the corresponding constants defined within this class.attribute
- A search attribute, for example Color, Size.operator
- The static integer operator constant.value
- The value of a search attribute, for example Red, Length = 32.attrValueType
- The column in AttrValue
table that must be used to search for the value, example Integervalue, Stringvalue, Floatvalue or Name.languageId
- The language id that must be used for searching the rich attribute.prodType
- The Parent - Child relationship defined in CATENREL
table. At present this method only supports Product_Item
or NULL.function
- The static integer operator for UPPER functionjava.lang.Exception
public void addSelectOperand(com.ibm.commerce.search.base.Predicate predicate) throws java.lang.Exception
predicate
- A collection of predicates.java.lang.Exception
public void addSelectOperator(int operator)
The
- static integer constant equivalent of an operator.public java.util.Vector execute() throws java.lang.Exception
catentry
ids that satisfy these query.catentry
ids.java.lang.Exception
public java.util.Vector execute(int maxResults) throws java.lang.Exception
maxResults
) of non duplicate catentry
ids that satisfy these query. This version does not use cursor.maxResults
- The number of results to be retrieved.catentry
ids.java.lang.Exception
public java.util.Vector execute(int maxResults, com.ibm.commerce.base.objects.Cursor aCursor) throws java.lang.Exception
maxResults
) of non duplicate catentry
ids that satisfy these query. This version uses cursor.maxResults
- The number of results to be retrieved.aCursor
- The cursor object.catentry
ids.java.lang.Exception
public java.util.Vector execute(int numProductRequested, boolean randomStatus) throws java.lang.Exception
catentry
ids that satisfy these query.The
- total number of catentry
ids to be returned.random
- true if results must be random, false otherwise.catentry
ids.java.lang.Exception
public java.lang.Long getLongUserId()
public com.ibm.commerce.search.base.Predicate getPredicate() throws java.lang.Exception
java.lang.Exception
public java.util.Vector getRules()
public java.lang.Integer getStoreID()
public java.util.Vector getStoreIDs()
public java.lang.Integer getUserID()
public void reset()
public void setDistinct()
public void setDistinct(boolean distinctFlag)
distinctFlag
- java.lang.Boolean. The value to set for the distinct operator.public void setLongUserId(java.lang.Long newLongUserId)
newLongUserId
- java.lang.Long. The user ID to set.public void setRules(java.util.Vector newRules)
newRules
- java.util.Vector. the query collection to set.public void setStoreID(int newStoreID)
newStoreID
- int. The store ID to set.public void setStoreIDs(java.util.Vector newStoreIDs)
newStoreIDs
- java.util.Vector. The vector of store IDs.public void setUserID(int newUserID)
newUserID
- int. The user ID.