com.konakart.app
Class Customer

java.lang.Object
  extended by com.konakart.app.Customer
All Implemented Interfaces:
CustomerIf

public class Customer
extends java.lang.Object
implements CustomerIf

Customer


Constructor Summary
Customer()
          Constructor
Customer(com.workingdogs.village.Record vr, org.apache.torque.util.Criteria c)
          Instantiates the attributes of the Customer object from a Record object
 
Method Summary
 java.util.Calendar getAccountCreated()
          When the account was created.
 java.util.Calendar getAccountLastModified()
           
 AddressIf[] getAddresses()
          An array containing all of the addresses defined for this customer.
 BasketIf[] getBasketItems()
          An array of basket items for this customer.
 java.util.Calendar getBirthDate()
           
 java.lang.String getCustom1()
           
 java.lang.String getCustom2()
           
 java.lang.String getCustom3()
           
 java.lang.String getCustom4()
           
 java.lang.String getCustom5()
           
 CustomerGroupIf getCustomerGroup()
          The Customer Group to which the customer belongs.
 AddressIf getDefaultAddr()
           
 int getDefaultAddrId()
          Identifies the default address for this customer.
 java.lang.String getEmailAddr()
           
 java.lang.String getFaxNumber()
           
 java.lang.String getFirstName()
           
 java.lang.String getGender()
          Normally set to "m" or "f" .
 int getGlobalProdNotifier()
          If set to 1, the customer is notified of all product updates.
 int getGroupId()
          If negative, the customer belongs to no groups.
 int getId()
           
 byte getInvisible()
           
 java.util.Calendar getLastLogon()
           
 java.lang.String getLastName()
           
 java.lang.String getLocale()
          Locale of the customer
 java.lang.String getNewsletter()
          Set to "1" if the customer should receive the newsletter or "0" if he shouldn't.
 int getNumberOfLogons()
          The number of times that the customer has logged in to the application.
 OrderIf[] getOrders()
          An array of orders for this customer.
 java.lang.String getPassword()
           
 ProductIf[] getProductNotifications()
          An array of products for which the customer wants notifications.
 java.lang.String getTelephoneNumber()
           
 java.lang.String getTelephoneNumber1()
           
 int getType()
          Type of customer.
 WishListIf[] getWishLists()
          An array of Wish Lists belonging to the customer
 void setAccountCreated(java.util.Calendar accountCreated)
          When the account was created.
 void setAccountLastModified(java.util.Calendar accountLastModified)
           
 void setAddresses(AddressIf[] addresses)
          An array containing all of the addresses defined for this customer.
 void setBasketItems(BasketIf[] basketItems)
          An array of basket items for this customer.
 void setBirthDate(java.util.Calendar birthDate)
           
 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 setCustomerGroup(CustomerGroupIf customerGroup)
          The Customer Group to which the customer belongs.
 void setDefaultAddr(AddressIf defaultAddr)
           
 void setDefaultAddrId(int defaultAddrId)
          Identifies the default address for this customer.
 void setEmailAddr(java.lang.String emailAddr)
           
 void setFaxNumber(java.lang.String faxNumber)
           
 void setFirstName(java.lang.String firstName)
           
 void setGender(java.lang.String gender)
          Normally set to "m" or "f" .
 void setGlobalProdNotifier(int globalProdNotifier)
          If set to 1, the customer is notified of all product updates.
 void setGroupId(int groupId)
          If negative, the customer belongs to no groups.
 void setId(int id)
           
 void setInvisible(byte invisible)
           
 void setLastLogon(java.util.Calendar lastLogon)
           
 void setLastName(java.lang.String lastName)
           
 void setLocale(java.lang.String locale)
          Locale of the customer
 void setNewsletter(java.lang.String newsletter)
          Set to "1" if the customer should receive the newsletter or "0" if he shouldn't.
 void setNumberOfLogons(int numberOfLogons)
          The number of times that the customer has logged in to the application.
 void setOrders(OrderIf[] orders)
          An array of orders for this customer.
 void setPassword(java.lang.String password)
           
 void setProductNotifications(ProductIf[] productNotifications)
          An array of products for which the customer wants notifications.
 void setTelephoneNumber(java.lang.String telephoneNumber)
           
 void setTelephoneNumber1(java.lang.String telephoneNumber1)
           
 void setType(int type)
          Type of customer.
 void setWishLists(WishListIf[] wishLists)
          An array of Wish Lists belonging to the customer
 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
 

