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.Objectpublic java.lang.String toStringBrief()
public AddressIf getDefaultAddr()
getDefaultAddr in interface CustomerIfpublic void setDefaultAddr(AddressIf defaultAddr)
setDefaultAddr in interface CustomerIfdefaultAddr - The defaultAddr to set.public java.lang.String getEmailAddr()
getEmailAddr in interface CustomerIfpublic void setEmailAddr(java.lang.String emailAddr)
setEmailAddr in interface CustomerIfemailAddr - The emailAddr to set.public java.lang.String getFaxNumber()
getFaxNumber in interface CustomerIfpublic void setFaxNumber(java.lang.String faxNumber)
setFaxNumber in interface CustomerIffaxNumber - The faxNumber to set.public java.lang.String getFirstName()
getFirstName in interface CustomerIfpublic void setFirstName(java.lang.String firstName)
setFirstName in interface CustomerIffirstName - The firstName to set.public java.lang.String getGender()
getGender in interface CustomerIfpublic void setGender(java.lang.String gender)
setGender in interface CustomerIfgender - The gender to set.public int getId()
getId in interface CustomerIfpublic void setId(int id)
setId in interface CustomerIfid - The id to set.public java.lang.String getLastName()
getLastName in interface CustomerIfpublic void setLastName(java.lang.String lastName)
setLastName in interface CustomerIflastName - The lastName to set.public java.lang.String getNewsletter()
CustomerIfgetNewsletter in interface CustomerIfpublic void setNewsletter(java.lang.String newsletter)
CustomerIfsetNewsletter in interface CustomerIfnewsletter - The newsletter to set.public int getNumberOfLogons()
CustomerIfgetNumberOfLogons in interface CustomerIfpublic void setNumberOfLogons(int numberOfLogons)
CustomerIfsetNumberOfLogons in interface CustomerIfnumberOfLogons - The numberOfLogons to set.public java.lang.String getPassword()
getPassword in interface CustomerIfpublic void setPassword(java.lang.String password)
setPassword in interface CustomerIfpassword - The password to set.public java.lang.String getTelephoneNumber()
getTelephoneNumber in interface CustomerIfpublic void setTelephoneNumber(java.lang.String telephoneNumber)
setTelephoneNumber in interface CustomerIftelephoneNumber - The telephoneNumber to set.public java.util.Calendar getAccountCreated()
CustomerIfgetAccountCreated in interface CustomerIfpublic void setAccountCreated(java.util.Calendar accountCreated)
CustomerIfsetAccountCreated in interface CustomerIfaccountCreated - The accountCreated to set.public java.util.Calendar getAccountLastModified()
getAccountLastModified in interface CustomerIfpublic void setAccountLastModified(java.util.Calendar accountLastModified)
setAccountLastModified in interface CustomerIfaccountLastModified - The accountLastModified to set.public java.util.Calendar getBirthDate()
getBirthDate in interface CustomerIfpublic void setBirthDate(java.util.Calendar birthDate)
setBirthDate in interface CustomerIfbirthDate - The birthDate to set.public java.util.Calendar getLastLogon()
getLastLogon in interface CustomerIfpublic void setLastLogon(java.util.Calendar lastLogon)
setLastLogon in interface CustomerIflastLogon - The lastLogon to set.public BasketIf[] getBasketItems()
CustomerIfgetBasketItems in interface CustomerIfpublic void setBasketItems(BasketIf[] basketItems)
CustomerIfsetBasketItems in interface CustomerIfbasketItems - The basketItems to set.public int getDefaultAddrId()
CustomerIfgetDefaultAddrId in interface CustomerIfpublic void setDefaultAddrId(int defaultAddrId)
CustomerIfsetDefaultAddrId in interface CustomerIfdefaultAddrId - The defaultAddrId to set.public AddressIf[] getAddresses()
CustomerIfgetAddresses in interface CustomerIfpublic void setAddresses(AddressIf[] addresses)
CustomerIfsetAddresses in interface CustomerIfaddresses - The addresses to set.public int getGlobalProdNotifier()
CustomerIfgetGlobalProdNotifier in interface CustomerIfpublic void setGlobalProdNotifier(int globalProdNotifier)
CustomerIfsetGlobalProdNotifier in interface CustomerIfglobalProdNotifier - The globalProdNotifier to set.public ProductIf[] getProductNotifications()
CustomerIfgetProductNotifications in interface CustomerIfpublic void setProductNotifications(ProductIf[] productNotifications)
CustomerIfsetProductNotifications in interface CustomerIfproductNotifications - The productNotifications to set.public OrderIf[] getOrders()
CustomerIfgetOrders in interface CustomerIfpublic void setOrders(OrderIf[] orders)
CustomerIfsetOrders in interface CustomerIforders - The orders to set.public java.lang.String getCustom1()
getCustom1 in interface CustomerIfpublic void setCustom1(java.lang.String custom1)
setCustom1 in interface CustomerIfcustom1 - The custom1 to set.public java.lang.String getCustom2()
getCustom2 in interface CustomerIfpublic void setCustom2(java.lang.String custom2)
setCustom2 in interface CustomerIfcustom2 - The custom2 to set.public java.lang.String getCustom3()
getCustom3 in interface CustomerIfpublic void setCustom3(java.lang.String custom3)
setCustom3 in interface CustomerIfcustom3 - The custom3 to set.public java.lang.String getCustom4()
getCustom4 in interface CustomerIfpublic void setCustom4(java.lang.String custom4)
setCustom4 in interface CustomerIfcustom4 - The custom4 to set.public java.lang.String getCustom5()
getCustom5 in interface CustomerIfpublic void setCustom5(java.lang.String custom5)
setCustom5 in interface CustomerIfcustom5 - The custom5 to set.public java.lang.String getCustom6()
getCustom6 in interface CustomerIfpublic void setCustom6(java.lang.String custom6)
setCustom6 in interface CustomerIfcustom6 - the custom6 to setpublic java.lang.String getCustom7()
getCustom7 in interface CustomerIfpublic void setCustom7(java.lang.String custom7)
setCustom7 in interface CustomerIfcustom7 - the custom7 to setpublic java.lang.String getCustom8()
getCustom8 in interface CustomerIfpublic void setCustom8(java.lang.String custom8)
setCustom8 in interface CustomerIfcustom8 - the custom8 to setpublic int getType()
CustomerIfgetType in interface CustomerIfpublic void setType(int type)
CustomerIfsetType in interface CustomerIftype - The type to set.public int getGroupId()
CustomerIfgetGroupId in interface CustomerIfpublic void setGroupId(int groupId)
CustomerIfsetGroupId in interface CustomerIfgroupId - The groupId to set.public CustomerGroupIf getCustomerGroup()
CustomerIfgetCustomerGroup in interface CustomerIfpublic void setCustomerGroup(CustomerGroupIf customerGroup)
CustomerIfsetCustomerGroup in interface CustomerIfcustomerGroup - The customerGroup to set.public WishListIf[] getWishLists()
CustomerIfgetWishLists in interface CustomerIfpublic void setWishLists(WishListIf[] wishLists)
CustomerIfsetWishLists in interface CustomerIfwishLists - The wishLists to set.public java.lang.String getLocale()
getLocale in interface CustomerIfpublic void setLocale(java.lang.String locale)
setLocale in interface CustomerIflocale - the locale to setpublic java.lang.String getNaturalPerson()
getNaturalPerson in interface CustomerIfpublic void setNaturalPerson(java.lang.String naturalPerson)
setNaturalPerson in interface CustomerIfnaturalPerson - the naturalPerson to setpublic java.lang.String getTelephoneNumber1()
getTelephoneNumber1 in interface CustomerIfpublic void setTelephoneNumber1(java.lang.String telephoneNumber1)
setTelephoneNumber1 in interface CustomerIftelephoneNumber1 - the telephoneNumber1 to setpublic byte getInvisible()
getInvisible in interface CustomerIfpublic void setInvisible(byte invisible)
setInvisible in interface CustomerIfinvisible - the invisible to setpublic java.lang.Object getCustomObj()
CustomerIfgetCustomObj in interface CustomerIfpublic void setCustomObj(java.lang.Object customObj)
CustomerIfsetCustomObj in interface CustomerIfcustomObj - the customObj to setpublic java.lang.String getTaxIdentifier()
getTaxIdentifier in interface CustomerIfpublic void setTaxIdentifier(java.lang.String taxIdentifier)
setTaxIdentifier in interface CustomerIftaxIdentifier - the taxIdentifier to setpublic java.lang.String getTaxIdentifier2()
getTaxIdentifier2 in interface CustomerIfpublic void setTaxIdentifier2(java.lang.String taxIdentifier2)
setTaxIdentifier2 in interface CustomerIftaxIdentifier2 - the taxIdentifier2 to setpublic java.lang.String getExtReference1()
getExtReference1 in interface CustomerIfpublic void setExtReference1(java.lang.String extReference1)
setExtReference1 in interface CustomerIfextReference1 - the extReference1 to setpublic java.lang.String getExtReference2()
getExtReference2 in interface CustomerIfpublic void setExtReference2(java.lang.String extReference2)
setExtReference2 in interface CustomerIfextReference2 - the extReference2 to setpublic java.lang.String getTaxExemption()
getTaxExemption in interface CustomerIfpublic void setTaxExemption(java.lang.String taxExemption)
setTaxExemption in interface CustomerIftaxExemption - the taxExemption to setpublic java.lang.String getTaxEntity()
getTaxEntity in interface CustomerIfpublic void setTaxEntity(java.lang.String taxEntity)
setTaxEntity in interface CustomerIftaxEntity - the taxEntity to setpublic boolean isEmailVerified()
isEmailVerified in interface CustomerIfpublic void setEmailVerified(boolean emailVerified)
setEmailVerified in interface CustomerIfemailVerified - the emailVerified to setpublic java.lang.Boolean isEnabled()
isEnabled in interface CustomerIfpublic java.lang.Boolean getEnabled()
getEnabled in interface CustomerIfpublic void setEnabled(java.lang.Boolean enabled)
setEnabled in interface CustomerIfenabled - the enabled to setpublic int getParentId()
CustomerIfgetParentId in interface CustomerIfpublic void setParentId(int parentId)
CustomerIfsetParentId in interface CustomerIfparentId - the parentId to setpublic CustomerIf[] getChildren()
getChildren in interface CustomerIfpublic void setChildren(CustomerIf[] children)
setChildren in interface CustomerIfchildren - the children to setpublic CustomerIf getParent()
getParent in interface CustomerIfpublic void setParent(CustomerIf parent)
setParent in interface CustomerIfparent - the parent to setpublic java.util.Calendar getPasswordExpiry()
getPasswordExpiry in interface CustomerIfpublic void setPasswordExpiry(java.util.Calendar passwordExpiry)
setPasswordExpiry in interface CustomerIfpasswordExpiry - the passwordExpiry to setpublic boolean isChangePassword()
isChangePassword in interface CustomerIfpublic void setChangePassword(boolean changePassword)
setChangePassword in interface CustomerIfchangePassword - the changePassword to setpublic java.lang.String getUsername()
getUsername in interface CustomerIfpublic void setUsername(java.lang.String username)
setUsername in interface CustomerIfusername - the username to setpublic SuggestionIf[] getSuggestions()
getSuggestions in interface CustomerIfpublic void setSuggestions(SuggestionIf[] suggestions)
setSuggestions in interface CustomerIfsuggestions - the product recommendation suggestions to setpublic java.lang.String getLastOrderStoreId()
getLastOrderStoreId in interface CustomerIfpublic void setLastOrderStoreId(java.lang.String lastOrderStoreId)
setLastOrderStoreId in interface CustomerIflastOrderStoreId - the lastOrderStoreId to setpublic java.lang.String getTitle()
getTitle in interface CustomerIfpublic void setTitle(java.lang.String title)
setTitle in interface CustomerIftitle - the title to setpublic java.lang.String getPrivacy()
getPrivacy in interface CustomerIfpublic void setPrivacy(java.lang.String privacy)
setPrivacy in interface CustomerIfprivacy - the privacy to setpublic java.lang.String getTerms()
getTerms in interface CustomerIfpublic void setTerms(java.lang.String terms)
setTerms in interface CustomerIfterms - the terms to setCopyright © 2018 DS Data Systems UK Ltd.