com.konakart.app
Class WishList

java.lang.Object
  extended by com.konakart.app.WishList
All Implemented Interfaces:
WishListIf

public class WishList
extends java.lang.Object
implements WishListIf

WishList class


Constructor Summary
WishList()
          Constructor
WishList(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c)
          Instantiates the attributes of the WishList object from a Record object
 
Method Summary
 AddressIf getAddress()
          Shipping address object to be used for shipping list items
 int getAddressId()
          Shipping address id to be used for shipping list items
 java.lang.String getCustom1()
           
 java.lang.String getCustom2()
           
 java.lang.String getCustom3()
           
 java.lang.String getCustom4()
           
 java.lang.String getCustom5()
           
 java.lang.String getCustomer1FirstName()
          First name of 2nd wish list customer.
 java.lang.String getCustomer1LastName()
          Last name of 2nd wish list customer.
 java.util.Calendar getCustomerBirthDate()
          Birth date of wish list customer
 java.lang.String getCustomerCity()
          City of wish list customer
 java.lang.String getCustomerFirstName()
          First name of wish list customer
 int getCustomerId()
           
 java.lang.String getCustomerLastName()
          Last name of wish list customer
 java.lang.String getCustomerState()
          State of wish list customer
 java.util.Calendar getDateAdded()
           
 java.lang.String getDescription()
          Description for the wish list
 java.util.Calendar getEventDate()
          Date of the event
 java.math.BigDecimal getFinalPriceExTax()
           
 java.math.BigDecimal getFinalPriceIncTax()
           
 int getId()
           
 java.lang.String getLinkUrl()
          URL that points to a page containing event details
 int getListType()
          Type of list.
 java.lang.String getName()
          Name of the wish list
 WishListItemIf[] getWishListItems()
          An array of WishListItem objects belonging to this wish list.
 boolean isPublicWishList()
          If set, the wish list is public.
 void setAddress(AddressIf address)
          Shipping address object to be used for shipping list items
 void setAddressId(int addressId)
          Shipping address id to be used for shipping list items
 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 setCustomer1FirstName(java.lang.String customer1FirstName)
          First name of 2nd wish list customer.
 void setCustomer1LastName(java.lang.String customer1LastName)
          Last name of 2nd wish list customer.
 void setCustomerBirthDate(java.util.Calendar customerBirthDate)
          Birth date of wish list customer
 void setCustomerCity(java.lang.String customerCity)
          City of wish list customer
 void setCustomerFirstName(java.lang.String customerFirstName)
          First name of wish list customer
 void setCustomerId(int customerId)
           
 void setCustomerLastName(java.lang.String customerLastName)
          Last name of wish list customer
 void setCustomerState(java.lang.String customerState)
          State of wish list customer
 void setDateAdded(java.util.Calendar dateAdded)
           
 void setDescription(java.lang.String description)
          Description for the wish list
 void setEventDate(java.util.Calendar eventDate)
          Date of the event
 void setFinalPriceExTax(java.math.BigDecimal finalPriceExTax)
           
 void setFinalPriceIncTax(java.math.BigDecimal finalPriceIncTax)
           
 void setFinalPrices()
          Sets the final price attributes by adding up the prices of all of the items.
 void setId(int id)
           
 void setLinkUrl(java.lang.String linkUrl)
          URL that points to a page containing event details
 void setListType(int listType)
          Type of list.
 void setName(java.lang.String name)
          Name of the wish list
 void setPublicWishList(boolean publicWishList)
          If set, the wish list is public.
 void setWishListItems(WishListItemIf[] wishListItems)
          An array of WishListItem objects belonging to this wish list.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

WishList

public WishList()
Constructor


WishList

public WishList(com.workingdogs.village.Record vr,
                org.apache.torque.util.Criteria c)
         throws com.workingdogs.village.DataSetException
Instantiates the attributes of the WishList object from a Record object

Parameters:
vr - Record containing data
c - Criteria containing column names
Throws:
com.workingdogs.village.DataSetException
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
Returns a string containing the attributes of the WishList object.

setFinalPrices

public void setFinalPrices()
                    throws KKException
Sets the final price attributes by adding up the prices of all of the items. It assumes that the item prices have been set.

Throws:
KKException

getId

public int getId()
Specified by:
getId in interface WishListIf
Returns:
Returns the id.

setId

public void setId(int id)
Specified by:
setId in interface WishListIf
Parameters:
id - The id to set.

getWishListItems

public WishListItemIf[] getWishListItems()
Description copied from interface: WishListIf
An array of WishListItem objects belonging to this wish list.

Specified by:
getWishListItems in interface WishListIf
Returns:
Returns the wishListItems.

setWishListItems

public void setWishListItems(WishListItemIf[] wishListItems)
Description copied from interface: WishListIf
An array of WishListItem objects belonging to this wish list.

Specified by:
setWishListItems in interface WishListIf
Parameters:
wishListItems - The wishListItems to set.

getName

