com.konakartadmin.app
Class AdminProductSearch

java.lang.Object
  extended by com.konakartadmin.app.AdminProductSearch

public class AdminProductSearch
extends java.lang.Object

Allows you to enter search criteria for retrieving AdminProduct objects


Field Summary
private  int categoryId
          categoryId
private  java.util.Calendar dateAddedFrom
          dateAddedFrom
private  java.util.Calendar dateAddedTo
          dateAddedTo
private  int manufacturerId
          manufacturerId
private  boolean onlyProductsExpected
          only Products Expected
private  boolean onlySpecials
          only Specials
private  java.math.BigDecimal priceFrom
          priceFrom
private  java.math.BigDecimal priceTo
          priceTo
private  int productType
          Product Type
private  int promotionId
          PromotionId
static int SEARCH_ALL
          SEARCH_ALL = -100
static int SEARCH_IN_PRODUCT_DESCRIPTION
          SEARCH_IN_PRODUCT_DESCRIPTION
private  java.lang.String searchText
          searchText
private  java.lang.String sku
          SKU
private  int whereToSearch
          whereToSearch
 
Constructor Summary
AdminProductSearch()
          Constructor
 
Method Summary
 int getCategoryId()
           
 java.util.Calendar getDateAddedFrom()
           
 java.util.Calendar getDateAddedTo()
           
 int getManufacturerId()
           
 java.math.BigDecimal getPriceFrom()
           
 java.math.BigDecimal getPriceTo()
           
 int getProductType()
           
 int getPromotionId()
           
static int getSEARCH_ALL()
           
 java.lang.String getSearchText()
           
 java.lang.String getSku()
           
 int getWhereToSearch()
           
 boolean isOnlyProductsExpected()
           
 boolean isOnlySpecials()
           
 void setCategoryId(int categoryId)
           
 void setDateAddedFrom(java.util.Calendar dateAddedFrom)
           
 void setDateAddedTo(java.util.Calendar dateAddedTo)
           
 void setManufacturerId(int manufacturerId)
           
 void setOnlyProductsExpected(boolean onlyProductsExpected)
           
 void setOnlySpecials(boolean onlySpecials)
           
 void setPriceFrom(java.math.BigDecimal priceFrom)
           
 void setPriceTo(java.math.BigDecimal priceTo)
           
 void setProductType(int productType)
           
 void setPromotionId(int promotionId)
           
 void setSearchText(java.lang.String searchText)
           
 void setSku(java.lang.String sku)
           
 void setWhereToSearch(int whereToSearch)
           
 java.lang.String toString()
           
 java.lang.String toStringBrief()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

sku

private java.lang.String sku
SKU


priceFrom

private java.math.BigDecimal priceFrom
priceFrom


priceTo

private java.math.BigDecimal priceTo
priceTo


dateAddedFrom

private java.util.Calendar dateAddedFrom
dateAddedFrom


dateAddedTo

private java.util.Calendar dateAddedTo
dateAddedTo


manufacturerId

private int manufacturerId
manufacturerId


categoryId

private int categoryId
categoryId


whereToSearch

private int whereToSearch
whereToSearch


searchText

private java.lang.String searchText
searchText


onlySpecials

private boolean onlySpecials
only Specials


onlyProductsExpected

private boolean onlyProductsExpected
only Products Expected


promotionId

private int promotionId
PromotionId


productType

private int productType
Product Type


SEARCH_IN_PRODUCT_DESCRIPTION

public static final int SEARCH_IN_PRODUCT_DESCRIPTION
SEARCH_IN_PRODUCT_DESCRIPTION

See Also:
Constant Field Values

SEARCH_ALL

public static final int SEARCH_ALL
SEARCH_ALL = -100

See Also:
Constant Field Values
Constructor Detail

AdminProductSearch

public AdminProductSearch()
Constructor

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
Returns a string containing the attributes of the Product object and those of its Options.

toStringBrief

public java.lang.String toStringBrief()
Returns:
Returns a string containing selected attributes of the Product object

getCategoryId

public int getCategoryId()
Returns:
Returns the categoryId.

setCategoryId

public void setCategoryId(int categoryId)
Parameters:
categoryId - The categoryId to set.

getManufacturerId

public int getManufacturerId()
Returns:
Returns the manufacturerId.

setManufacturerId

public void setManufacturerId(int manufacturerId)
Parameters:
manufacturerId - The manufacturerId to set.

getPriceFrom

public java.math.BigDecimal getPriceFrom()
Returns:
Returns the priceFrom.

setPriceFrom

public void setPriceFrom(java.math.BigDecimal priceFrom)
Parameters:
priceFrom - The priceFrom to set.

getPriceTo

public java.math.BigDecimal getPriceTo()
Returns:
Returns the priceTo.

setPriceTo

public void setPriceTo(java.math.BigDecimal priceTo)
Parameters:
priceTo - The priceTo to set.

getSearchText

public java.lang.String getSearchText()
Returns:
Returns the searchText.

setSearchText

public void setSearchText(java.lang.String searchText)
Parameters:
searchText - The searchText to set.

getWhereToSearch

public int getWhereToSearch()
Returns:
Returns the whereToSearch.

setWhereToSearch

public void setWhereToSearch(int whereToSearch)
Parameters:
whereToSearch - The whereToSearch to set.

getDateAddedFrom

public java.util.Calendar getDateAddedFrom()
Returns:
Returns the dateAddedFrom.

setDateAddedFrom

public void setDateAddedFrom(java.util.Calendar dateAddedFrom)
Parameters:
dateAddedFrom - The dateAddedFrom to set.

getDateAddedTo

public java.util.Calendar getDateAddedTo()
Returns:
Returns the dateAddedTo.

setDateAddedTo

public void setDateAddedTo(java.util.Calendar dateAddedTo)
Parameters:
dateAddedTo - The dateAddedTo to set.

getSEARCH_ALL

public static int getSEARCH_ALL()
Returns:
Returns the sEARCH_ALL.

isOnlySpecials

public boolean isOnlySpecials()
Returns:
Returns the onlySpecials.

setOnlySpecials

public void setOnlySpecials(boolean onlySpecials)
Parameters:
onlySpecials - The onlySpecials to set.

isOnlyProductsExpected

public boolean isOnlyProductsExpected()
Returns:
Returns the onlyProductsExpected.

setOnlyProductsExpected

public void setOnlyProductsExpected(boolean onlyProductsExpected)
Parameters:
onlyProductsExpected - The onlyProductsExpected to set.

getPromotionId

public int getPromotionId()
Returns:
Returns the promotionId.

setPromotionId

public void setPromotionId(int promotionId)
Parameters:
promotionId - The promotionId to set.

getSku

public java.lang.String getSku()
Returns:
Returns the sku.

setSku

public void setSku(java.lang.String sku)
Parameters:
sku - The sku to set.

getProductType

public int getProductType()
Returns:
Returns the productType.

setProductType

public void setProductType(int productType)
Parameters:
productType - The productType to set.


Copyright © 2006 DS Data Systems UK Ltd.