| java.lang.Object com.ivata.mask.web.demo.valueobject.DemoValueObject com.ivata.mask.web.demo.customer.CustomerDO
CustomerDO | final public class CustomerDO extends DemoValueObject (Code) | |
Represents a single customer of this imaginary system.
since: ivata masks 0.4 (2004-05-20) author: Colin MacLeod author: colin.macleod@ivata.com version: $Revision: 1.5 $ |
Constructor Summary | |
public | CustomerDO()
Construct a new customer instance with no id. | public | CustomerDO(int idParam)
Construct a new customer instance with the given unique identifier. |
CustomerDO | public CustomerDO()(Code) | |
Construct a new customer instance with no id.
|
CustomerDO | public CustomerDO(int idParam)(Code) | |
Construct a new customer instance with the given unique identifier.
Parameters: idParam - unique identifier of this customer. |
getDisplayValue | public String getDisplayValue()(Code) | | Get a text to display describing the customer. If the customer has a
first and last name, then this will return something like "Freddie
Kruger", otherwise just the first or last name is returned -
whichever is present.
customer's name. See Also: com.ivata.mask.valueobject.ValueObject.getStringValue |
getEmailAddress | public String getEmailAddress()(Code) | | Person's email address (ok - it's a simple system).
string email address such asted@nowhere.com . |
getFirstName | public String getFirstName()(Code) | |
Person's first name(s).
first name such as "Bob", or "Sally". |
getLastName | public String getLastName()(Code) | | Person's last name(s).
last name of the customer, such as "Smith" or"Tarrantino". |
getPostalAddress | public String getPostalAddress()(Code) | | Full customer postal address, including carriage
returns, region/state, country, etc.
Customer's full snail-mail address. |
setEmailAddress | public void setEmailAddress(String emailAddressParam)(Code) | | Person's email address (ok - it's a simple system).
Parameters: emailAddressParam - string email address such asted@nowhere.com . |
setFirstName | public void setFirstName(String firstNameParam)(Code) | |
Person's first name(s).
Parameters: firstNameParam - first name such as "Bob", or"Sally". |
setLastName | public void setLastName(String lastNameParam)(Code) | | Person's last name(s).
Parameters: lastNameParam - last name of the customer, such as "Smith"or "Tarrantino". |
setPostalAddress | public void setPostalAddress(String postalAddressParam)(Code) | | Full customer postal address, including carriage
returns, region/state, country, etc.
Parameters: postalAddressParam - Customer's full snail-mail address. |
|
|