com.ibm.commerce.search.rulequery
Class RuleQuery

java.lang.Object
  |
  +--com.ibm.commerce.search.rulequery.RuleQuery
Direct Known Subclasses:
CustomQuery

public class RuleQuery
extends java.lang.Object

Search interface that is used to construct queries to search a catalog. The query will return catentry ids that match search criteria. This class provides a set of methods where each method can used to construct a predicate (search criteria specified in WHERE clause of an SQL). The search interface expects the predicates to be in post-fix format. For example post fix equaivalent of A and B and C or D or E is ABC and D or E or where A,B,C,D and E are individual predicates. Note the post-fix format is not strictly binary i.e. there can be more than two operands related to an operator. Due to this flexibility there are some restrictions on how to arrange the predicates and it is the responsibility of the user to arrange the predicates in correct order.


Field Summary
protected   TradingAgreementAccessBean[] agreements
           
static int AND_Operator
           
static int ANY_QueryType
           
static int ASC_Operator
           
static int ATTRIBUTE_ATTRIBUTE_ID_Attr
           
static int ATTRIBUTE_CATENTRY_ID_Attr
           
static int ATTRIBUTE_LANGUAGE_ID_Attr
           
static int ATTRIBUTE_NAME_Attr
           
static int ATTRVALUE_ATTRIBUTE_ID_Attr
           
static int ATTRVALUE_CATENTRY_ID_Attr
           
static int ATTRVALUE_FLOATVALUE_Attr
           
static int ATTRVALUE_INTEGERVALUE_Attr
           
static int ATTRVALUE_LANGUAGE_ID_Attr
           
static int ATTRVALUE_NAME_Attr
           
static int ATTRVALUE_STRINGVALUE_Attr
           
static int AVG_Operator
           
static int BOTH_QueryType
           
static int BUNDLE_CatEntryType
           
static int CATALOG_CATALOG_ID_Attr
           
static int CATALOG_DESCRIPTION_Attr
           
static int CATALOG_IDENTIFIER_Attr
           
static int CATALOGDSC_LANGUAGE_ID_Attr
           
static int CATALOGDSC_NAME_Attr
           
static int CATALOGDSC_SHORTDESCRIPTION_Attr
           
static int CATENTDESC_AVAILABILITY_DATE_Attr
           
static int CATENTDESC_AVAILABLE_Attr
           
static int CATENTDESC_CATENTRY_ID_Attr
           
static int CATENTDESC_KEYWORD_Attr
           
static int CATENTDESC_LANGUAGE_ID_Attr
           
static int CATENTDESC_LONGDESCRIPTION_Attr
           
static int CATENTDESC_NAME_Attr
           
static int CATENTDESC_PARTNUMBER_Attr
           
static int CATENTDESC_PUBLISHED_Attr
           
static int CATENTDESC_SHORT_DESC_Attr
           
static int CATENTDESC_SHORTDESCRIPTION_Attr
           
static int CATENTDESC_THUMBNAIL_Attr
           
static int CATENTREL_CATENTRY_ID_CHILD_Attr
           
static int CATENTREL_CATENTRY_ID_PARENT_Attr
           
static int CATENTREL_CATREL_TYPE_ID_Attr
           
static int CATENTRY_BUYABLE_Attr
           
static int CATENTRY_CATENTRY_ID_Attr
           
static int CATENTRY_ID_Attr
           
static int CATENTRY_LASTUPDATE_Attr
           
static int CATENTRY_MARKFORDELETE_Attr
           
static int CATENTRY_MFNAME_Attr
           
static int CATENTRY_MFPARTNUMBER_Attr
           
static int CATENTRY_ONAUCTION_Attr
           
static int CATENTRY_ONSPECIAL_Attr
           
static int CATENTRY_PARTNUMBER_Attr
           
static int CATENTRY_SKU_Attr
           
static int CATENTRY_SKU_QueryType
           
static int CATGPENREL_CATALOG_ID_Attr
           
static int CATGPENREL_CATENTRY_ID_Attr
           
static int CATGPENREL_CATGROUP_ID_Attr
           
static int CATGROUP_CATGROUP_ID_Attr
           
static int CATGROUP_IDENTIFIER_Attr
           
static int CATGROUP_IDENTIFIER_ID_Attr
           
static int CATGROUP_LASTUPDATE_Attr
           
static int CATGROUP_MARKFORDELETE_Attr
           
static int CATGRPDESC_KEYWORD_Attr
           
static int CATGRPDESC_LANGUAGE_ID_Attr
           
static int CATGRPDESC_LONGDESCRIPTION_Attr
           
static int CATGRPDESC_NAME_Attr
           
static int CATGRPDESC_PUBLISHED_Attr
           
static int CATGRPDESC_SHORTDESCRIPTION_Attr
           
static java.lang.String COPYRIGHT
           
static int COUNT_Operator
           
 boolean defaultResultSelection
           
static int DESC_Operator
           
static int DYNAMICKIT_CatEntryType
           
static int EQ_Operator
           
protected  Predicate filterSet
           
protected  java.util.Vector filterSetTmp
           
static int GE_Operator
           
static int GENERIC_QueryType
           
protected  Predicate globalPredicate
           
static int GROUP_BY_Operator
           
static int GT_Operator
           
static int IN_Operator
           
protected   AttributeInfoDictionary infoDictionary
           
protected  java.util.Hashtable infoMap
           
static int INVSTVW_QUANTITY_AVAILABLE_Attr
           
static int INVSTVW_QUANTITY_MEASURE_Attr
           
static int INVSTVW_STORE_ID_Attr
           
static int IS_NOT_NULL_Operator
           
static int IS_NULL_Operator
           
 boolean isAll
           
 boolean isBundle
           
 boolean isDynamicKit
           
 boolean isItem
           
 boolean isPackage
           
 boolean isProduct
           
static int ITEM_CatEntryType
           
static int ITEM_QueryType
           
static int LE_Operator
           
static int LEFT_LIKE_Operator
           
static int LIKE_Operator
           
static int LISTPRICE_Attr
           
static int LISTPRICE_CATENTRY_ID_Attr
           