Constructor Detail

Customer

public Customer()
Constructor


Customer

public Customer(com.workingdogs.village.Record vr,
                org.apache.torque.util.Criteria c)
         throws com.workingdogs.village.DataSetException
Instantiates the attributes of the Customer 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 Customer object.

toStringBrief

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

getDefaultAddr

public AddressIf getDefaultAddr()
Specified by:
getDefaultAddr in interface CustomerIf
Returns:
Returns the defaultAddr.

setDefaultAddr

public void setDefaultAddr(AddressIf defaultAddr)
Specified by:
setDefaultAddr in interface CustomerIf
Parameters:
defaultAddr - The defaultAddr to set.

getEmailAddr

public java.lang.String getEmailAddr()
Specified by:
getEmailAddr in interface CustomerIf
Returns:
Returns the emailAddr.

setEmailAddr

public void setEmailAddr(java.lang.String emailAddr)
Specified by:
setEmailAddr in interface CustomerIf
Parameters:
emailAddr - The emailAddr to set.

getFaxNumber

public java.lang.String getFaxNumber()
Specified by:
getFaxNumber in interface CustomerIf
Returns:
Returns the faxNumber.

setFaxNumber

public void setFaxNumber(java.lang.String faxNumber)
Specified by:
setFaxNumber in interface CustomerIf
Parameters:
faxNumber - The faxNumber to set.

getFirstName

public java.lang.String getFirstName()
Specified by:
getFirstName in interface CustomerIf
Returns:
Returns the firstName.

setFirstName

public void setFirstName(java.lang.String firstName)
Specified by:
setFirstName in interface CustomerIf
Parameters:
firstName - The firstName to set.

getGender

public java.lang.String getGender()
Description copied from interface: CustomerIf
Normally set to "m" or "f" .

Specified by:
getGender in interface CustomerIf
Returns:
Returns the gender.

setGender

public void setGender(java.lang.String gender)
Description copied from interface: CustomerIf
Normally set to "m" or "f" .

Specified by:
setGender in interface CustomerIf
Parameters:
gender - The gender to set.

getId

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

setId

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

getLastName

public java.lang.String getLastName()
Specified by:
getLastName in interface CustomerIf
Returns:
Returns the lastName.

setLastName

public void setLastName(java.lang.String lastName)
Specified by:
setLastName in interface CustomerIf
Parameters:
lastName - The lastName to set.

getNewsletter

public java.lang.String getNewsletter()
Description copied from interface: CustomerIf
Set to "1" if the customer should receive the newsletter or "0" if he shouldn't.

Specified by:
getNewsletter in interface CustomerIf
Returns:
Returns the newsletter.

setNewsletter

public void setNewsletter(java.lang.String newsletter)
Description copied from interface: CustomerIf
Set to "1" if the customer should receive the newsletter or "0" if he shouldn't.

Specified by:
setNewsletter in interface CustomerIf
Parameters:
newsletter - The newsletter to set.

getNumberOfLogons

public int getNumberOfLogons()
Description copied from interface: CustomerIf
The number of times that the customer has logged in to the application.

Specified by:
getNumberOfLogons in interface CustomerIf
Returns:
Returns the numberOfLogons.

setNumberOfLogons

public void setNumberOfLogons(int numberOfLogons)
Description copied from interface: CustomerIf
The number of times that the customer has logged in to the application.

Specified by:
setNumberOfLogons in interface CustomerIf
Parameters:
numberOfLogons - The numberOfLogons to set.

getPassword

public java.lang.String getPassword()
Specified by:
getPassword in interface CustomerIf
Returns:
Returns the password.

setPassword

public void setPassword(java.lang.String password)
Specified by:
setPassword in interface CustomerIf
Parameters:
password - The password to set.

