com.konakart.appif
Interface CustomerIf


public interface CustomerIf

Details of a KonaKart customer.


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()
           
 java.util.Calendar getLastLogon()
           
 java.lang.String getLastName()
           
 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()
           
 int getType()
          Type of 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 setLastLogon(java.util.Calendar lastLogon)
           
 void setLastName(java.lang.String lastName)
           
 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 setType(int type)
          Type of customer.
 

Method Detail

getDefaultAddr

AddressIf getDefaultAddr()
Returns:
Returns the defaultAddr.

setDefaultAddr

void setDefaultAddr(AddressIf defaultAddr)
Parameters:
defaultAddr - The defaultAddr to set.

getEmailAddr

java.lang.String getEmailAddr()
Returns:
Returns the emailAddr.

setEmailAddr

void setEmailAddr(java.lang.String emailAddr)
Parameters:
emailAddr - The emailAddr to set.

getFaxNumber

java.lang.String getFaxNumber()
Returns:
Returns the faxNumber.

setFaxNumber

void setFaxNumber(java.lang.String faxNumber)
Parameters:
faxNumber - The faxNumber to set.

getFirstName

java.lang.String getFirstName()
Returns:
Returns the firstName.

setFirstName

void setFirstName(java.lang.String firstName)
Parameters:
firstName - The firstName to set.

getGender

java.lang.String getGender()
Normally set to "m" or "f" .

Returns:
Returns the gender.

setGender

void setGender(java.lang.String gender)
Normally set to "m" or "f" .

Parameters:
gender - The gender to set.

getId

int getId()
Returns:
Returns the id.

setId

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

getLastName

java.lang.String getLastName()
Returns:
Returns the lastName.

setLastName

void setLastName(java.lang.String lastName)
Parameters:
lastName - The lastName to set.

getNewsletter

java.lang.String getNewsletter()
Set to "1" if the customer should receive the newsletter or "0" if he shouldn't.

Returns:
Returns the newsletter.

setNewsletter

void setNewsletter(java.lang.String newsletter)
Set to "1" if the customer should receive the newsletter or "0" if he shouldn't.

Parameters:
newsletter - The newsletter to set.

getNumberOfLogons

int getNumberOfLogons()
The number of times that the customer has logged in to the application.

Returns:
Returns the numberOfLogons.

setNumberOfLogons

void setNumberOfLogons(int numberOfLogons)
The number of times that the customer has logged in to the application.

Parameters:
numberOfLogons - The numberOfLogons to set.

getPassword

java.lang.String getPassword()
Returns:
Returns the password.

setPassword

void setPassword(java.lang.String password)
Parameters:
password - The password to set.

getTelephoneNumber

java.lang.String getTelephoneNumber()
Returns:
Returns the telephoneNumber.

setTelephoneNumber

void setTelephoneNumber(java.lang.String telephoneNumber)
Parameters:
telephoneNumber - The telephoneNumber to set.

getAccountCreated

java.util.Calendar getAccountCreated()
When the account was created.

Returns:
Returns the accountCreated.

setAccountCreated

void setAccountCreated(java.util.Calendar accountCreated)
When the account was created.

Parameters:
accountCreated - The accountCreated to set.

getAccountLastModified

java.util.Calendar getAccountLastModified()
Returns:
Returns the accountLastModified.

setAccountLastModified

void setAccountLastModified(java.util.Calendar accountLastModified)
Parameters:
accountLastModified - The accountLastModified to set.

getBirthDate

java.util.Calendar getBirthDate()
Returns:
Returns the birthDate.

setBirthDate

void setBirthDate(java.util.Calendar birthDate)
Parameters:
birthDate - The birthDate to set.

getLastLogon

java.util.Calendar getLastLogon()
Returns:
Returns the lastLogon.

setLastLogon

void setLastLogon(java.util.Calendar lastLogon)
Parameters:
lastLogon - The lastLogon to set.

getBasketItems

BasketIf[] getBasketItems()
An array of basket items for this customer.

Returns:
Returns the basketItems.

setBasketItems

void setBasketItems(BasketIf[] basketItems)
An array of basket items for this customer.

Parameters:
basketItems - The basketItems to set.

getDefaultAddrId

int getDefaultAddrId()
Identifies the default address for this customer. A customer may have multiple addresses.

Returns:
Returns the defaultAddrId.

setDefaultAddrId

void setDefaultAddrId(int defaultAddrId)
Identifies the default address for this customer. A customer may have multiple addresses.

Parameters:
defaultAddrId - The defaultAddrId to set.

getAddresses

AddressIf[] getAddresses()
An array containing all of the addresses defined for this customer.

Returns:
Returns the addresses.

setAddresses

void setAddresses(AddressIf[] addresses)
An array containing all of the addresses defined for this customer.

Parameters:
addresses - The addresses to set.

getGlobalProdNotifier

int getGlobalProdNotifier()
If set to 1, the customer is notified of all product updates. If set to 0, the customer isn't notified.

Returns:
Returns the globalProdNotifier.

setGlobalProdNotifier

void setGlobalProdNotifier(int globalProdNotifier)
If set to 1, the customer is notified of all product updates. If set to 0, the customer isn't notified.

Parameters:
globalProdNotifier - The globalProdNotifier to set.

getProductNotifications

ProductIf[] getProductNotifications()
An array of products for which the customer wants notifications.

Returns:
Returns the productNotifications.

setProductNotifications

void setProductNotifications(ProductIf[] productNotifications)
An array of products for which the customer wants notifications.

Parameters:
productNotifications - The productNotifications to set.

getOrders

OrderIf[] getOrders()
An array of orders for this customer.

Returns:
Returns the orders.

setOrders

void setOrders(OrderIf[] orders)
An array of orders for this customer.

Parameters:
orders - The orders to set.

getCustom1

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

setCustom1

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

getCustom2

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

setCustom2

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

getCustom3

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

setCustom3

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

getCustom4

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

setCustom4

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

getCustom5

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

setCustom5

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

getType

int getType()
Type of customer.

Returns:
Returns the type.

setType

void setType(int type)
Type of customer.

Parameters:
type - The type to set.

getGroupId

int getGroupId()
If negative, the customer belongs to no groups.

Returns:
Returns the groupId.

setGroupId

void setGroupId(int groupId)
If negative, the customer belongs to no groups.

Parameters:
groupId - The groupId to set.

getCustomerGroup

CustomerGroupIf getCustomerGroup()
The Customer Group to which the customer belongs. It may be null.

Returns:
Returns the customerGroup.

setCustomerGroup

void setCustomerGroup(CustomerGroupIf customerGroup)
The Customer Group to which the customer belongs. It may be null.

Parameters:
customerGroup - The customerGroup to set.


Copyright © 2006 DS Data Systems UK Ltd.