static int LISTPRICE_CURRENCY_Attr
           
static int LISTPRICE_LISTPRICE_Attr
           
static int LT_Operator
           
static int MAX_Operator
           
protected  Query mcQuery
           
static int MIN_Operator
           
static int NE_Operator
           
static int NOT_GT_Operator
           
static int NOT_IN_Operator
           
static int NOT_LEFT_LIKE_Operator
           
static int NOT_LIKE_Operator
           
static int NOT_LT_Operator
           
static int NOT_RIGHT_LIKE_Operator
           
static int OFFER_MAXIMUMQUANTITY_Attr
           
static int OFFER_MINIMUMQUANTITY_Attr
           
static int OFFER_OFFER_ID_Attr
           
static int OFFER_TRADEPOSCN_ID_Attr
           
static int OFFERPRICE_CURRENCY_Attr
           
static int OFFERPRICE_OFFER_ID_Attr
           
static int OFFERPRICE_PRICE_Attr
           
static int OR_Operator
           
static int ORDER_BY_Operator
           
static int PACKAGE_CatEntryType
           
static int PRODUCT_CatEntryType
           
protected  java.util.Vector productSetInList
           
protected  java.util.Vector productSetOutList
           
static int PRSETCEREL_CATENTRY_ID_Attr
           
static int PRSETCEREL_PRODUCTSET_ID_Attr
           
protected  java.lang.String queryString
           
static int RIGHT_LIKE_Operator
           
protected  Predicate selectSet
           
protected  java.util.Vector selectSetTmp
           
static int STDPRICEVW_CATENTRY_ID_Attr
           
static int STDPRICEVW_CURRENCY_Attr
           
static int STDPRICEVW_PRICE_Attr
           
static int STORECAT_MASTERCATALOG_Attr
           
static int STORECAT_STOREENT_ID_Attr
           
static int STORECATENTRY_STORE_ID_Attr
           
static int STORECGRP_STOREENT_ID_Attr
           
static int STOREINVENTORY_QUANTITY_Attr
           
static int STOREINVENTORY_QUANTITY_MEASURE_Attr
           
static int SUM_Operator
           
static int TRADEPOSCN_TRADEPOSCN_ID_Attr
           
static int TRADEPOSCN_TYPE_ID_Attr
           
static int UPPER_Function
           
static int USER_ID_Attr
           
 
Constructor Summary
RuleQuery()
          RuleQuery constructor with no arguments.
RuleQuery(int inStoreID, int inUserID)
          Rule query constructor with store and user id as arguments.
RuleQuery(int inStoreID, TradingAgreementAccessBean[] agreements)
          Deprecated.  
RuleQuery(int inStoreID, TradingAgreementAccessBean[] agreements, java.lang.Long userId)
          RuleQuery constructor with store id, Trading agreement access bean and user id as arguments.
RuleQuery( TradingAgreementAccessBean[] agreements)
          Deprecated.  
RuleQuery( TradingAgreementAccessBean[] agreements, java.lang.Long userId)
          RuleQuery constructor with Trading Agreement Access bean and user id as arguments.
RuleQuery(java.util.Vector inStoreIDs, int inUserID)
          Rule query constructor with multiple store id and single user id as arguments.
RuleQuery(java.util.Vector inStoreIDs, TradingAgreementAccessBean[] agreements)
          Deprecated.  
RuleQuery(java.util.Vector inStoreIDs, TradingAgreementAccessBean[] agreements, java.lang.Long userId)
          RuleQuery constructor with multiple store id, Trading agreement access bean and user id as arguments.
 
Method Summary
protected  Attribute addAttributeFunction(Attribute attr, int function)
          Adds function to a table column.
 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 addFilterOperand(Attribute attr)
          Adds a WHERE clause predicate into temporary filter predicate collection.
 void addFilterOperator(int operator)
          Adds an operator that combines a set of filter predicates.
protected  Operator addFilterOperatorType(int operType)
          Maps constants that represent an filter operator to actual operator.
 void addGlobalPredicate(Predicate globalPredicate)
          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
 void addGroupByAttribute(java.lang.String attribute)
          To add valid result set.
protected  Operator addOperatorType(int operType)
          Maps constants that represent an operator to actual operator.
protected  Operator addOperatorType(java.lang.String newOperType)
          Insert the method's description here.
 void addOrderByAttribute(int attribute, int operator)
          To set order by operator
 void addOrderByAttribute(java.lang.String attribute, java.lang.String operator)
          To set order by operator
 void addOrderByAttribute1(int attribute, int operator)
          To set order by operator
 void addResultAttribute(int resultAttribute)
          To add valid result set.
 void addResultAttribute(java.lang.String attribute)
          To add valid result set.
 void addResultAttribute(java.lang.String attribute, java.lang.String operator)
          To add valid result set.
 void addRule()
          Adds an set of predicates to a Query.
 void addRule(int aQueryType)
          Deprecated.  
 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)
          Deprecated.  
 void addSelectAttribute(java.lang.String attribute, int operator, java.lang.String value, java.lang.String languageId, java.lang.String prodType, int function)
          Deprecated.  
 void addSelectOperand(Attribute attr)
          Adds a WHERE clause predicate into temporary select set predicate collection.
 void addSelectOperator(int operator)
          Adds an operator that combines a set of filter predicates.
protected  Predicate buildExtendedQueryType(Predicate p)
          New return types can be added in this method
protected  Predicate buildPredicate()
          Assembles the complete WHERE clause.
protected  Predicate buildQueryType(Predicate p)
          Define product types returned in result set
protected  Predicate buildQueryTypeConstraint(java.lang.String beanType, Predicate p)
          Insert the method's description here.
protected  java.lang.String evaluateSelectivity(SmartQuery query)
          Evaluates a sub query in WHERE clause.
 java.util.Vector execute()
          Executes catalog search query and retrieves all the catentry ids that satisfy the query.
 java.util.Vector execute(Cursor aCursor)
          Executes catalog search query and retrieves a set of catentry id between a start value and end value specified in the cursor object.
protected  boolean findAttribute(Predicate p, java.lang.String s)
          This method can be used to find a particular column s in Predicate p.
