com.konakart.app
Class FetchProductOptions

java.lang.Object
  extended by com.konakart.app.FetchProductOptions
All Implemented Interfaces:
FetchProductOptionsIf

public class FetchProductOptions
extends java.lang.Object
implements FetchProductOptionsIf

An object used to define options used when reading one or more products from the database


Constructor Summary
FetchProductOptions()
          Constructor
 
Method Summary
 java.lang.String getCatalogId()
          The id of the catalog which contains dynamic product information such as the price and quantity
 java.util.Calendar getPriceDate()
          The date for which a price is requested.
 boolean isGetTierPrices()
          If true we attach an array of tier price objects to the product.
 boolean isInvertRelatedProductDirection()
          If true we invert the direction of the related product link.
 boolean isUseExternalPrice()
          If true we attempt to fetch the prices from the external table
 boolean isUseExternalQuantity()
          If true we attempt to fetch the quantities from the external table
 void setCatalogId(java.lang.String catalogId)
          The id of the catalog which contains dynamic product information such as the price and quantity
 void setGetTierPrices(boolean getTierPrices)
          If true we attach an array of tier price objects to the product.
 void setInvertRelatedProductDirection(boolean invertRelatedProductDirection)
          If true we invert the direction of the related product link.
 void setPriceDate(java.util.Calendar priceDate)
          The date for which a price is requested.
 void setUseExternalPrice(boolean useExternalPrice)
          If true we attempt to fetch the prices from the external table
 void setUseExternalQuantity(boolean useExternalQuantity)
          If true we attempt to fetch the quantities from the external table
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FetchProductOptions

public FetchProductOptions()
Constructor

Method Detail

getCatalogId

public java.lang.String getCatalogId()
Description copied from interface: FetchProductOptionsIf
The id of the catalog which contains dynamic product information such as the price and quantity

Specified by:
getCatalogId in interface FetchProductOptionsIf
Returns:
the catalogId

setCatalogId

public void setCatalogId(java.lang.String catalogId)
Description copied from interface: FetchProductOptionsIf
The id of the catalog which contains dynamic product information such as the price and quantity

Specified by:
setCatalogId in interface FetchProductOptionsIf
Parameters:
catalogId - the catalogId to set

getPriceDate

public java.util.Calendar getPriceDate()
Description copied from interface: FetchProductOptionsIf
The date for which a price is requested. It could be out in the future.

Specified by:
getPriceDate in interface FetchProductOptionsIf
Returns:
the priceDate

setPriceDate

public void setPriceDate(java.util.Calendar priceDate)
Description copied from interface: FetchProductOptionsIf
The date for which a price is requested. It could be out in the future.

Specified by:
setPriceDate in interface FetchProductOptionsIf
Parameters:
priceDate - the priceDate to set

isUseExternalPrice

public boolean isUseExternalPrice()
Description copied from interface: FetchProductOptionsIf
If true we attempt to fetch the prices from the external table

Specified by:
isUseExternalPrice in interface FetchProductOptionsIf
Returns:
the useExternalPrice

setUseExternalPrice

public void setUseExternalPrice(boolean useExternalPrice)
Description copied from interface: FetchProductOptionsIf
If true we attempt to fetch the prices from the external table

Specified by:
setUseExternalPrice in interface FetchProductOptionsIf
Parameters:
useExternalPrice - the useExternalPrice to set

isGetTierPrices

public boolean isGetTierPrices()
Description copied from interface: FetchProductOptionsIf
If true we attach an array of tier price objects to the product. Defaults to false for performance reasons since you may not require tier prices until you fetch the product details.

Specified by:
isGetTierPrices in interface FetchProductOptionsIf
Returns:
the getTierPrices

setGetTierPrices

public void setGetTierPrices(boolean getTierPrices)
Description copied from interface: FetchProductOptionsIf
If true we attach an array of tier price objects to the product. Defaults to false for performance reasons since you may not require tier prices until you fetch the product details.

Specified by:
setGetTierPrices in interface FetchProductOptionsIf
Parameters:
getTierPrices - the getTierPrices to set

isUseExternalQuantity

public boolean isUseExternalQuantity()
Description copied from interface: FetchProductOptionsIf
If true we attempt to fetch the quantities from the external table

Specified by:
isUseExternalQuantity in interface FetchProductOptionsIf
Returns:
the useExternalQuantity

setUseExternalQuantity

public void setUseExternalQuantity(boolean useExternalQuantity)
Description copied from interface: FetchProductOptionsIf
If true we attempt to fetch the quantities from the external table

Specified by:
setUseExternalQuantity in interface FetchProductOptionsIf
Parameters:
useExternalQuantity - the useExternalQuantity to set

isInvertRelatedProductDirection

public boolean isInvertRelatedProductDirection()
Description copied from interface: FetchProductOptionsIf
If true we invert the direction of the related product link. This is especially useful for bundled products, so rather than discovering the products within a bundle, you can determine which bundles a product belongs to by setting this attribute to true

Specified by:
isInvertRelatedProductDirection in interface FetchProductOptionsIf
Returns:
the invertRelatedProductDirection

setInvertRelatedProductDirection

public void setInvertRelatedProductDirection(boolean invertRelatedProductDirection)
Description copied from interface: FetchProductOptionsIf
If true we invert the direction of the related product link. This is especially useful for bundled products, so rather than discovering the products within a bundle, you can determine which bundles a product belongs to by setting this attribute to true

Specified by:
setInvertRelatedProductDirection in interface FetchProductOptionsIf
Parameters:
invertRelatedProductDirection - the invertRelatedProductDirection to set


Copyright © 2011 DS Data Systems UK Ltd.