com.konakart.json.app
Class J_Customer

java.lang.Object
  extended by com.konakart.json.app.J_Customer
All Implemented Interfaces:
java.io.Serializable

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

Details of a KonaKart customer.

See Also:
Serialized Form

Constructor Summary
J_Customer()
           
 
Method Summary
 java.util.Calendar getAccountCreated()
          When the account was created.
 java.util.Calendar getAccountLastModified()
           
 J_Address[] getAddresses()
          An array containing all of the addresses defined for this customer.
 J_Basket[] 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()
           
 J_CustomerGroup getCustomerGroup()
          The Customer Group to which the customer belongs.
 J_Address 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.
 J_Order[] getOrders()
          An array of orders for this customer.
 java.lang.String getPassword()
           
 J_Product[] getProductNotifications()
          An array of products for which the customer wants notifications.
 java.lang.String getTelephoneNumber()
           
 java.lang.String getTelephoneNumber1()
           
 int getType()
          Type of customer.
 J_WishList[] 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(J_Address[] _addresses)
          An array containing all of the addresses defined for this customer.
 void setBasketItems(J_Basket[] _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(J_CustomerGroup _customerGroup)
          The Customer Group to which the customer belongs.
 void setDefaultAddr(J_Address _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(J_Order[] _orders)
          An array of orders for this customer.
 void setPassword(java.lang.String _password)
           
 void setProductNotifications(J_Product[] _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(J_WishList[] _wishLists)
          An array of Wish Lists belonging to the customer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

J_Customer

public J_Customer()
Method Detail

getDefaultAddr

public J_Address getDefaultAddr()
Returns:
Returns the defaultAddr.

setDefaultAddr

public void setDefaultAddr(J_Address _defaultAddr)
Parameters:
_defaultAddr - The defaultAddr to set.

getEmailAddr

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

setEmailAddr

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

getFaxNumber

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

setFaxNumber

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

getFirstName

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

setFirstName

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

getGender

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

Returns:
Returns the gender.

setGender

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

Parameters:
_gender - The gender to set.

getId

public int getId()
Returns:
Returns the id.

setId

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

getLastName

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

setLastName

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

getNewsletter

public 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

public 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

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

Returns:
Returns the numberOfLogons.

setNumberOfLogons

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

Parameters:
_numberOfLogons - The numberOfLogons to set.

getPassword

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

setPassword

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

getTelephoneNumber

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

setTelephoneNumber

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

getTelephoneNumber1

public java.lang.String getTelephoneNumber1()
Returns:
the telephoneNumber1

setTelephoneNumber1

public void setTelephoneNumber1(java.lang.String _telephoneNumber1)
Parameters:
_telephoneNumber1 - the telephoneNumber1 to set

getAccountCreated

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

Returns:
Returns the accountCreated.

setAccountCreated

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

Parameters:
_accountCreated - The accountCreated to set.

getAccountLastModified

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

setAccountLastModified

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

getBirthDate

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

setBirthDate

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

getLastLogon

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

setLastLogon

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

getBasketItems

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

Returns:
Returns the basketItems.

setBasketItems

public void setBasketItems(J_Basket[] _basketItems)
An array of basket items for this customer.

Parameters:
_basketItems - The basketItems to set.

getDefaultAddrId

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

Returns:
Returns the defaultAddrId.

setDefaultAddrId

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

Parameters:
_defaultAddrId - The defaultAddrId to set.

getAddresses

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

Returns:
Returns the addresses.

setAddresses

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

Parameters:
_addresses - The addresses to set.

getGlobalProdNotifier

public 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

public 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

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

Returns:
Returns the productNotifications.

setProductNotifications

public void setProductNotifications(J_Product[] _productNotifications)
An array of products for which the customer wants notifications.

Parameters:
_productNotifications - The productNotifications to set.

getOrders

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

Returns:
Returns the orders.

setOrders

public void setOrders(J_Order[] _orders)
An array of orders for this customer.

Parameters:
_orders - The orders 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.

getType

public int getType()
Type of customer.

Returns:
Returns the type.

setType

public void setType(int _type)
Type of customer.

Parameters:
_type - The type to set.

getGroupId

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

Returns:
Returns the groupId.

setGroupId

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

Parameters:
_groupId - The groupId to set.

getCustomerGroup

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

Returns:
Returns the customerGroup.

setCustomerGroup

public void setCustomerGroup(J_CustomerGroup _customerGroup)
The Customer Group to which the customer belongs. It may be null.

Parameters:
_customerGroup - The customerGroup to set.

getWishLists

public J_WishList[] getWishLists()
An array of Wish Lists belonging to the customer

Returns:
Returns the wishLists.

setWishLists

public void setWishLists(J_WishList[] _wishLists)
An array of Wish Lists belonging to the customer

Parameters:
_wishLists - The wishLists to set.

getLocale

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

Returns:
the locale

setLocale

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

Parameters:
_locale - the locale to set

getInvisible

public byte getInvisible()
Returns:
the invisible

setInvisible

public void setInvisible(byte _invisible)
Parameters:
_invisible - the invisible to set


Copyright © 2011 DS Data Systems UK Ltd.