protected  java.lang.String findAttributeInfoName(int attrId)
          Maps a static integer constant that defines a column name to the singleton class name that describes the column name, its data type, and the table it belong to.
protected  java.lang.String findAttributeInfoName(java.lang.String attrStringRef)
          Insert the method's description here.
 java.util.Vector findStorePaths(int sid)
          This method can be used to find store paths for a store id
 java.lang.Integer getCatgrpSchemaType()
          Do not modify.
protected  Predicate getEntitlementPredicate()
          Constructs the entitlement predicate.
protected  com.ibm.commerce.search.base.Predicate getGlobalPredicate()
          Do not modify.
protected  AttributeInfo getInstanceOfAttrInfoByClassName(java.lang.String classname)
          Given a class name in com.ibm.commerce.search.catalog package, gets the instance of the class.
 java.lang.Long getLongUserId()
          Do not modify.
 com.ibm.commerce.search.base.Query getMcQuery()
          Do not modify.
 Predicate getPredicate()
          Do not modify.
 int getQueryType()
          Do not modify.
 java.lang.Integer getRASchemaType()
          Do not modify.
 java.util.Vector getResultSet()
          Do not modify.
 int getSelectivitySize()
          Do not modify.
 java.util.Vector getSourceTables()
          Do not modify.
 java.lang.Integer getStoreID()
          Do not modify.
 java.util.Vector getStoreIDs()
          Do not modify.
 java.lang.Integer getUserID()
          Do not modify.
 void initialize()
          Initialize dictionary containing meta data for attribute information
 boolean isPriceSummary()
          Returns if there is summary table for price or not true if there is summary table false otherwise
 void reset()
          Re-initialize filterSet and selectSet variables
 void resetQueryType()
          Method to reset queryType to override defualt.
 void setAgreements( TradingAgreementAccessBean[] newAgreements)
          Do not modify.
 void setCatgrpSchemaType(java.lang.Integer newCatgrpSchemaType)
          Do not modify.
 void setDefaultResultSelection()
          To set default result selection variable.
 void setDistinct()
          To set disctict operator
 void setDistinct(boolean distinctFlag)
          To set disctict operator.
protected  void setGlobalPredicate(Predicate globalPredicate)
          Set the globalPredicate variable
 void setLongUserId(java.lang.Long newLongUserId)
          Deprecated.  
 void setRASchemaType(java.lang.Integer newRASchemaType)
          Do not modify.
 void setSelectivitySize(int newSelectivitySize)
          Set selectivity size
 void setStoreID(java.lang.Integer newStoreID)
          Deprecated.  
 void setStoreIDs(java.util.Vector newStoreIDs)
          Deprecated.  
 void setUserID(int newUserID)
          Deprecated.  
 java.lang.String toString()
          Returns query string
protected  Predicate translatePredicate(int key, Predicate p)
          This method does predicate translation based on the key passed.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail
public static final java.lang.String COPYRIGHT
See Also:
Constant Field Values

productSetInList

protected java.util.Vector productSetInList

productSetOutList

protected java.util.Vector productSetOutList

agreements

protected TradingAgreementAccessBean[] agreements

selectSet

protected Predicate selectSet

filterSet

protected Predicate filterSet

globalPredicate

protected Predicate globalPredicate

selectSetTmp

protected java.util.Vector selectSetTmp

filterSetTmp

protected java.util.Vector filterSetTmp

mcQuery

protected Query mcQuery

queryString

protected java.lang.String queryString

LISTPRICE_LISTPRICE_Attr

public static final int LISTPRICE_LISTPRICE_Attr
See Also:
Constant Field Values

LISTPRICE_Attr

public static final int LISTPRICE_Attr
See Also:
Constant Field Values

LISTPRICE_CURRENCY_Attr

public static final int LISTPRICE_CURRENCY_Attr
See Also:
Constant Field Values

LISTPRICE_CATENTRY_ID_Attr

public static final int LISTPRICE_CATENTRY_ID_Attr
See Also:
Constant Field Values

STOREINVENTORY_QUANTITY_Attr

public static final int STOREINVENTORY_QUANTITY_Attr
See Also:
Constant Field Values

STOREINVENTORY_QUANTITY_MEASURE_Attr

public static final int STOREINVENTORY_QUANTITY_MEASURE_Attr
See Also:
Constant Field Values

CATGRPDESC_NAME_Attr

public static final int CATGRPDESC_NAME_Attr
See Also:
Constant Field Values

CATGRPDESC_LANGUAGE_ID_Attr

public static final int CATGRPDESC_LANGUAGE_ID_Attr
See Also:
Constant Field Values

CATGRPDESC_LONGDESCRIPTION_Attr

public static final int CATGRPDESC_LONGDESCRIPTION_Attr
See Also:
Constant Field Values

CATGRPDESC_SHORTDESCRIPTION_Attr

public static final int CATGRPDESC_SHORTDESCRIPTION_Attr
See Also:
Constant Field Values

CATGRPDESC_KEYWORD_Attr

public static final int CATGRPDESC_KEYWORD_Attr
See Also:
Constant Field Values

CATGRPDESC_PUBLISHED_Attr

public static final int CATGRPDESC_PUBLISHED_Attr
See Also:
Constant Field Values

CATENTRY_SKU_Attr

public static final int CATENTRY_SKU_Attr
See Also:
Constant Field Values

CATENTRY_CATENTRY_ID_Attr

public static final int CATENTRY_CATENTRY_ID_Attr
See Also:
Constant Field Values

CATENTRY_ID_Attr

public static final int CATENTRY_ID_Attr
See Also:
Constant Field Values

CATENTRY_BUYABLE_Attr

public static final int CATENTRY_BUYABLE_Attr
See Also:
Constant Field Values

CATENTRY_ONAUCTION_Attr

public static final int CATENTRY_ONAUCTION_Attr
See Also:
Constant Field Values

CATENTRY_ONSPECIAL_Attr

public static final int CATENTRY_ONSPECIAL_Attr
See Also:
Constant Field Values

CATENTRY_PARTNUMBER_Attr