public java.lang.String getName()
Description copied from interface: WishListIf
Name of the wish list

Specified by:
getName in interface WishListIf
Returns:
Returns the name.

setName

public void setName(java.lang.String name)
Description copied from interface: WishListIf
Name of the wish list

Specified by:
setName in interface WishListIf
Parameters:
name - The name to set.

getDescription

public java.lang.String getDescription()
Description copied from interface: WishListIf
Description for the wish list

Specified by:
getDescription in interface WishListIf
Returns:
Returns the description.

setDescription

public void setDescription(java.lang.String description)
Description copied from interface: WishListIf
Description for the wish list

Specified by:
setDescription in interface WishListIf
Parameters:
description - The description to set.

getFinalPriceIncTax

public java.math.BigDecimal getFinalPriceIncTax()
Specified by:
getFinalPriceIncTax in interface WishListIf
Returns:
Returns the finalPriceIncTax.

setFinalPriceIncTax

public void setFinalPriceIncTax(java.math.BigDecimal finalPriceIncTax)
Specified by:
setFinalPriceIncTax in interface WishListIf
Parameters:
finalPriceIncTax - The finalPriceIncTax to set.

getFinalPriceExTax

public java.math.BigDecimal getFinalPriceExTax()
Specified by:
getFinalPriceExTax in interface WishListIf
Returns:
Returns the finalPriceExTax.

setFinalPriceExTax

public void setFinalPriceExTax(java.math.BigDecimal finalPriceExTax)
Specified by:
setFinalPriceExTax in interface WishListIf
Parameters:
finalPriceExTax - The finalPriceExTax to set.

getDateAdded

public java.util.Calendar getDateAdded()
Specified by:
getDateAdded in interface WishListIf
Returns:
Returns the dateAdded.

setDateAdded

public void setDateAdded(java.util.Calendar dateAdded)
Specified by:
setDateAdded in interface WishListIf
Parameters:
dateAdded - The dateAdded to set.

getCustom1

public java.lang.String getCustom1()
Specified by:
getCustom1 in interface WishListIf
Returns:
Returns the custom1.

setCustom1

public void setCustom1(java.lang.String custom1)
Specified by:
setCustom1 in interface WishListIf
Parameters:
custom1 - The custom1 to set.

getCustom2

public java.lang.String getCustom2()
Specified by:
getCustom2 in interface WishListIf
Returns:
Returns the custom2.

setCustom2

public void setCustom2(java.lang.String custom2)
Specified by:
setCustom2 in interface WishListIf
Parameters:
custom2 - The custom2 to set.

getCustom3

public java.lang.String getCustom3()
Specified by:
getCustom3 in interface WishListIf
Returns:
Returns the custom3.

setCustom3

public void setCustom3(java.lang.String custom3)
Specified by:
setCustom3 in interface WishListIf
Parameters:
custom3 - The custom3 to set.

getCustom4

public java.lang.String getCustom4()
Specified by:
getCustom4 in interface WishListIf
Returns:
Returns the custom4.

setCustom4

public void setCustom4(java.lang.String custom4)
Specified by:
setCustom4 in interface WishListIf
Parameters:
custom4 - The custom4 to set.

getCustom5

public java.lang.String getCustom5()
Specified by:
getCustom5 in interface WishListIf
Returns:
Returns the custom5.

setCustom5

public void setCustom5(java.lang.String custom5)
Specified by:
setCustom5 in interface WishListIf
Parameters:
custom5 - The custom5 to set.

getCustomerId

public int getCustomerId()
Specified by:
getCustomerId in interface WishListIf
Returns:
Returns the customerId.

setCustomerId

public void setCustomerId(int customerId)
Specified by:
setCustomerId in interface WishListIf
Parameters:
customerId - The customerId to set.

isPublicWishList

public boolean isPublicWishList()
Description copied from interface: WishListIf
If set, the wish list is public. Otherwise it is private.

Specified by:
isPublicWishList in interface WishListIf
Returns:
Returns the publicWishList.

setPublicWishList

public void setPublicWishList(boolean publicWishList)
Description copied from interface: WishListIf
If set, the wish list is public. Otherwise it is private.

Specified by:
setPublicWishList in interface WishListIf
Parameters:
publicWishList - The publicWishList to set.

getCustomerFirstName

public java.lang.String getCustomerFirstName()
Description copied from interface: WishListIf
First name of wish list customer

Specified by:
getCustomerFirstName in interface WishListIf
Returns:
Returns the customerFirstName.

setCustomerFirstName

public void setCustomerFirstName(java.lang.String customerFirstName)
Description copied from interface: WishListIf
First name of wish list customer

Specified by:
setCustomerFirstName in interface WishListIf
Parameters:
customerFirstName - The customerFirstName to set.

getCustomerLastName

public java.lang.String getCustomerLastName()
Description copied from interface: WishListIf
Last name of wish list customer

Specified by:
getCustomerLastName in interface WishListIf
Returns:
Returns the customerLastName.

setCustomerLastName

