com.ivata.mask.web.demo.customer
Class CustomerDO

java.lang.Object
  extended bycom.ivata.mask.web.demo.valueobject.DemoValueObject
      extended bycom.ivata.mask.web.demo.customer.CustomerDO
All Implemented Interfaces:
java.io.Serializable, com.ivata.mask.valueobject.ValueObject

public final class CustomerDO
extends DemoValueObject

Represents a single customer of this imaginary system.

Since:
ivata masks 0.4 (2004-05-20)
Version:
$Revision: 1.4 $
Author:
Colin MacLeod colin.macleod@ivata.com
See Also:
Serialized Form

Constructor Summary
CustomerDO()
           Construct a new customer instance with no id.
CustomerDO(int idParam)
           Construct a new customer instance with the given unique identifier.
 
Method Summary
 java.lang.String getDisplayValue()
          Get a text to display describing the customer.
 java.lang.String getEmailAddress()
          Person's email address (ok - it's a simple system).
 java.lang.String getFirstName()
           Person's first name(s).
 java.lang.String getLastName()
          Person's last name(s).
 java.lang.String getPostalAddress()
          Full customer postal address, including carriage returns, region/state, country, etc.
 void setEmailAddress(java.lang.String emailAddressParam)
          Person's email address (ok - it's a simple system).
 void setFirstName(java.lang.String firstNameParam)
           Person's first name(s).
 void setLastName(java.lang.String lastNameParam)
          Person's last name(s).
 void setPostalAddress(java.lang.String postalAddressParam)
          Full customer postal address, including carriage returns, region/state, country, etc.
 
Methods inherited from class com.ivata.mask.web.demo.valueobject.DemoValueObject
getId, getIdString, setId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomerDO

public CustomerDO()

Construct a new customer instance with no id.


CustomerDO

public CustomerDO(int idParam)

Construct a new customer instance with the given unique identifier.

Parameters:
idParam - unique identifier of this customer.
Method Detail

getDisplayValue

public java.lang.String getDisplayValue()
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.

Returns:
customer's name.
See Also:
com.ivata.mask.valueobject.ValueObject#getStringValue()

getEmailAddress

public java.lang.String getEmailAddress()
Person's email address (ok - it's a simple system).

Returns:
string email address such as ted@nowhere.com.

getFirstName

public java.lang.String getFirstName()

Person's first name(s).

Returns:
first name such as "Bob", or "Sally".

getLastName

public java.lang.String getLastName()
Person's last name(s).

Returns:
last name of the customer, such as "Smith" or "Tarrantino".

getPostalAddress

public java.lang.String getPostalAddress()
Full customer postal address, including carriage returns, region/state, country, etc.

Returns:
Customer's full snail-mail address.

setEmailAddress

public void setEmailAddress(java.lang.String emailAddressParam)
Person's email address (ok - it's a simple system).

Parameters:
emailAddressParam - string email address such as ted@nowhere.com.

setFirstName

public void setFirstName(java.lang.String firstNameParam)

Person's first name(s).

Parameters:
firstNameParam - first name such as "Bob", or "Sally".

setLastName

public void setLastName(java.lang.String lastNameParam)
Person's last name(s).

Parameters:
lastNameParam - last name of the customer, such as "Smith" or "Tarrantino".

setPostalAddress

public void setPostalAddress(java.lang.String postalAddressParam)
Full customer postal address, including carriage returns, region/state, country, etc.

Parameters:
postalAddressParam - Customer's full snail-mail address.


Copyright © 2001-2005 ivata limited. All Rights Reserved.