com.konakart.rmi.app
Class S_Basket

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

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

One basket object corresponds to an item in the shopping cart.

See Also:
Serialized Form

Constructor Summary
S_Basket()
           
 
Method Summary
 java.lang.String getCustom1()
           
 java.lang.String getCustom2()
           
 java.lang.String getCustom3()
           
 java.lang.String getCustom4()
           
 java.lang.String getCustom5()
           
 java.util.Calendar getDateAdded()
           
 java.util.Calendar getDateAvailable()
          The date when the product will become available
 java.lang.String getEncodedProduct()
          The encodedProduct is in the form 1{3}5{4}1 where the first number is the product id.
 java.math.BigDecimal getFinalPriceExTax()
          This is the price without including tax.
 java.math.BigDecimal getFinalPriceIncTax()
          This is the price including tax.
 int getId()
           
 S_Option[] getOpts()
          An array of Option objects that further defines the product.
 S_Product getProduct()
           
 int getProductId()
           
 int getQuantity()
           
 int getQuantityInStock()
           
 java.lang.String getSku()
          The SKU of the product
 int getWishListId()
          Set to the id of the wish list (gift registry) to keep track that it has been added from a gift registry.
 int getWishListItemId()
          Set to the id of the wish list item (gift registry item) to keep track that it has been added from a gift registry and which item it corresponds to.
 boolean isUseBasketPrice()
          When set, the price of the basket object is used rather than getting the price from the product object.
 void setCustom1(java.lang.String _custom1)
           
 void setCustom2(java.lang.String _custom2)
           
 void setCustom3(java.lang.String _custom3)
           
 void setCustom4(java.lang.String _custom4)
           
 void setCustom5(java.lang.String _custom5)
           
 void setDateAdded(java.util.Calendar _dateAdded)
           
 void setDateAvailable(java.util.Calendar _dateAvailable)
          The date when the product will become available
 void setEncodedProduct(java.lang.String _encodedProduct)
          The encodedProduct is in the form 1{3}5{4}1 where the first number is the product id.
 void setFinalPriceExTax(java.math.BigDecimal _finalPriceExTax)
          This is the price without including tax.
 void setFinalPriceIncTax(java.math.BigDecimal _finalPriceIncTax)
          This is the price including tax.
 void setId(int _id)
           
 void setOpts(S_Option[] _opts)
          An array of Option objects that further defines the product.
 void setProduct(S_Product _product)
           
 void setProductId(int _productId)
           
 void setQuantity(int _quantity)
           
 void setQuantityInStock(int _quantityInStock)
           
 void setSku(java.lang.String _sku)
          The SKU of the product
 void setUseBasketPrice(boolean _useBasketPrice)
          When set, the price of the basket object is used rather than getting the price from the product object.
 void setWishListId(int _wishListId)
          Set to the id of the wish list (gift registry) to keep track that it has been added from a gift registry.
 void setWishListItemId(int _wishListItemId)
          Set to the id of the wish list item (gift registry item) to keep track that it has been added from a gift registry and which item it corresponds to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

S_Basket

public S_Basket()
Method Detail

getDateAdded

public java.util.Calendar getDateAdded()
Returns:
Returns the dateAdded.

setDateAdded

public void setDateAdded(java.util.Calendar _dateAdded)
Parameters:
_dateAdded - The dateAdded to set.

getEncodedProduct

public java.lang.String getEncodedProduct()
The encodedProduct is in the form 1{3}5{4}1 where the first number is the product id. The number pairs following the first number define the {OptionId}OptionValueId . For example this could be Model Type = Premium or Memory size = 1GB etc. If the basket has an encoded product, then it should have an array of Options that match the encoded product.

Returns:
Returns the encodedProduct.

setEncodedProduct

public void setEncodedProduct(java.lang.String _encodedProduct)
The encodedProduct is in the form 1{3}5{4}1 where the first number is the product id. The number pairs following the first number define the {OptionId}OptionValueId . For example this could be Model Type = Premium or Memory size = 1GB etc. If the basket has an encoded product, then it should have an array of Options that match the encoded product.

Parameters:
_encodedProduct - The encodedProduct to set.

getId

public int getId()
Returns:
Returns the id.

setId

public void setId(int _id)
Parameters:
_id - The id to set.

getOpts

public S_Option[] getOpts()
An array of Option objects that further defines the product. i.e. Size = small, color = blue. The encodedProductId should match this array of options.

