com.ibm.websphere.samples.pbw.jpa
Class Customer

java.lang.Object
  extended by com.ibm.websphere.samples.pbw.jpa.Customer

@Entity(name="Customer")
public class Customer
extends Object

Customer is the bean mapping for the CUSTOMER table.

See Also:
Customer

Constructor Summary
Customer()
           
Customer(String key, String password, String firstName, String lastName, String addr1, String addr2, String addrCity, String addrState, String addrZip, String phone)
          Create a new Customer.
 
Method Summary
 String getAddr1()
           
 String getAddr2()
           
 String getAddrCity()
           
 String getAddrState()
           
 String getAddrZip()
           
 String getCustomerID()
           
 String getFirstName()
           
 String getFullName()
          Get the customer's full name.
 String getLastName()
           
 String getPassword()
           
 String getPhone()
           
 void setAddr1(String addr1)
           
 void setAddr2(String addr2)
           
 void setAddrCity(String addrCity)
           
 void setAddrState(String addrState)
           
 void setAddrZip(String addrZip)
           
 void setCustomerID(String customerID)
           
 void setFirstName(String firstName)
           
 void setLastName(String lastName)
           
 void setPassword(String password)
           
 void setPhone(String phone)
           
 boolean verifyPassword(String password)
          Verify password.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Customer

public Customer()

Customer

public Customer(String key,
                String password,
                String firstName,
                String lastName,
                String addr1,
                String addr2,
                String addrCity,
                String addrState,
                String addrZip,
                String phone)
Create a new Customer.

Parameters:
key - CustomerKey
password - Password used for this customer account.
firstName - First name of the customer.
lastName - Last name of the customer
addr1 - Street address of the customer
addr2 - Street address of the customer
addrCity - City
addrState - State
addrZip - Zip code
phone - Phone number
Method Detail

verifyPassword

public boolean verifyPassword(String password)
Verify password.

Parameters:
password - value to be checked.
Returns:
True, if password matches one stored.

getFullName

public String getFullName()
Get the customer's full name.

Returns:
String of customer's full name.

getAddr1

public String getAddr1()

setAddr1

public void setAddr1(String addr1)

getAddr2

public String getAddr2()

setAddr2

public void setAddr2(String addr2)

getAddrCity

public String getAddrCity()

setAddrCity

public void setAddrCity(String addrCity)

getAddrState

public String getAddrState()

setAddrState

public void setAddrState(String addrState)

getAddrZip

public String getAddrZip()

setAddrZip

public void setAddrZip(String addrZip)

getCustomerID

public String getCustomerID()

setCustomerID

public void setCustomerID(String customerID)

getFirstName

public String getFirstName()

setFirstName

public void setFirstName(String firstName)

getLastName

public String getLastName()

setLastName

public void setLastName(String lastName)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

getPhone

public String getPhone()

setPhone

public void setPhone(String phone)


Copyright © 2011. All Rights Reserved.