package ejava.examples.personnel.ejb20;

/** 
   This interface provides a definition of the local business methods for a
   Person object. This interface represents the methods that are shared
   between the PersonLocal and PersonEJB interface/classes. The PersonLocal 
   interface extends this and the EJBLocalObject interface to satisfy the
   requirements of the local component interface. PersonEJB implements this
   and the EntityBean interface to satisfy the requirements of the entity
   bean class. Note that the entity bean should not implement the component
   interface directly. Doing so would possibly expose the entity bean class
   to direct client access (rather than indirect client access through the
   container).<p>

   Note that the methods are fine-grain accessors. These are applicable to
   local client access.
*/
public interface PersonLBI {
      /** read-only primary key field */
   String getId();

      /* The following methods provide fine-grain access to a person
       * object. They are only applicable to local or low performance
       * access.
       */
   String getFirstName();
   void setFirstName(String fname);
   String getLastName();
   void setLastName(String lname);
   String getAddress();
   void setAddress(String address);
   String getPhoneNumber();
   void setPhoneNumber(String number);
}