public static final int CATENTRY_PARTNUMBER_Attr
See Also:
Constant Field Values

CATENTRY_MFNAME_Attr

public static final int CATENTRY_MFNAME_Attr
See Also:
Constant Field Values

CATENTRY_MFPARTNUMBER_Attr

public static final int CATENTRY_MFPARTNUMBER_Attr
See Also:
Constant Field Values

CATENTRY_MARKFORDELETE_Attr

public static final int CATENTRY_MARKFORDELETE_Attr
See Also:
Constant Field Values

CATENTRY_LASTUPDATE_Attr

public static final int CATENTRY_LASTUPDATE_Attr
See Also:
Constant Field Values

CATENTDESC_NAME_Attr

public static final int CATENTDESC_NAME_Attr
See Also:
Constant Field Values

CATENTDESC_AVAILABILITY_DATE_Attr

public static final int CATENTDESC_AVAILABILITY_DATE_Attr
See Also:
Constant Field Values

CATENTDESC_LANGUAGE_ID_Attr

public static final int CATENTDESC_LANGUAGE_ID_Attr
See Also:
Constant Field Values

CATENTDESC_PUBLISHED_Attr

public static final int CATENTDESC_PUBLISHED_Attr
See Also:
Constant Field Values

CATENTDESC_SHORT_DESC_Attr

public static final int CATENTDESC_SHORT_DESC_Attr
See Also:
Constant Field Values

CATENTDESC_CATENTRY_ID_Attr

public static final int CATENTDESC_CATENTRY_ID_Attr
See Also:
Constant Field Values

CATENTDESC_THUMBNAIL_Attr

public static final int CATENTDESC_THUMBNAIL_Attr
See Also:
Constant Field Values

CATENTDESC_LONGDESCRIPTION_Attr

public static final int CATENTDESC_LONGDESCRIPTION_Attr
See Also:
Constant Field Values

CATENTDESC_SHORTDESCRIPTION_Attr

public static final int CATENTDESC_SHORTDESCRIPTION_Attr
See Also:
Constant Field Values

CATENTDESC_PARTNUMBER_Attr

public static final int CATENTDESC_PARTNUMBER_Attr
See Also:
Constant Field Values

CATENTDESC_KEYWORD_Attr

public static final int CATENTDESC_KEYWORD_Attr
See Also:
Constant Field Values

CATENTDESC_AVAILABLE_Attr

public static final int CATENTDESC_AVAILABLE_Attr
See Also:
Constant Field Values

STORECATENTRY_STORE_ID_Attr

public static final int STORECATENTRY_STORE_ID_Attr
See Also:
Constant Field Values

USER_ID_Attr

public static final int USER_ID_Attr
See Also:
Constant Field Values

CATENTREL_CATENTRY_ID_CHILD_Attr

public static final int CATENTREL_CATENTRY_ID_CHILD_Attr
See Also:
Constant Field Values

CATENTREL_CATENTRY_ID_PARENT_Attr

public static final int CATENTREL_CATENTRY_ID_PARENT_Attr
See Also:
Constant Field Values

CATENTREL_CATREL_TYPE_ID_Attr

public static final int CATENTREL_CATREL_TYPE_ID_Attr
See Also:
Constant Field Values

ATTRIBUTE_NAME_Attr

public static final int ATTRIBUTE_NAME_Attr
See Also:
Constant Field Values

ATTRIBUTE_LANGUAGE_ID_Attr

public static final int ATTRIBUTE_LANGUAGE_ID_Attr
See Also:
Constant Field Values

ATTRIBUTE_CATENTRY_ID_Attr

public static final int ATTRIBUTE_CATENTRY_ID_Attr
See Also:
Constant Field Values

ATTRIBUTE_ATTRIBUTE_ID_Attr

public static final int ATTRIBUTE_ATTRIBUTE_ID_Attr
See Also:
Constant Field Values

ATTRVALUE_LANGUAGE_ID_Attr

public static final int ATTRVALUE_LANGUAGE_ID_Attr
See Also:
Constant Field Values

ATTRVALUE_NAME_Attr

public static final int ATTRVALUE_NAME_Attr
See Also:
Constant Field Values

ATTRVALUE_CATENTRY_ID_Attr

public static final int ATTRVALUE_CATENTRY_ID_Attr
See Also:
Constant Field Values

ATTRVALUE_STRINGVALUE_Attr

public static final int ATTRVALUE_STRINGVALUE_Attr
See Also:
Constant Field Values

ATTRVALUE_ATTRIBUTE_ID_Attr

public static final int ATTRVALUE_ATTRIBUTE_ID_Attr
See Also:
Constant Field Values

ATTRVALUE_FLOATVALUE_Attr

public static final int ATTRVALUE_FLOATVALUE_Attr
See Also:
Constant Field Values

ATTRVALUE_INTEGERVALUE_Attr

public static final int ATTRVALUE_INTEGERVALUE_Attr
See Also:
Constant Field Values

CATGPENREL_CATGROUP_ID_Attr

public static final int CATGPENREL_CATGROUP_ID_Attr
See Also:
Constant Field Values

CATGPENREL_CATENTRY_ID_Attr

public static final int CATGPENREL_CATENTRY_ID_Attr
See Also:
Constant Field Values

CATGPENREL_CATALOG_ID_Attr

public static final int CATGPENREL_CATALOG_ID_Attr
See Also:
Constant Field Values

CATGROUP_CATGROUP_ID_Attr

public static final int CATGROUP_CATGROUP_ID_Attr
See Also:
Constant Field Values

CATGROUP_MARKFORDELETE_Attr

public static final int CATGROUP_MARKFORDELETE_Attr
See Also:
Constant Field Values

CATGROUP_LASTUPDATE_Attr

public static final int CATGROUP_LASTUPDATE_Attr
See Also:
Constant Field Values

CATGROUP_IDENTIFIER_ID_Attr

public static final int CATGROUP_IDENTIFIER_ID_Attr
See Also:
Constant Field Values

CATGROUP_IDENTIFIER_Attr

public static final int CATGROUP_IDENTIFIER_Attr
See Also:
Constant Field Values

