public class Customer extends java.lang.Object implements CustomerIf
Constructor and Description |
---|
Customer()
Constructor
|
Customer(com.workingdogs.village.Record vr,
KKCriteria c)
Instantiates the attributes of the Customer object from a Record object
|
Modifier and Type | Method and Description |
---|---|
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() |
CustomerIf[] |
getChildren()
The children of this customer when there is a hierarchical structure
|
java.lang.String |
getCustom1() |
java.lang.String |
getCustom2() |
java.lang.String |
getCustom3() |
java.lang.String |
getCustom4() |
java.lang.String |
getCustom5() |
java.lang.String |
getCustom6() |
java.lang.String |
getCustom7() |
java.lang.String |
getCustom8() |
CustomerGroupIf |
getCustomerGroup()
The Customer Group to which the customer belongs.
|
java.lang.Object |
getCustomObj()
Returns the transient Custom Object.
|
AddressIf |
getDefaultAddr() |
int |
getDefaultAddrId()
Identifies the default address for this customer.
|
java.lang.String |
getEmailAddr() |
java.lang.Boolean |
getEnabled()
Defines whether the customer is enabled and so whether he can login
|
java.lang.String |
getExtReference1()
General purpose external customer reference identifier
|
java.lang.String |
getExtReference2()
General purpose external customer reference identifier
|
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 |
getLastOrderStoreId() |
java.lang.String |
getLocale()
Locale of the customer
|
java.lang.String |
getNaturalPerson()
NaturalPerson 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.
|
CustomerIf |
getParent()
The parent of this customer when there is a hierarchical structure
|
int |
getParentId()
The parent id of the customer
|
java.lang.String |
getPassword() |
java.util.Calendar |
getPasswordExpiry()
The password expiry date.
|
java.lang.String |
getPrivacy() |
ProductIf[] |
getProductNotifications()
An array of products for which the customer wants notifications.
|
SuggestionIf[] |
getSuggestions() |
java.lang.String |
getTaxEntity() |
java.lang.String |
getTaxExemption() |
java.lang.String |
getTaxIdentifier()
Customer's tax identifier
|
java.lang.String |
getTaxIdentifier2()
Customer's tax identifier2
|
java.lang.String |
getTelephoneNumber() |
java.lang.String |
getTelephoneNumber1() |
java.lang.String |
getTerms() |
java.lang.String |
getTitle() |
int |
getType()
Type of customer.
|
java.lang.String |
getUsername() |
WishListIf[] |
getWishLists()
An array of Wish Lists belonging to the customer
|
boolean |
isChangePassword()
The customer must be forced to change his password when true
|
boolean |
isEmailVerified() |
java.lang.Boolean |
isEnabled()
Defines whether the customer is enabled and so whether he can login
|
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 |
setChangePassword(boolean changePassword)
The customer must be forced to change his password when true
|
void |
setChildren(CustomerIf[] children)
The children of this customer when there is a hierarchical structure
|
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 |
setCustom6(java.lang.String custom6) |
void |
setCustom7(java.lang.String custom7) |
void |
setCustom8(java.lang.String custom8) |
void |
setCustomerGroup(CustomerGroupIf customerGroup)
The Customer Group to which the customer belongs.
|
void |
setCustomObj(java.lang.Object customObj)
Set the transient Custom Object.
|
void |
setDefaultAddr(AddressIf defaultAddr) |
void |
setDefaultAddrId(int defaultAddrId)
Identifies the default address for this customer.
|
void |
setEmailAddr(java.lang.String emailAddr) |
void |
setEmailVerified(boolean emailVerified) |
void |
setEnabled(java.lang.Boolean enabled)
Defines whether the customer is enabled and so whether he can login
|
void |
setExtReference1(java.lang.String extReference1)
General purpose external customer reference identifier
|
void |
setExtReference2(java.lang.String extReference2)
General purpose external customer reference identifier
|
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 |
setLastOrderStoreId(java.lang.String lastOrderStoreId) |
void |
setLocale(java.lang.String locale)
Locale of the customer
|
void |
setNaturalPerson(java.lang.String naturalPerson)
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 |
setParent(CustomerIf parent)
The parent of this customer when there is a hierarchical structure
|
void |
setParentId(int parentId)
The parent id of the customer
|
void |
setPassword(java.lang.String password) |
void |
setPasswordExpiry(java.util.Calendar passwordExpiry)
The password expiry date.
|
void |
setPrivacy(java.lang.String privacy) |
void |
setProductNotifications(ProductIf[] productNotifications)
An array of products for which the customer wants notifications.
|
void |
setSuggestions(SuggestionIf[] suggestions) |
void |
setTaxEntity(java.lang.String taxEntity) |
void |
setTaxExemption(java.lang.String taxExemption) |
void |
setTaxIdentifier(java.lang.String taxIdentifier)
Customer's tax identifier
|
void |
setTaxIdentifier2(java.lang.String taxIdentifier2)
Customer's tax identifier2
|
void |
setTelephoneNumber(java.lang.String telephoneNumber) |
void |
setTelephoneNumber1(java.lang.String telephoneNumber1) |
void |
setTerms(java.lang.String terms) |
void |
setTitle(java.lang.String title) |
void |
setType(int type)
Type of customer.
|
void |
setUsername(java.lang.String username) |
void |
setWishLists(WishListIf[] wishLists)
An array of Wish Lists belonging to the customer
|
java.lang.String |
toString() |
java.lang.String |
toStringBrief() |
public Customer()
public Customer(com.workingdogs.village.Record vr, KKCriteria c) throws com.workingdogs.village.DataSetException
vr
- Record containing datac
- Criteria containing column namescom.workingdogs.village.DataSetException
- an unexpected exception due to data in Torque (the database layer)public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String toStringBrief()
public AddressIf getDefaultAddr()
getDefaultAddr
in interface CustomerIf
public void setDefaultAddr(AddressIf defaultAddr)
setDefaultAddr
in interface CustomerIf
defaultAddr
- The defaultAddr to set.public java.lang.String getEmailAddr()
getEmailAddr
in interface CustomerIf
public void setEmailAddr(java.lang.String emailAddr)
setEmailAddr
in interface CustomerIf
emailAddr
- The emailAddr to set.public java.lang.String getFaxNumber()
getFaxNumber
in interface CustomerIf
public void setFaxNumber(java.lang.String faxNumber)
setFaxNumber
in interface CustomerIf
faxNumber
- The faxNumber to set.public java.lang.String getFirstName()
getFirstName
in interface CustomerIf
public void setFirstName(java.lang.String firstName)
setFirstName
in interface CustomerIf
firstName
- The firstName to set.public java.lang.String getGender()
getGender
in interface CustomerIf
public void setGender(java.lang.String gender)
setGender
in interface CustomerIf
gender
- The gender to set.public int getId()
getId
in interface CustomerIf
public void setId(int id)
setId
in interface CustomerIf
id
- The id to set.public java.lang.String getLastName()
getLastName
in interface CustomerIf
public void setLastName(java.lang.String lastName)
setLastName
in interface CustomerIf
lastName
- The lastName to set.public java.lang.String getNewsletter()
CustomerIf
getNewsletter
in interface CustomerIf
public void setNewsletter(java.lang.String newsletter)
CustomerIf
setNewsletter
in interface CustomerIf
newsletter
- The newsletter to set.public int getNumberOfLogons()
CustomerIf
getNumberOfLogons
in interface CustomerIf
public void setNumberOfLogons(int numberOfLogons)
CustomerIf
setNumberOfLogons
in interface CustomerIf
numberOfLogons
- The numberOfLogons to set.public java.lang.String getPassword()
getPassword
in interface CustomerIf
public void setPassword(java.lang.String password)
setPassword
in interface CustomerIf
password
- The password to set.public java.lang.String getTelephoneNumber()
getTelephoneNumber
in interface CustomerIf
public void setTelephoneNumber(java.lang.String telephoneNumber)
setTelephoneNumber
in interface CustomerIf
telephoneNumber
- The telephoneNumber to set.public java.util.Calendar getAccountCreated()
CustomerIf
getAccountCreated
in interface CustomerIf
public void setAccountCreated(java.util.Calendar accountCreated)
CustomerIf
setAccountCreated
in interface CustomerIf
accountCreated
- The accountCreated to set.public java.util.Calendar getAccountLastModified()
getAccountLastModified
in interface CustomerIf
public void setAccountLastModified(java.util.Calendar accountLastModified)
setAccountLastModified
in interface CustomerIf
accountLastModified
- The accountLastModified to set.public java.util.Calendar getBirthDate()
getBirthDate
in interface CustomerIf
public void setBirthDate(java.util.Calendar birthDate)
setBirthDate
in interface CustomerIf
birthDate
- The birthDate to set.public java.util.Calendar getLastLogon()
getLastLogon
in interface CustomerIf
public void setLastLogon(java.util.Calendar lastLogon)
setLastLogon
in interface CustomerIf
lastLogon
- The lastLogon to set.public BasketIf[] getBasketItems()
CustomerIf
getBasketItems
in interface CustomerIf
public void setBasketItems(BasketIf[] basketItems)
CustomerIf
setBasketItems
in interface CustomerIf
basketItems
- The basketItems to set.public int getDefaultAddrId()
CustomerIf
getDefaultAddrId
in interface CustomerIf
public void setDefaultAddrId(int defaultAddrId)
CustomerIf
setDefaultAddrId
in interface CustomerIf
defaultAddrId
- The defaultAddrId to set.public AddressIf[] getAddresses()
CustomerIf
getAddresses
in interface CustomerIf
public void setAddresses(AddressIf[] addresses)
CustomerIf
setAddresses
in interface CustomerIf
addresses
- The addresses to set.public int getGlobalProdNotifier()
CustomerIf
getGlobalProdNotifier
in interface CustomerIf
public void setGlobalProdNotifier(int globalProdNotifier)
CustomerIf
setGlobalProdNotifier
in interface CustomerIf
globalProdNotifier
- The globalProdNotifier to set.public ProductIf[] getProductNotifications()
CustomerIf
getProductNotifications
in interface CustomerIf
public void setProductNotifications(ProductIf[] productNotifications)
CustomerIf
setProductNotifications
in interface CustomerIf
productNotifications
- The productNotifications to set.public OrderIf[] getOrders()
CustomerIf
getOrders
in interface CustomerIf
public void setOrders(OrderIf[] orders)
CustomerIf
setOrders
in interface CustomerIf
orders
- The orders to set.public java.lang.String getCustom1()
getCustom1
in interface CustomerIf
public void setCustom1(java.lang.String custom1)
setCustom1
in interface CustomerIf
custom1
- The custom1 to set.public java.lang.String getCustom2()
getCustom2
in interface CustomerIf
public void setCustom2(java.lang.String custom2)
setCustom2
in interface CustomerIf
custom2
- The custom2 to set.public java.lang.String getCustom3()
getCustom3
in interface CustomerIf
public void setCustom3(java.lang.String custom3)
setCustom3
in interface CustomerIf
custom3
- The custom3 to set.public java.lang.String getCustom4()
getCustom4
in interface CustomerIf
public void setCustom4(java.lang.String custom4)
setCustom4
in interface CustomerIf
custom4
- The custom4 to set.public java.lang.String getCustom5()
getCustom5
in interface CustomerIf
public void setCustom5(java.lang.String custom5)
setCustom5
in interface CustomerIf
custom5
- The custom5 to set.public java.lang.String getCustom6()
getCustom6
in interface CustomerIf
public void setCustom6(java.lang.String custom6)
setCustom6
in interface CustomerIf
custom6
- the custom6 to setpublic java.lang.String getCustom7()
getCustom7
in interface CustomerIf
public void setCustom7(java.lang.String custom7)
setCustom7
in interface CustomerIf
custom7
- the custom7 to setpublic java.lang.String getCustom8()
getCustom8
in interface CustomerIf
public void setCustom8(java.lang.String custom8)
setCustom8
in interface CustomerIf
custom8
- the custom8 to setpublic int getType()
CustomerIf
getType
in interface CustomerIf
public void setType(int type)
CustomerIf
setType
in interface CustomerIf
type
- The type to set.public int getGroupId()
CustomerIf
getGroupId
in interface CustomerIf
public void setGroupId(int groupId)
CustomerIf
setGroupId
in interface CustomerIf
groupId
- The groupId to set.public CustomerGroupIf getCustomerGroup()
CustomerIf
getCustomerGroup
in interface CustomerIf
public void setCustomerGroup(CustomerGroupIf customerGroup)
CustomerIf
setCustomerGroup
in interface CustomerIf
customerGroup
- The customerGroup to set.public WishListIf[] getWishLists()
CustomerIf
getWishLists
in interface CustomerIf
public void setWishLists(WishListIf[] wishLists)
CustomerIf
setWishLists
in interface CustomerIf
wishLists
- The wishLists to set.public java.lang.String getLocale()
getLocale
in interface CustomerIf
public void setLocale(java.lang.String locale)
setLocale
in interface CustomerIf
locale
- the locale to setpublic java.lang.String getNaturalPerson()
getNaturalPerson
in interface CustomerIf
public void setNaturalPerson(java.lang.String naturalPerson)
setNaturalPerson
in interface CustomerIf
naturalPerson
- the naturalPerson to setpublic java.lang.String getTelephoneNumber1()
getTelephoneNumber1
in interface CustomerIf
public void setTelephoneNumber1(java.lang.String telephoneNumber1)
setTelephoneNumber1
in interface CustomerIf
telephoneNumber1
- the telephoneNumber1 to setpublic byte getInvisible()
getInvisible
in interface CustomerIf
public void setInvisible(byte invisible)
setInvisible
in interface CustomerIf
invisible
- the invisible to setpublic java.lang.Object getCustomObj()
CustomerIf
getCustomObj
in interface CustomerIf
public void setCustomObj(java.lang.Object customObj)
CustomerIf
setCustomObj
in interface CustomerIf
customObj
- the customObj to setpublic java.lang.String getTaxIdentifier()
getTaxIdentifier
in interface CustomerIf
public void setTaxIdentifier(java.lang.String taxIdentifier)
setTaxIdentifier
in interface CustomerIf
taxIdentifier
- the taxIdentifier to setpublic java.lang.String getTaxIdentifier2()
getTaxIdentifier2
in interface CustomerIf
public void setTaxIdentifier2(java.lang.String taxIdentifier2)
setTaxIdentifier2
in interface CustomerIf
taxIdentifier2
- the taxIdentifier2 to setpublic java.lang.String getExtReference1()
getExtReference1
in interface CustomerIf
public void setExtReference1(java.lang.String extReference1)
setExtReference1
in interface CustomerIf
extReference1
- the extReference1 to setpublic java.lang.String getExtReference2()
getExtReference2
in interface CustomerIf
public void setExtReference2(java.lang.String extReference2)
setExtReference2
in interface CustomerIf
extReference2
- the extReference2 to setpublic java.lang.String getTaxExemption()
getTaxExemption
in interface CustomerIf
public void setTaxExemption(java.lang.String taxExemption)
setTaxExemption
in interface CustomerIf
taxExemption
- the taxExemption to setpublic java.lang.String getTaxEntity()
getTaxEntity
in interface CustomerIf
public void setTaxEntity(java.lang.String taxEntity)
setTaxEntity
in interface CustomerIf
taxEntity
- the taxEntity to setpublic boolean isEmailVerified()
isEmailVerified
in interface CustomerIf
public void setEmailVerified(boolean emailVerified)
setEmailVerified
in interface CustomerIf
emailVerified
- the emailVerified to setpublic java.lang.Boolean isEnabled()
isEnabled
in interface CustomerIf
public java.lang.Boolean getEnabled()
getEnabled
in interface CustomerIf
public void setEnabled(java.lang.Boolean enabled)
setEnabled
in interface CustomerIf
enabled
- the enabled to setpublic int getParentId()
CustomerIf
getParentId
in interface CustomerIf
public void setParentId(int parentId)
CustomerIf
setParentId
in interface CustomerIf
parentId
- the parentId to setpublic CustomerIf[] getChildren()
getChildren
in interface CustomerIf
public void setChildren(CustomerIf[] children)
setChildren
in interface CustomerIf
children
- the children to setpublic CustomerIf getParent()
getParent
in interface CustomerIf
public void setParent(CustomerIf parent)
setParent
in interface CustomerIf
parent
- the parent to setpublic java.util.Calendar getPasswordExpiry()
getPasswordExpiry
in interface CustomerIf
public void setPasswordExpiry(java.util.Calendar passwordExpiry)
setPasswordExpiry
in interface CustomerIf
passwordExpiry
- the passwordExpiry to setpublic boolean isChangePassword()
isChangePassword
in interface CustomerIf
public void setChangePassword(boolean changePassword)
setChangePassword
in interface CustomerIf
changePassword
- the changePassword to setpublic java.lang.String getUsername()
getUsername
in interface CustomerIf
public void setUsername(java.lang.String username)
setUsername
in interface CustomerIf
username
- the username to setpublic SuggestionIf[] getSuggestions()
getSuggestions
in interface CustomerIf
public void setSuggestions(SuggestionIf[] suggestions)
setSuggestions
in interface CustomerIf
suggestions
- the product recommendation suggestions to setpublic java.lang.String getLastOrderStoreId()
getLastOrderStoreId
in interface CustomerIf
public void setLastOrderStoreId(java.lang.String lastOrderStoreId)
setLastOrderStoreId
in interface CustomerIf
lastOrderStoreId
- the lastOrderStoreId to setpublic java.lang.String getTitle()
getTitle
in interface CustomerIf
public void setTitle(java.lang.String title)
setTitle
in interface CustomerIf
title
- the title to setpublic java.lang.String getPrivacy()
getPrivacy
in interface CustomerIf
public void setPrivacy(java.lang.String privacy)
setPrivacy
in interface CustomerIf
privacy
- the privacy to setpublic java.lang.String getTerms()
getTerms
in interface CustomerIf
public void setTerms(java.lang.String terms)
setTerms
in interface CustomerIf
terms
- the terms to setCopyright © 2018 DS Data Systems UK Ltd.