public void setCustomerLastName(java.lang.String customerLastName)
Description copied from interface: WishListIf
Last name of wish list customer

Specified by:
setCustomerLastName in interface WishListIf
Parameters:
customerLastName - The customerLastName to set.

getCustomerCity

public java.lang.String getCustomerCity()
Description copied from interface: WishListIf
City of wish list customer

Specified by:
getCustomerCity in interface WishListIf
Returns:
Returns the customerCity.

setCustomerCity

public void setCustomerCity(java.lang.String customerCity)
Description copied from interface: WishListIf
City of wish list customer

Specified by:
setCustomerCity in interface WishListIf
Parameters:
customerCity - The customerCity to set.

getCustomerBirthDate

public java.util.Calendar getCustomerBirthDate()
Description copied from interface: WishListIf
Birth date of wish list customer

Specified by:
getCustomerBirthDate in interface WishListIf
Returns:
Returns the customerBirthDate.

setCustomerBirthDate

public void setCustomerBirthDate(java.util.Calendar customerBirthDate)
Description copied from interface: WishListIf
Birth date of wish list customer

Specified by:
setCustomerBirthDate in interface WishListIf
Parameters:
customerBirthDate - The customerBirthDate to set.

getCustomerState

public java.lang.String getCustomerState()
Description copied from interface: WishListIf
State of wish list customer

Specified by:
getCustomerState in interface WishListIf
Returns:
Returns the customerState.

setCustomerState

public void setCustomerState(java.lang.String customerState)
Description copied from interface: WishListIf
State of wish list customer

Specified by:
setCustomerState in interface WishListIf
Parameters:
customerState - The customerState to set.

getCustomer1FirstName

public java.lang.String getCustomer1FirstName()
Description copied from interface: WishListIf
First name of 2nd wish list customer. i.e. Wedding list will have two names

Specified by:
getCustomer1FirstName in interface WishListIf
Returns:
the customer1FirstName

setCustomer1FirstName

public void setCustomer1FirstName(java.lang.String customer1FirstName)
Description copied from interface: WishListIf
First name of 2nd wish list customer. i.e. Wedding list will have two names

Specified by:
setCustomer1FirstName in interface WishListIf
Parameters:
customer1FirstName - the customer1FirstName to set

getCustomer1LastName

public java.lang.String getCustomer1LastName()
Description copied from interface: WishListIf
Last name of 2nd wish list customer. i.e. Wedding list will have two names

Specified by:
getCustomer1LastName in interface WishListIf
Returns:
the customer1LastName

setCustomer1LastName

public void setCustomer1LastName(java.lang.String customer1LastName)
Description copied from interface: WishListIf
Last name of 2nd wish list customer. i.e. Wedding list will have two names

Specified by:
setCustomer1LastName in interface WishListIf
Parameters:
customer1LastName - the customer1LastName to set

getLinkUrl

public java.lang.String getLinkUrl()
Description copied from interface: WishListIf
URL that points to a page containing event details

Specified by:
getLinkUrl in interface WishListIf
Returns:
the linkUrl

setLinkUrl

public void setLinkUrl(java.lang.String linkUrl)
Description copied from interface: WishListIf
URL that points to a page containing event details

Specified by:
setLinkUrl in interface WishListIf
Parameters:
linkUrl - the linkUrl to set

getListType

public int getListType()
Description copied from interface: WishListIf
Type of list. i.e. Wish List, Wedding List etc.

Specified by:
getListType in interface WishListIf
Returns:
the listType

setListType

public void setListType(int listType)
Description copied from interface: WishListIf
Type of list. i.e. Wish List, Wedding List etc.

Specified by:
setListType in interface WishListIf
Parameters:
listType - the listType to set

getAddressId

public int getAddressId()
Description copied from interface: WishListIf
Shipping address id to be used for shipping list items

Specified by:
getAddressId in interface WishListIf
Returns:
the addressId

setAddressId

public void setAddressId(int addressId)
Description copied from interface: WishListIf
Shipping address id to be used for shipping list items

Specified by:
setAddressId in interface WishListIf
Parameters:
addressId - the addressId to set

getEventDate

public java.util.Calendar getEventDate()
Description copied from interface: WishListIf
Date of the event

Specified by:
getEventDate in interface WishListIf
Returns:
the eventDate

setEventDate

public void setEventDate(java.util.Calendar eventDate)
Description copied from interface: WishListIf
Date of the event

Specified by:
setEventDate in interface WishListIf
Parameters:
eventDate - the eventDate to set

getAddress

public AddressIf getAddress()
Description copied from interface: WishListIf
Shipping address object to be used for shipping list items

Specified by:
getAddress in interface WishListIf
Returns:
the address

setAddress

public void setAddress(AddressIf address)
Description copied from interface: WishListIf
Shipping address object to be used for shipping list items

Specified by:
setAddress in interface WishListIf
Parameters:
address - the address to set


Copyright © 2011 DS Data Systems UK Ltd.