PRSETCEREL_PRODUCTSET_ID_Attr

public static final int PRSETCEREL_PRODUCTSET_ID_Attr
See Also:
Constant Field Values

PRSETCEREL_CATENTRY_ID_Attr

public static final int PRSETCEREL_CATENTRY_ID_Attr
See Also:
Constant Field Values

OFFERPRICE_PRICE_Attr

public static final int OFFERPRICE_PRICE_Attr
See Also:
Constant Field Values

OFFERPRICE_OFFER_ID_Attr

public static final int OFFERPRICE_OFFER_ID_Attr
See Also:
Constant Field Values

OFFERPRICE_CURRENCY_Attr

public static final int OFFERPRICE_CURRENCY_Attr
See Also:
Constant Field Values

OFFER_TRADEPOSCN_ID_Attr

public static final int OFFER_TRADEPOSCN_ID_Attr
See Also:
Constant Field Values

OFFER_OFFER_ID_Attr

public static final int OFFER_OFFER_ID_Attr
See Also:
Constant Field Values

OFFER_MAXIMUMQUANTITY_Attr

public static final int OFFER_MAXIMUMQUANTITY_Attr
See Also:
Constant Field Values

OFFER_MINIMUMQUANTITY_Attr

public static final int OFFER_MINIMUMQUANTITY_Attr
See Also:
Constant Field Values

TRADEPOSCN_TRADEPOSCN_ID_Attr

public static final int TRADEPOSCN_TRADEPOSCN_ID_Attr
See Also:
Constant Field Values

TRADEPOSCN_TYPE_ID_Attr

public static final int TRADEPOSCN_TYPE_ID_Attr
See Also:
Constant Field Values

INVSTVW_QUANTITY_AVAILABLE_Attr

public static final int INVSTVW_QUANTITY_AVAILABLE_Attr
See Also:
Constant Field Values

INVSTVW_QUANTITY_MEASURE_Attr

public static final int INVSTVW_QUANTITY_MEASURE_Attr
See Also:
Constant Field Values

INVSTVW_STORE_ID_Attr

public static final int INVSTVW_STORE_ID_Attr
See Also:
Constant Field Values

STDPRICEVW_PRICE_Attr

public static final int STDPRICEVW_PRICE_Attr
See Also:
Constant Field Values

STDPRICEVW_CATENTRY_ID_Attr

public static final int STDPRICEVW_CATENTRY_ID_Attr
See Also:
Constant Field Values

STDPRICEVW_CURRENCY_Attr

public static final int STDPRICEVW_CURRENCY_Attr
See Also:
Constant Field Values

CATALOG_CATALOG_ID_Attr

public static final int CATALOG_CATALOG_ID_Attr
See Also:
Constant Field Values

CATALOG_DESCRIPTION_Attr

public static final int CATALOG_DESCRIPTION_Attr
See Also:
Constant Field Values

CATALOG_IDENTIFIER_Attr

public static final int CATALOG_IDENTIFIER_Attr
See Also:
Constant Field Values

CATALOGDSC_NAME_Attr

public static final int CATALOGDSC_NAME_Attr
See Also:
Constant Field Values

CATALOGDSC_SHORTDESCRIPTION_Attr

public static final int CATALOGDSC_SHORTDESCRIPTION_Attr
See Also:
Constant Field Values

CATALOGDSC_LANGUAGE_ID_Attr

public static final int CATALOGDSC_LANGUAGE_ID_Attr
See Also:
Constant Field Values

STORECAT_MASTERCATALOG_Attr

public static final int STORECAT_MASTERCATALOG_Attr
See Also:
Constant Field Values

STORECAT_STOREENT_ID_Attr

public static final int STORECAT_STOREENT_ID_Attr
See Also:
Constant Field Values

STORECGRP_STOREENT_ID_Attr

public static final int STORECGRP_STOREENT_ID_Attr
See Also:
Constant Field Values

OR_Operator

public static final int OR_Operator
See Also:
Constant Field Values

AND_Operator

public static final int AND_Operator
See Also:
Constant Field Values

IS_NULL_Operator

public static final int IS_NULL_Operator
See Also:
Constant Field Values

IS_NOT_NULL_Operator

public static final int IS_NOT_NULL_Operator
See Also:
Constant Field Values

LIKE_Operator

public static final int LIKE_Operator
See Also:
Constant Field Values

LEFT_LIKE_Operator

public static final int LEFT_LIKE_Operator
See Also:
Constant Field Values

RIGHT_LIKE_Operator

public static final int RIGHT_LIKE_Operator
See Also:
Constant Field Values

NOT_LIKE_Operator

public static final int NOT_LIKE_Operator
See Also:
Constant Field Values

NOT_LEFT_LIKE_Operator

public static final int NOT_LEFT_LIKE_Operator
See Also:
Constant Field Values

NOT_RIGHT_LIKE_Operator

public static final int NOT_RIGHT_LIKE_Operator
See Also:
Constant Field Values

EQ_Operator

public static final int EQ_Operator
See Also:
Constant Field Values

GT_Operator

public static final int GT_Operator
See Also:
Constant Field Values

GE_Operator

public static final int GE_Operator
See Also:
Constant Field Values

LT_Operator

public static final int LT_Operator
See Also:
Constant Field Values

LE_Operator

public static final int LE_Operator
See Also:
Constant Field Values

NE_Operator

public static final int NE_Operator
See Also:
Constant Field Values

IN_Operator

public static final int IN_Operator
See Also:
Constant Field Values

NOT_IN_Operator

public static final int NOT_IN_Operator
See Also:
Constant Field Values

NOT_GT_Operator

public static final int NOT_GT_Operator
See Also:
Constant Field Values

NOT_LT_Operator

public static final int NOT_LT_Operator
See Also:
Constant Field Values

GROUP_BY_Operator

public static final int GROUP_BY_Operator
See Also:
Constant Field Values

ORDER_BY_Operator

public static final int ORDER_BY_Operator
See Also:
Constant Field Values

COUNT_Operator

public static final int COUNT_Operator
See Also:
Constant Field Values

ASC_Operator

public static final int ASC_Operator
See Also:
Constant Field Values