getTelephoneNumber

public java.lang.String getTelephoneNumber()
Specified by:
getTelephoneNumber in interface CustomerIf
Returns:
Returns the telephoneNumber.

setTelephoneNumber

public void setTelephoneNumber(java.lang.String telephoneNumber)
Specified by:
setTelephoneNumber in interface CustomerIf
Parameters:
telephoneNumber - The telephoneNumber to set.

getAccountCreated

public java.util.Calendar getAccountCreated()
Description copied from interface: CustomerIf
When the account was created.

Specified by:
getAccountCreated in interface CustomerIf
Returns:
Returns the accountCreated.

setAccountCreated

public void setAccountCreated(java.util.Calendar accountCreated)
Description copied from interface: CustomerIf
When the account was created.

Specified by:
setAccountCreated in interface CustomerIf
Parameters:
accountCreated - The accountCreated to set.

getAccountLastModified

public java.util.Calendar getAccountLastModified()
Specified by:
getAccountLastModified in interface CustomerIf
Returns:
Returns the accountLastModified.

setAccountLastModified

public void setAccountLastModified(java.util.Calendar accountLastModified)
Specified by:
setAccountLastModified in interface CustomerIf
Parameters:
accountLastModified - The accountLastModified to set.

getBirthDate

public java.util.Calendar getBirthDate()
Specified by:
getBirthDate in interface CustomerIf
Returns:
Returns the birthDate.

setBirthDate

public void setBirthDate(java.util.Calendar birthDate)
Specified by:
setBirthDate in interface CustomerIf
Parameters:
birthDate - The birthDate to set.

getLastLogon

public java.util.Calendar getLastLogon()
Specified by:
getLastLogon in interface CustomerIf
Returns:
Returns the lastLogon.

setLastLogon

public void setLastLogon(java.util.Calendar lastLogon)
Specified by:
setLastLogon in interface CustomerIf
Parameters:
lastLogon - The lastLogon to set.

getBasketItems

public BasketIf[] getBasketItems()
Description copied from interface: CustomerIf
An array of basket items for this customer.

Specified by:
getBasketItems in interface CustomerIf
Returns:
Returns the basketItems.

setBasketItems

public void setBasketItems(BasketIf[] basketItems)
Description copied from interface: CustomerIf
An array of basket items for this customer.

Specified by:
setBasketItems in interface CustomerIf
Parameters:
basketItems - The basketItems to set.

getDefaultAddrId

public int getDefaultAddrId()
Description copied from interface: CustomerIf
Identifies the default address for this customer. A customer may have multiple addresses.

Specified by:
getDefaultAddrId in interface CustomerIf
Returns:
Returns the defaultAddrId.

setDefaultAddrId

public void setDefaultAddrId(int defaultAddrId)
Description copied from interface: CustomerIf
Identifies the default address for this customer. A customer may have multiple addresses.

Specified by:
setDefaultAddrId in interface CustomerIf
Parameters:
defaultAddrId - The defaultAddrId to set.

getAddresses

public AddressIf[] getAddresses()
Description copied from interface: CustomerIf
An array containing all of the addresses defined for this customer.

Specified by:
getAddresses in interface CustomerIf
Returns:
Returns the addresses.

setAddresses

public void setAddresses(AddressIf[] addresses)
Description copied from interface: CustomerIf
An array containing all of the addresses defined for this customer.

Specified by:
setAddresses in interface CustomerIf
Parameters:
addresses - The addresses to set.

getGlobalProdNotifier

public int getGlobalProdNotifier()
Description copied from interface: CustomerIf
If set to 1, the customer is notified of all product updates. If set to 0, the customer isn't notified.

Specified by:
getGlobalProdNotifier in interface CustomerIf
Returns:
Returns the globalProdNotifier.

setGlobalProdNotifier

public void setGlobalProdNotifier(int globalProdNotifier)
Description copied from interface: CustomerIf
If set to 1, the customer is notified of all product updates. If set to 0, the customer isn't notified.