Returns:
Returns the opts.

setOpts

public void setOpts(S_Option[] _opts)
An array of Option objects that further defines the product. i.e. Size = small, color = blue. The encodedProductId should match this array of options.

Parameters:
_opts - The opts to set.

getProduct

public S_Product getProduct()
Returns:
Returns the product.

setProduct

public void setProduct(S_Product _product)
Parameters:
_product - The product to set.

getProductId

public int getProductId()
Returns:
Returns the productId.

setProductId

public void setProductId(int _productId)
Parameters:
_productId - The productId to set.

getQuantity

public int getQuantity()
Returns:
Returns the quantity.

setQuantity

public void setQuantity(int _quantity)
Parameters:
_quantity - The quantity to set.

getFinalPriceExTax

public java.math.BigDecimal getFinalPriceExTax()
This is the price without including tax.

Returns:
Returns the finalPriceExTax.

setFinalPriceExTax

public void setFinalPriceExTax(java.math.BigDecimal _finalPriceExTax)
This is the price without including tax.

Parameters:
_finalPriceExTax - The finalPriceExTax to set.

getFinalPriceIncTax

public java.math.BigDecimal getFinalPriceIncTax()
This is the price including tax.

Returns:
Returns the finalPriceIncTax.

setFinalPriceIncTax

public void setFinalPriceIncTax(java.math.BigDecimal _finalPriceIncTax)
This is the price including tax.

Parameters:
_finalPriceIncTax - The finalPriceIncTax to set.

getQuantityInStock

public int getQuantityInStock()
Returns:
Returns the quantityInStock.

setQuantityInStock

public void setQuantityInStock(int _quantityInStock)
Parameters:
_quantityInStock - The quantityInStock to set.

getDateAvailable

public java.util.Calendar getDateAvailable()
The date when the product will become available

Returns:
the dateAvailable

setDateAvailable

public void setDateAvailable(java.util.Calendar _dateAvailable)
The date when the product will become available

Parameters:
_dateAvailable - the dateAvailable to set

getCustom1

public java.lang.String getCustom1()
Returns:
Returns the custom1.

setCustom1

public void setCustom1(java.lang.String _custom1)
Parameters:
_custom1 - The custom1 to set.

getCustom2

public java.lang.String getCustom2()
Returns:
Returns the custom2.

setCustom2

public void setCustom2(java.lang.String _custom2)
Parameters:
_custom2 - The custom2 to set.

getCustom3

public java.lang.String getCustom3()
Returns:
Returns the custom3.

setCustom3

public void setCustom3(java.lang.String _custom3)
Parameters:
_custom3 - The custom3 to set.

getCustom4

public java.lang.String getCustom4()
Returns:
Returns the custom4.

setCustom4

public void setCustom4(java.lang.String _custom4)
Parameters:
_custom4 - The custom4 to set.

getCustom5

public java.lang.String getCustom5()
Returns:
Returns the custom5.

setCustom5

public void setCustom5(java.lang.String _custom5)
Parameters:
_custom5 - The custom5 to set.

getSku

public java.lang.String getSku()
The SKU of the product

Returns:
the sku

setSku

public void setSku(java.lang.String _sku)
The SKU of the product

Parameters:
_sku - the sku to set

getWishListId

public int getWishListId()
Set to the id of the wish list (gift registry) to keep track that it has been added from a gift registry.

Returns:
the wishListId

setWishListId

public void setWishListId(int _wishListId)
Set to the id of the wish list (gift registry) to keep track that it has been added from a gift registry.

Parameters:
_wishListId - the wishListId to set

getWishListItemId

public int getWishListItemId()
Set to the id of the wish list item (gift registry item) to keep track that it has been added from a gift registry and which item it corresponds to.

Returns:
the wishListItemId

setWishListItemId

public void setWishListItemId(int _wishListItemId)
Set to the id of the wish list item (gift registry item) to keep track that it has been added from a gift registry and which item it corresponds to.

Parameters:
_wishListItemId - the wishListItemId to set

isUseBasketPrice

public boolean isUseBasketPrice()
When set, the price of the basket object is used rather than getting the price from the product object.

Returns:
the useBasketPrice

setUseBasketPrice

public void setUseBasketPrice(boolean _useBasketPrice)
When set, the price of the basket object is used rather than getting the price from the product object.

Parameters:
_useBasketPrice - the useBasketPrice to set


Copyright © 2011 DS Data Systems UK Ltd.