DESC_Operator

public static final int DESC_Operator
See Also:
Constant Field Values

MIN_Operator

public static final int MIN_Operator
See Also:
Constant Field Values

MAX_Operator

public static final int MAX_Operator
See Also:
Constant Field Values

SUM_Operator

public static final int SUM_Operator
See Also:
Constant Field Values

AVG_Operator

public static final int AVG_Operator
See Also:
Constant Field Values

UPPER_Function

public static final int UPPER_Function
See Also:
Constant Field Values

GENERIC_QueryType

public static final int GENERIC_QueryType
See Also:
Constant Field Values

CATENTRY_SKU_QueryType

public static final int CATENTRY_SKU_QueryType
See Also:
Constant Field Values

ANY_QueryType

public static final int ANY_QueryType
See Also:
Constant Field Values

ITEM_QueryType

public static final int ITEM_QueryType
See Also:
Constant Field Values

BOTH_QueryType

public static final int BOTH_QueryType
See Also:
Constant Field Values

ITEM_CatEntryType

public static final int ITEM_CatEntryType
See Also:
Constant Field Values

BUNDLE_CatEntryType

public static final int BUNDLE_CatEntryType
See Also:
Constant Field Values

PACKAGE_CatEntryType

public static final int PACKAGE_CatEntryType
See Also:
Constant Field Values

PRODUCT_CatEntryType

public static final int PRODUCT_CatEntryType
See Also:
Constant Field Values

DYNAMICKIT_CatEntryType

public static final int DYNAMICKIT_CatEntryType
See Also:
Constant Field Values

defaultResultSelection

public boolean defaultResultSelection

isProduct

public boolean isProduct

isItem

public boolean isItem

isBundle

public boolean isBundle

isPackage

public boolean isPackage

isDynamicKit

public boolean isDynamicKit

isAll

public boolean isAll

infoDictionary

protected AttributeInfoDictionary infoDictionary

infoMap

protected java.util.Hashtable infoMap
Constructor Detail

RuleQuery

public RuleQuery()
RuleQuery constructor with no arguments.

RuleQuery

public RuleQuery(TradingAgreementAccessBean[] agreements)
Deprecated.  

RuleQuery

public RuleQuery(TradingAgreementAccessBean[] agreements,
                 java.lang.Long userId)
RuleQuery constructor with Trading Agreement Access bean and user id as arguments.
Parameters:
agreements - The trading agreement access bean array to process entitlement.

RuleQuery

public RuleQuery(int inStoreID,
TradingAgreementAccessBean[] agreements)
Deprecated.  

RuleQuery

public RuleQuery(int inStoreID,
TradingAgreementAccessBean[] agreements,
                 java.lang.Long userId)
RuleQuery constructor with store id, Trading agreement access bean and user id as arguments.
Parameters:
inStoreID - The store id to be added to search criteria.
agreements - The trading agreement access bean array to process entitlement.

RuleQuery

public RuleQuery(int inStoreID,
                 int inUserID)
Rule query constructor with store and user id as arguments.
Parameters:
inStoreID - The store id that will be added to search criteria.
inUserID - The user id.

RuleQuery

public RuleQuery(java.util.Vector inStoreIDs,
TradingAgreementAccessBean[] agreements)
Deprecated.  

RuleQuery

public RuleQuery(java.util.Vector inStoreIDs,
TradingAgreementAccessBean[] agreements,
                 java.lang.Long userId)
RuleQuery constructor with multiple store id, Trading agreement access bean and user id as arguments.
Parameters:
agreements - The trading agreement access bean array to process entitlement.

RuleQuery

public RuleQuery(java.util.Vector inStoreIDs,
                 int inUserID)
Rule query constructor with multiple store id and single user id as arguments.
Parameters:
inUserID - The user id.
Method Detail

addAttributeFunction

protected Attribute addAttributeFunction(Attribute attr,
                                         int function)
Adds function to a table column. At present only supports UPPER function.
Parameters:
attr - The table column meta data (Attribute object).
function - The function to be associated with the column.
Returns:
The table column meta data (Attribute object).

addFilterAttribute

public void addFilterAttribute(int attribute,
                               int operator)
                        throws java.lang.Exception
Adds a predicate to query Where clause to filter a row, example, TABLE.COLUMN IS NOT NULL. This method will use compliment of specified operator. For example if the operator is LIKE then this method will convert it to NOTLIKE and vice versa.
java.lang.Exception

addFilterAttribute

public void addFilterAttribute(int attribute,
                               int operator,
                               int function)
                        throws java.lang.Exception
Adds a predicate to query Where clause to filter a row, example FUNCTION(TABLE.COLUMN) IS NULL. This method will use compliment of specified operator. For example if the operator is LIKE then this method will convert it to NOTLIKE and vice versa.
java.lang.Exception

addFilterAttribute

public void addFilterAttribute(int attribute,
                               int operator,
                               java.lang.String value)
                        throws java.lang.Exception
Adds a predicate to query Where clause to filter a row, example, TABLE.COLUMN LIKE '%VALUE%'. This method will use compliment of specified operator. For example if the operator is LIKE then this method will convert it to NOTLIKE and vice versa.
java.lang.Exception

addFilterAttribute

public void addFilterAttribute(int attribute,
                               int operator,
                               java.lang.String value,
                               int function)
                        throws java.lang.Exception
Adds a predicate to query Where clause to filter a row, example FUNCTION(TABLE.COLUMN) LIKE '%VALUE%'. This method will use compliment of specified operator. For example if the operator is LIKE then this method will convert it to NOTLIKE and vice versa.
java.lang.Exception

addFilterOperand

public void addFilterOperand(Attribute attr)
                      throws java.lang.Exception
Adds a WHERE clause predicate into temporary filter predicate collection.
java.lang.Exception

addFilterOperator

public void addFilterOperator(int operator)
Adds an operator that combines a set of filter predicates. The logic for post-fix resides in this method.

addFilterOperatorType

protected Operator addFilterOperatorType(int operType)
Maps constants that represent an filter operator to actual operator.
Parameters:
operType - The operator static integer constant.
Returns:
The actual operator.