Specified by:
setGlobalProdNotifier in interface CustomerIf
Parameters:
globalProdNotifier - The globalProdNotifier to set.

getProductNotifications

public ProductIf[] getProductNotifications()
Description copied from interface: CustomerIf
An array of products for which the customer wants notifications.

Specified by:
getProductNotifications in interface CustomerIf
Returns:
Returns the productNotifications.

setProductNotifications

public void setProductNotifications(ProductIf[] productNotifications)
Description copied from interface: CustomerIf
An array of products for which the customer wants notifications.

Specified by:
setProductNotifications in interface CustomerIf
Parameters:
productNotifications - The productNotifications to set.

getOrders

public OrderIf[] getOrders()
Description copied from interface: CustomerIf
An array of orders for this customer.

Specified by:
getOrders in interface CustomerIf
Returns:
Returns the orders.

setOrders

public void setOrders(OrderIf[] orders)
Description copied from interface: CustomerIf
An array of orders for this customer.

Specified by:
setOrders in interface CustomerIf
Parameters:
orders - The orders to set.

getCustom1

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

setCustom1

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

getCustom2

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

setCustom2

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

getCustom3

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

setCustom3

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

getCustom4

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

setCustom4

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

getCustom5

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

setCustom5

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

getType

public int getType()
Description copied from interface: CustomerIf
Type of customer.

Specified by:
getType in interface CustomerIf
Returns:
Returns the type.

setType

public void setType(int type)
Description copied from interface: CustomerIf
Type of customer.

Specified by:
setType in interface CustomerIf
Parameters:
type - The type to set.

getGroupId

public int getGroupId()
Description copied from interface: CustomerIf
If negative, the customer belongs to no groups.

Specified by:
getGroupId in interface CustomerIf
Returns:
Returns the groupId.

setGroupId

public void setGroupId(int groupId)
Description copied from interface: CustomerIf
If negative, the customer belongs to no groups.

Specified by:
setGroupId in interface CustomerIf
Parameters:
groupId - The groupId to set.

getCustomerGroup

public CustomerGroupIf getCustomerGroup()
Description copied from interface: CustomerIf
The Customer Group to which the customer belongs. It may be null.

Specified by:
getCustomerGroup in interface CustomerIf
Returns:
Returns the customerGroup.

setCustomerGroup

public void setCustomerGroup(CustomerGroupIf customerGroup)
Description copied from interface: CustomerIf
The Customer Group to which the customer belongs. It may be null.

Specified by:
setCustomerGroup in interface CustomerIf
Parameters:
customerGroup - The customerGroup to set.

getWishLists

public WishListIf[] getWishLists()
Description copied from interface: CustomerIf
An array of Wish Lists belonging to the customer

Specified by:
getWishLists in interface CustomerIf
Returns:
Returns the wishLists.

setWishLists

public void setWishLists(WishListIf[] wishLists)
Description copied from interface: CustomerIf
An array of Wish Lists belonging to the customer

Specified by:
setWishLists in interface CustomerIf
Parameters:
wishLists - The wishLists to set.

getLocale

public java.lang.String getLocale()
Locale of the customer

Specified by:
getLocale in interface CustomerIf
Returns:
the locale

setLocale

public void setLocale(java.lang.String locale)
Locale of the customer

Specified by:
setLocale in interface CustomerIf
Parameters:
locale - the locale to set

getTelephoneNumber1

public java.lang.String getTelephoneNumber1()
Specified by:
getTelephoneNumber1 in interface CustomerIf
Returns:
the telephoneNumber1

setTelephoneNumber1

public void setTelephoneNumber1(java.lang.String telephoneNumber1)
Specified by:
setTelephoneNumber1 in interface CustomerIf
Parameters:
telephoneNumber1 - the telephoneNumber1 to set

getInvisible

public byte getInvisible()
Specified by:
getInvisible in interface CustomerIf
Returns:
the invisible

setInvisible

public void setInvisible(byte invisible)
Specified by:
setInvisible in interface CustomerIf
Parameters:
invisible - the invisible to set


Copyright © 2011 DS Data Systems UK Ltd.