com.ibm.websphere.samples.plantsbywebsphereejb
Interface Customer

All Superinterfaces:
javax.ejb.EJBLocalObject

public interface Customer
extends javax.ejb.EJBLocalObject

Local interface for Customer entity bean.


Method Summary
 java.lang.String getAddr1()
          Get the customer's address line 1.
 java.lang.String getAddr2()
          Get the customer's address line 2.
 java.lang.String getAddrCity()
          Get the customer's city.
 java.lang.String getAddrState()
          Get the customer's state.
 java.lang.String getAddrZip()
          Get the customer's zip code.
 java.lang.String getCustomerID()
          Get the customer's id.
 java.lang.String getFirstName()
          Get the customer's first name.
 java.lang.String getFullName()
          Get the customer's full name.
 java.lang.String getLastName()
          Get the customer's last name.
 java.lang.String getPassword()
          Get the customer's password.
 java.lang.String getPhone()
          Get the customer's phone.
 void update(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)
          Update the customer information.
 boolean verifyPassword(java.lang.String password)
          Verify that the passed in matches the stored password.
 
Methods inherited from interface javax.ejb.EJBLocalObject
getEJBLocalHome, getPrimaryKey, isIdentical, remove
 

Method Detail

verifyPassword

boolean verifyPassword(java.lang.String password)
Verify that the passed in matches the stored password.

Parameters:
password - Password entered.
Returns:
True, if the password matches.

update

void update(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)
Update the customer information.


getCustomerID

java.lang.String getCustomerID()
Get the customer's id.

Returns:
String of customer's id.

getPassword

java.lang.String getPassword()
Get the customer's password.

Returns:
String of customer's password.

getFirstName

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

Returns:
String of customer's first name.

getLastName

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

Returns:
String of customer's last name.

getFullName

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

Returns:
String of customer's full name.

getAddr1

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

Returns:
String of customer's address line 1.

getAddr2

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

Returns:
String of customer's address line 2.

getAddrCity

java.lang.String getAddrCity()
Get the customer's city.

Returns:
String of customer's city.

getAddrState

java.lang.String getAddrState()
Get the customer's state.

Returns:
String of customer's state.

getAddrZip

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

Returns:
String of customer's zip code.

getPhone

java.lang.String getPhone()
Get the customer's phone.

Returns:
String of customer's phone.