addGlobalPredicate

public void addGlobalPredicate(Predicate globalPredicate)
Method to insert a predicate that will be applied to entire query like BUYABLE/PUBLISHABLE/LANGUAGE_ID. The Global predicate will be ANDed with the selectSet/filterSet. Set the globalPredicate variable
Parameters:
globalPredicate - The global predicate.

addGroupByAttribute

public void addGroupByAttribute(int attribute)
                         throws java.lang.Exception
To set group by operator
java.lang.Exception

addGroupByAttribute

public void addGroupByAttribute(java.lang.String attribute)
                         throws java.lang.Exception
To add valid result set.
java.lang.Exception

addOperatorType

protected Operator addOperatorType(int operType)
Maps constants that represent an operator to actual operator.
Parameters:
operType - The operator static integer constant.
Returns:
The actual operator.

addOperatorType

protected Operator addOperatorType(java.lang.String newOperType)
Insert the method's description here.
Parameters:
newOperType - java.lang.String
Returns:
com.ibm.commerce.search.base.Operator

addOrderByAttribute

public void addOrderByAttribute(int attribute,
                                int operator)
                         throws java.lang.Exception
To set order by operator
java.lang.Exception

addOrderByAttribute

public void addOrderByAttribute(java.lang.String attribute,
                                java.lang.String operator)
                         throws java.lang.Exception
To set order by operator
java.lang.Exception

addOrderByAttribute1

public void addOrderByAttribute1(int attribute,
                                 int operator)
                          throws java.lang.Exception
To set order by operator
java.lang.Exception

addResultAttribute

public void addResultAttribute(int resultAttribute)
                        throws java.lang.Exception
To add valid result set.
Parameters:
resultAttribute - The result to be added.
java.lang.Exception

addResultAttribute

public void addResultAttribute(java.lang.String attribute)
                        throws java.lang.Exception
To add valid result set.
java.lang.Exception

addResultAttribute

public void addResultAttribute(java.lang.String attribute,
                               java.lang.String operator)
                        throws java.lang.Exception
To add valid result set.
java.lang.Exception

addRule

public void addRule()
Adds an set of predicates to a Query. Must be specified after all the individual predicates are specified. The search interface can retrieve only Products, only Items or Both. By default the interface will retrieve only Products.

addRule

public void addRule(int aQueryType)
Deprecated.  

addSelectAttribute

public void addSelectAttribute(int attribute,
                               int operator)
                        throws java.lang.Exception
Adds a predicate to query Where clause, example, TABLE.COLUMN IS NOT NULL.
java.lang.Exception

addSelectAttribute

public void addSelectAttribute(int attribute,
                               int operator,
                               int function)
                        throws java.lang.Exception
Adds a predicate to query Where clause, example FUNCTION(TABLE.COLUMN) IS NULL.
java.lang.Exception

addSelectAttribute

public void addSelectAttribute(int attribute,
                               int operator,
                               java.lang.String value)
                        throws java.lang.Exception
Adds a predicate to query Where clause, example, TABLE.COLUMN LIKE '%VALUE%'.
java.lang.Exception

addSelectAttribute

public void addSelectAttribute(int attribute,
                               int operator,
                               java.lang.String value,
                               int function)
                        throws java.lang.Exception
Adds a predicate to query Where clause, example FUNCTION(TABLE.COLUMN) LIKE '%VALUE%'. This method will use compliment of specified operator. For example if the operator is LIKE then this method will convert it to NOTLIKE and vice versa.
java.lang.Exception

addSelectAttribute

public void addSelectAttribute(java.lang.String attribute,
                               int operator,
                               java.lang.String value)
                        throws java.lang.Exception
Deprecated.  
java.lang.Exception

addSelectAttribute

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
Adds a Rich attribute predicate. This method supports NAME, STRINGVALUE, FLOATVALUE and INTEGERVALUE column in AttrValue column.
Parameters:
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 Intergervalue, 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

addSelectAttribute

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
Adds a Rich attribute predicate. This method only supports NAME, STRINGVALUE, FLOATVALUE and INTEGERVALUE column in AttrValue column.
Parameters:
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 Intergervalue, 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 function
java.lang.Exception

addSelectAttribute

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
Deprecated.  
java.lang.Exception

addSelectAttribute

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
Deprecated.  
java.lang.Exception

addSelectOperand

public void addSelectOperand(Attribute attr)
                      throws java.lang.Exception
Adds a WHERE clause predicate into temporary select set predicate collection.
java.lang.Exception

addSelectOperator

public void addSelectOperator(int operator)
Adds an operator that combines a set of filter predicates. The logic for post-fix resides in this method.

buildExtendedQueryType

protected Predicate buildExtendedQueryType(Predicate p)
New return types can be added in this method
Parameters:
p - com.ibm.commerce.search.base.Predicate

buildPredicate

protected Predicate buildPredicate()
                            throws java.lang.Exception
Assembles the complete WHERE clause. This method ANDs Select Set predicates, Filter Set predicates, Global predicates and Entitlement predicates.
Returns:
The complete assembled WHERE clause predicate.
java.lang.Exception

buildQueryType

protected Predicate buildQueryType(Predicate p)
Define product types returned in result set

buildQueryTypeConstraint

protected Predicate buildQueryTypeConstraint(java.lang.String beanType,
                                             Predicate p)
Insert the method's description here.
Parameters:
beanType - java.lang.String
p - com.ibm.commerce.search.base.Predicate
Returns:
com.ibm.commerce.search.base.Predicate

evaluateSelectivity

protected java.lang.String evaluateSelectivity(SmartQuery query)
                                        throws java.lang.Exception
Evaluates a sub query in WHERE clause. If the number of records returned is less than selectivitySize then the evaluated result replaces the sub-query in the main query else the sub-query is retained. C
Parameters:
query - The sub-query in the where clause.
Returns:
The result of the sub-query or the actual sub query.
java.lang.Exception

execute

public java.util.Vector execute()
                         throws java.lang.Exception
Executes catalog search query and retrieves all the catentry ids that satisfy the query.
Returns:
A collection of catentry ids.
java.lang.Exception

