com.ibm.websphere.samples.plantsbywebsphereejb
Class CustomerInfo

java.lang.Object
  extended by com.ibm.websphere.samples.plantsbywebsphereejb.CustomerInfo
All Implemented Interfaces:
java.io.Serializable

public class CustomerInfo
extends java.lang.Object
implements java.io.Serializable

A class to hold a customer's data.

See Also:
Serialized Form

Constructor Summary
CustomerInfo(Customer customer)
          Constructor to create a CustomerInfo using a Customer.
CustomerInfo(java.lang.String customerID, java.lang.String firstName, java.lang.String lastName, java.lang.String addr1, java.lang.String addr2, java.lang.String addrCity, java.lang.String addrState, java.lang.String addrZip, java.lang.String phone)
          Constructor to create a CustomerInfo by passing each field.
 
Method Summary
 java.lang.String getAddr1()
          Get the customer address line 1.
 java.lang.String getAddr2()
          Get the customer address line 2.
 java.lang.String getAddrCity()
          Get the customer city.
 java.lang.String getAddrState()
          Get the customer state.
 java.lang.String getAddrZip()
          Get the customer zip code.
 java.lang.String getCustomerID()
          Get the customer ID.
 java.lang.String getFirstName()
          Get the customer first name.
 java.lang.String getLastName()
          Get the customer last name.
 java.lang.String getPhone()
          Get the customer phone.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomerInfo

public CustomerInfo(java.lang.String customerID,
                    java.lang.String firstName,
                    java.lang.String lastName,
                    java.lang.String addr1,
                    java.lang.String addr2,
                    java.lang.String addrCity,
                    java.lang.String addrState,
                    java.lang.String addrZip,
                    java.lang.String phone)
Constructor to create a CustomerInfo by passing each field.


CustomerInfo

public CustomerInfo(Customer customer)
Constructor to create a CustomerInfo using a Customer.

Method Detail

getCustomerID

public java.lang.String getCustomerID()
Get the customer ID.

Returns:
Customer ID

getFirstName

public java.lang.String getFirstName()
Get the customer first name.

Returns:
Customer first name

getLastName

public java.lang.String getLastName()
Get the customer last name.

Returns:
Customer last name

getAddr1

public java.lang.String getAddr1()
Get the customer address line 1.

Returns:
Customer address line 1

getAddr2

public java.lang.String getAddr2()
Get the customer address line 2.

Returns:
Customer address line 2

getAddrCity

public java.lang.String getAddrCity()
Get the customer city.

Returns:
Customer city

getAddrState

public java.lang.String getAddrState()
Get the customer state.

Returns:
Customer state

getAddrZip

public java.lang.String getAddrZip()
Get the customer zip code.

Returns:
Customer zip code

getPhone

public java.lang.String getPhone()
Get the customer phone.

Returns:
Customer phone