com.bankframe.examples.bo.customer
Class CustomerBean

java.lang.Object
  extended by com.bankframe.examples.bo.customer.CustomerBean
Direct Known Subclasses:
CustomerBean

public class CustomerBean
extends Object

This class defines the attributes of the Customer Entity and the accessor methods for those attributes.


Field Summary
 String firstName
           
 String lastName
           
 String ownerId
           
 String title
           
 
Constructor Summary
CustomerBean()
          Default constructor.
 
Method Summary
 void amend(String title, String firstName, String lastName)
          This method amends the attributes of the Customer entity.
 void create(String ownerId, String title, String firstName, String lastName)
          This method amends the attributes of the Customer entity.
 String getFirstName()
          This method returns the firstName attribute.
 String getLastName()
          This method returns the lastName attribute.
 String getOwnerId()
          This method returns the ownerId attribute.
 String getTitle()
          This method returns the title attribute.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ownerId

public String ownerId

title

public String title

firstName

public String firstName

lastName

public String lastName
Constructor Detail

CustomerBean

public CustomerBean()
Default constructor.

Method Detail

amend

public void amend(String title,
                  String firstName,
                  String lastName)
           throws ValidationException
This method amends the attributes of the Customer entity.

Parameters:
title -
firstName -
lastName -
Throws:
ValidationException

create

public void create(String ownerId,
                   String title,
                   String firstName,
                   String lastName)
            throws ValidationException
This method amends the attributes of the Customer entity.

Parameters:
ownerId -
title -
firstName -
lastName -
Throws:
ValidationException

getFirstName

public String getFirstName()
This method returns the firstName attribute.

Returns:
the firstName attribute

getLastName

public String getLastName()
This method returns the lastName attribute.

Returns:
the last name attribute

getOwnerId

public String getOwnerId()
This method returns the ownerId attribute.

Returns:
the ownerId attribute

getTitle

public String getTitle()
This method returns the title attribute.

Returns:
the title attribute


Copyright © 2005, 2007, Oracle. All rights reserved.