execute

public java.util.Vector execute(Cursor aCursor)
                         throws java.lang.Exception
Executes catalog search query and retrieves a set of catentry id between a start value and end value specified in the cursor object.
Returns:
A collection of catentry ids between a start value and end value specified in the cursor object.
java.lang.Exception

findStorePaths

public java.util.Vector findStorePaths(int sid)
                                throws java.lang.Exception
This method can be used to find store paths for a store id
Parameters:
sid - The store id.
Returns:
store paths or null.
java.lang.Exception

findAttribute

protected boolean findAttribute(Predicate p,
                                java.lang.String s)
                         throws java.lang.Exception
This method can be used to find a particular column s in Predicate p.
Parameters:
p - A collection of where clause predicate.
s - The column name.
Returns:
true if column s is found, false otherwise.
java.lang.Exception

findAttributeInfoName

protected java.lang.String findAttributeInfoName(int attrId)
Maps a static integer constant that defines a column name to the singleton class name that describes the column name, its data type, and the table it belong to.
Parameters:
attrId - The static integer constant that defines a column name.
Returns:
The singleton class name that match the column name integer constant .

findAttributeInfoName

protected java.lang.String findAttributeInfoName(java.lang.String attrStringRef)
Insert the method's description here.
Parameters:
attrStringRef - java.lang.String
Returns:
java.lang.String

getCatgrpSchemaType

public java.lang.Integer getCatgrpSchemaType()
Do not modify. Method generated by VAJ.
Returns:
The catgroup schema type.

getEntitlementPredicate

protected final Predicate getEntitlementPredicate()
                                           throws java.lang.Exception
Constructs the entitlement predicate.
Returns:
The entitlement predicate.
java.lang.Exception

getGlobalPredicate

protected com.ibm.commerce.search.base.Predicate getGlobalPredicate()
Do not modify. Method generated by VAJ.
Returns:
The global predicate.

getInstanceOfAttrInfoByClassName

protected AttributeInfo getInstanceOfAttrInfoByClassName(java.lang.String classname)
                                                  throws java.lang.Exception
Given a class name in com.ibm.commerce.search.catalog package, gets the instance of the class.
Parameters:
classname - The name of a class in com.ibm.commerce.search.catalog package.
Returns:
The instance of the class in com.ibm.commerce.search.catalog package.
java.lang.Exception

getLongUserId

public java.lang.Long getLongUserId()
Do not modify. Method generated by VAJ.
Returns:
The user id of type Long.

getMcQuery

public com.ibm.commerce.search.base.Query getMcQuery()
Do not modify. Method generated by VAJ.
Returns:
The query object.

getPredicate

public Predicate getPredicate()
                       throws java.lang.Exception
Do not modify. Method generated by VAJ.
Returns:
The selectSet and filterSet predicate.
java.lang.Exception

getQueryType

public int getQueryType()
Do not modify. Method generated by VAJ.
Returns:
The query type.

getRASchemaType

public java.lang.Integer getRASchemaType()
Do not modify. Method generated by VAJ.
Returns:
java.lang.Integer

getResultSet

public java.util.Vector getResultSet()
Do not modify. Method generated by VAJ.
Returns:
The query result set.

getSelectivitySize

public int getSelectivitySize()
Do not modify. Method generated by VAJ.
Returns:
The selectivity size.

getSourceTables

public java.util.Vector getSourceTables()
Do not modify. Method generated by VAJ.
Returns:
The tables used in the query from clause.

getStoreID

public java.lang.Integer getStoreID()
Do not modify. Method generated by VAJ.
Returns:
The store id.

getStoreIDs

public java.util.Vector getStoreIDs()
Do not modify. Method generated by VAJ.
Returns:
The collection of store id.

getUserID

public java.lang.Integer getUserID()
Do not modify. Method generated by VAJ.
Returns:
The user id of type integer.

initialize

public void initialize()
Initialize dictionary containing meta data for attribute information

isPriceSummary

public boolean isPriceSummary()
Returns if there is summary table for price or not true if there is summary table false otherwise

reset

public void reset()
Re-initialize filterSet and selectSet variables

resetQueryType

public void resetQueryType()
Method to reset queryType to override defualt.

setAgreements

public void setAgreements(TradingAgreementAccessBean[] newAgreements)
Do not modify. Method generated by VAJ.
Parameters:
newAgreements - com.ibm.commerce.contract.objects.TradingAgreementAccessBean[]

setCatgrpSchemaType

public void setCatgrpSchemaType(java.lang.Integer newCatgrpSchemaType)
Do not modify. Method generated by VAJ. C
Parameters:
newCatgrpSchemaType - java.lang.Integer

setDefaultResultSelection

public void setDefaultResultSelection()
To set default result selection variable.

setDistinct

public void setDistinct()
To set disctict operator

setDistinct

public void setDistinct(boolean distinctFlag)
To set disctict operator.

setGlobalPredicate

protected void setGlobalPredicate(Predicate globalPredicate)
Set the globalPredicate variable
Parameters:
globalPredicate - The global predicate.

setLongUserId

public void setLongUserId(java.lang.Long newLongUserId)
Deprecated.  

setRASchemaType

public void setRASchemaType(java.lang.Integer newRASchemaType)
Do not modify. Method generated by VAJ.
Parameters:
newRASchemaType - java.lang.Integer

setSelectivitySize

public void setSelectivitySize(int newSelectivitySize)
Set selectivity size
Parameters:
newSelectivitySize - The new selectivity size.

setStoreID

public void setStoreID(java.lang.Integer newStoreID)
Deprecated.  

setStoreIDs

public void setStoreIDs(java.util.Vector newStoreIDs)
Deprecated.  

setUserID

public void setUserID(int newUserID)
Deprecated.  

toString

public java.lang.String toString()
Returns query string
Overrides:
toString in class java.lang.Object
Returns:
The query as string.

translatePredicate

protected Predicate translatePredicate(int key,
                                       Predicate p)
                                throws java.lang.Exception
This method does predicate translation based on the key passed. C
Parameters:
p - The predicate to be translated.
Returns:
The translated predicate.
java.lang.Exception