Constructor and Description |
---|
Address()
Constructor
|
Address(com.workingdogs.village.Record vr,
KKCriteria c)
Instantiates the attributes of the Address object from a Record object
|
Modifier and Type | Method and Description |
---|---|
void |
createFormattedAddresses()
Based on the address templates, the formatted addresses are created.
|
int |
getAddressFormatId() |
java.lang.String |
getAddressFormatTemplate()
An example template is $firstname $lastname$cr$streets$cr$city,
$postcode$cr$statecomma$country'.
|
java.lang.String |
getAddressSummaryTemplate()
An example summary template is $city / $country'.
|
java.lang.String |
getCity() |
java.lang.String |
getCompany() |
int |
getCountryId() |
java.lang.String |
getCountryName() |
java.lang.String |
getCustom1() |
java.lang.String |
getCustom2() |
java.lang.String |
getCustom3() |
java.lang.String |
getCustom4() |
java.lang.String |
getCustom5() |
int |
getCustomerId() |
java.lang.String |
getEmailAddr() |
java.lang.String |
getFirstName() |
java.lang.String |
getFormattedAddress()
It is formatted based on the address format template.
|
java.lang.String |
getFormattedAddressWithoutCData() |
java.lang.String |
getFormattedName()
The name formatted by the nameFormatTemplate
|
java.lang.String |
getGender()
Normally set to "m" or "f".
|
int |
getId() |
boolean |
getIsPrimary() |
java.lang.String |
getLastName() |
java.lang.String |
getNameFormatTemplate()
A template to format the name e.g.
|
java.lang.String |
getPostcode() |
java.lang.String |
getState() |
java.lang.String |
getStreetAddress() |
java.lang.String |
getStreetAddress1() |
java.lang.String |
getSuburb() |
java.lang.String |
getSummaryAddress()
It is formatted based on the address summary format template.
|
java.lang.String |
getTelephoneNumber() |
java.lang.String |
getTelephoneNumber1() |
int |
getVendorId() |
int |
getZoneId() |
boolean |
isUseZoneId()
Used when editing and inserting an address.
|
void |
setAddressFormatId(int addressFormatId) |
void |
setAddressFormatTemplate(java.lang.String addressFormatTemplate)
An example template is $firstname $lastname$cr$streets$cr$city,
$postcode$cr$statecomma$country'.
|
void |
setAddressSummaryTemplate(java.lang.String addressSummaryTemplate)
An example summary template is $city / $country'.
|
void |
setCity(java.lang.String city) |
void |
setCompany(java.lang.String company) |
void |
setCountryId(int countryId) |
void |
setCountryName(java.lang.String countryName) |
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 |
setCustomerId(int customerId) |
void |
setEmailAddr(java.lang.String emailAddr) |
void |
setFirstName(java.lang.String firstName) |
void |
setFormattedAddress(java.lang.String formattedAddress)
It is formatted based on the address format template.
|
void |
setFormattedName(java.lang.String formattedName)
The name formatted by the nameFormatTemplate
|
void |
setGender(java.lang.String gender)
Normally set to "m" or "f".
|
void |
setId(int id) |
void |
setIsPrimary(boolean isPrimary) |
void |
setLastName(java.lang.String lastName) |
void |
setNameFormatTemplate(java.lang.String nameFormatTemplate)
A template to format the name e.g.
|
void |
setPostcode(java.lang.String postcode) |
void |
setState(java.lang.String state) |
void |
setStreetAddress(java.lang.String streetAddress) |
void |
setStreetAddress1(java.lang.String streetAddress1) |
void |
setSuburb(java.lang.String suburb) |
void |
setSummaryAddress(java.lang.String summaryAddress)
It is formatted based on the address summary format template.
|
void |
setTelephoneNumber(java.lang.String telephoneNumber) |
void |
setTelephoneNumber1(java.lang.String telephoneNumber1) |
void |
setUseZoneId(boolean useZoneId)
Used when editing and inserting an address.
|
void |
setVendorId(int vendorId) |
void |
setZoneId(int zoneId) |
java.lang.String |
toString() |
java.lang.String |
toStringBrief() |
public Address()
public Address(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 void createFormattedAddresses()
$firstname $lastname$cr$company$cr$streets$cr$city, $postcode$cr$state, $country$crtel: $telephone $telephone1$cremail: $email
Valid template attributes are:
public java.lang.String toStringBrief()
public java.lang.String getCity()
public void setCity(java.lang.String city)
public java.lang.String getCompany()
getCompany
in interface AddressIf
public void setCompany(java.lang.String company)
setCompany
in interface AddressIf
company
- The company to set.public int getCountryId()
getCountryId
in interface AddressIf
public void setCountryId(int countryId)
setCountryId
in interface AddressIf
countryId
- The country to set.public int getCustomerId()
getCustomerId
in interface AddressIf
public void setCustomerId(int customerId)
setCustomerId
in interface AddressIf
customerId
- The customerId to set.public java.lang.String getFirstName()
getFirstName
in interface AddressIf
public void setFirstName(java.lang.String firstName)
setFirstName
in interface AddressIf
firstName
- The firstName to set.public java.lang.String getGender()
public void setGender(java.lang.String gender)
public void setId(int id)
public java.lang.String getLastName()
getLastName
in interface AddressIf
public void setLastName(java.lang.String lastName)
setLastName
in interface AddressIf
lastName
- The lastName to set.public java.lang.String getPostcode()
getPostcode
in interface AddressIf
public void setPostcode(java.lang.String postcode)
setPostcode
in interface AddressIf
postcode
- The postcode to set.public java.lang.String getState()
public void setState(java.lang.String state)
public java.lang.String getStreetAddress()
getStreetAddress
in interface AddressIf
public void setStreetAddress(java.lang.String streetAddress)
setStreetAddress
in interface AddressIf
streetAddress
- The streetAddress to set.public java.lang.String getSuburb()
public void setSuburb(java.lang.String suburb)
public int getZoneId()
public void setZoneId(int zoneId)
public java.lang.String getAddressFormatTemplate()
AddressIf
getAddressFormatTemplate
in interface AddressIf
public void setAddressFormatTemplate(java.lang.String addressFormatTemplate)
AddressIf
setAddressFormatTemplate
in interface AddressIf
addressFormatTemplate
- The addressFormatTemplate to set.public java.lang.String getAddressSummaryTemplate()
AddressIf
getAddressSummaryTemplate
in interface AddressIf
public void setAddressSummaryTemplate(java.lang.String addressSummaryTemplate)
AddressIf
setAddressSummaryTemplate
in interface AddressIf
addressSummaryTemplate
- The addressSummaryTemplate to set.public java.lang.String getFormattedAddress()
AddressIf
getFormattedAddress
in interface AddressIf
public java.lang.String getFormattedAddressWithoutCData()
public void setFormattedAddress(java.lang.String formattedAddress)
AddressIf
setFormattedAddress
in interface AddressIf
formattedAddress
- The formattedAddress to set.public java.lang.String getSummaryAddress()
AddressIf
getSummaryAddress
in interface AddressIf
public void setSummaryAddress(java.lang.String summaryAddress)
AddressIf
setSummaryAddress
in interface AddressIf
summaryAddress
- The summaryAddress to set.public java.lang.String getCountryName()
getCountryName
in interface AddressIf
public void setCountryName(java.lang.String countryName)
setCountryName
in interface AddressIf
countryName
- The countryName to set.public boolean getIsPrimary()
getIsPrimary
in interface AddressIf
public void setIsPrimary(boolean isPrimary)
setIsPrimary
in interface AddressIf
isPrimary
- The isPrimary to set.public int getAddressFormatId()
getAddressFormatId
in interface AddressIf
public void setAddressFormatId(int addressFormatId)
setAddressFormatId
in interface AddressIf
addressFormatId
- The addressFormatId to set.public java.lang.String getCustom1()
getCustom1
in interface AddressIf
public void setCustom1(java.lang.String custom1)
setCustom1
in interface AddressIf
custom1
- The custom1 to set.public java.lang.String getCustom2()
getCustom2
in interface AddressIf
public void setCustom2(java.lang.String custom2)
setCustom2
in interface AddressIf
custom2
- The custom2 to set.public java.lang.String getCustom3()
getCustom3
in interface AddressIf
public void setCustom3(java.lang.String custom3)
setCustom3
in interface AddressIf
custom3
- The custom3 to set.public java.lang.String getCustom4()
getCustom4
in interface AddressIf
public void setCustom4(java.lang.String custom4)
setCustom4
in interface AddressIf
custom4
- The custom4 to set.public java.lang.String getCustom5()
getCustom5
in interface AddressIf
public void setCustom5(java.lang.String custom5)
setCustom5
in interface AddressIf
custom5
- The custom5 to set.public java.lang.String getTelephoneNumber()
getTelephoneNumber
in interface AddressIf
public void setTelephoneNumber(java.lang.String telephoneNumber)
setTelephoneNumber
in interface AddressIf
telephoneNumber
- the telephoneNumber to setpublic java.lang.String getTelephoneNumber1()
getTelephoneNumber1
in interface AddressIf
public void setTelephoneNumber1(java.lang.String telephoneNumber1)
setTelephoneNumber1
in interface AddressIf
telephoneNumber1
- the telephoneNumber1 to setpublic java.lang.String getEmailAddr()
getEmailAddr
in interface AddressIf
public void setEmailAddr(java.lang.String emailAddr)
setEmailAddr
in interface AddressIf
emailAddr
- the emailAddr to setpublic java.lang.String getStreetAddress1()
getStreetAddress1
in interface AddressIf
public void setStreetAddress1(java.lang.String streetAddress1)
setStreetAddress1
in interface AddressIf
streetAddress1
- the streetAddress1 to setpublic boolean isUseZoneId()
AddressIf
isUseZoneId
in interface AddressIf
public void setUseZoneId(boolean useZoneId)
AddressIf
setUseZoneId
in interface AddressIf
useZoneId
- the useZoneId to setpublic java.lang.String getNameFormatTemplate()
AddressIf
getNameFormatTemplate
in interface AddressIf
public void setNameFormatTemplate(java.lang.String nameFormatTemplate)
AddressIf
setNameFormatTemplate
in interface AddressIf
nameFormatTemplate
- the nameFormatTemplate to setpublic java.lang.String getFormattedName()
AddressIf
getFormattedName
in interface AddressIf
public void setFormattedName(java.lang.String formattedName)
AddressIf
setFormattedName
in interface AddressIf
formattedName
- the formattedName to setpublic int getVendorId()
getVendorId
in interface AddressIf
public void setVendorId(int vendorId)
setVendorId
in interface AddressIf
vendorId
- the vendorId to setCopyright © 2018 DS Data Systems UK Ltd.