com.konakart.rmi.app
Class S_FetchProductOptions

java.lang.Object
  extended by com.konakart.rmi.app.S_FetchProductOptions
All Implemented Interfaces:
java.io.Serializable

public class S_FetchProductOptions
extends java.lang.Object
implements java.io.Serializable

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

See Also:
Serialized Form

Constructor Summary
S_FetchProductOptions()
           
 
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 isCalcQuantityForBundles()
          When set to true the quantity available for a product is calculated by reading the quantities of the products within the bundle.
 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 setCalcQuantityForBundles(boolean _calcQuantityForBundles)
          When set to true the quantity available for a product is calculated by reading the quantities of the products within the bundle.
 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

S_FetchProductOptions

public S_FetchProductOptions()
Method Detail

getCatalogId

public java.lang.String getCatalogId()
The id of the catalog which contains dynamic product information such as the price and quantity

Returns:
the catalogId

setCatalogId

public void setCatalogId(java.lang.String _catalogId)
The id of the catalog which contains dynamic product information such as the price and quantity

Parameters:
_catalogId - the catalogId to set

getPriceDate

public java.util.Calendar getPriceDate()
The date for which a price is requested. It could be out in the future.

Returns:
the priceDate

setPriceDate

public void setPriceDate(java.util.Calendar _priceDate)
The date for which a price is requested. It could be out in the future.

Parameters:
_priceDate - the priceDate to set

isUseExternalPrice

public boolean isUseExternalPrice()
If true we attempt to fetch the prices from the external table

Returns:
the useExternalPrice

setUseExternalPrice

public void setUseExternalPrice(boolean _useExternalPrice)
If true we attempt to fetch the prices from the external table

Parameters:
_useExternalPrice - the useExternalPrice to set

isGetTierPrices

public boolean isGetTierPrices()
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.

Returns:
the getTierPrices

setGetTierPrices

public void setGetTierPrices(boolean _getTierPrices)
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.

Parameters:
_getTierPrices - the getTierPrices to set

isUseExternalQuantity

public boolean isUseExternalQuantity()
If true we attempt to fetch the quantities from the external table

Returns:
the useExternalQuantity

setUseExternalQuantity

public void setUseExternalQuantity(boolean _useExternalQuantity)
If true we attempt to fetch the quantities from the external table

Parameters:
_useExternalQuantity - the useExternalQuantity to set

isInvertRelatedProductDirection

public boolean isInvertRelatedProductDirection()
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

Returns:
the invertRelatedProductDirection

setInvertRelatedProductDirection

public void setInvertRelatedProductDirection(boolean _invertRelatedProductDirection)
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

Parameters:
_invertRelatedProductDirection - the invertRelatedProductDirection to set

isCalcQuantityForBundles

public boolean isCalcQuantityForBundles()
When set to true the quantity available for a product is calculated by reading the quantities of the products within the bundle.

Returns:
the calcQuantityForBundles

setCalcQuantityForBundles

public void setCalcQuantityForBundles(boolean _calcQuantityForBundles)
When set to true the quantity available for a product is calculated by reading the quantities of the products within the bundle.

Parameters:
_calcQuantityForBundles - the calcQuantityForBundles to set


Copyright © 2011 DS Data Systems UK Ltd.