package ejava.ejb.personnel;

import java.rmi.RemoteException;

/**
   This interface defines the methods that are accessible from Person
   objects. It is defined separate from its EJBObject interface so that
   both the EJBObject and the EntityBean can both implement the same
   interface for compile-time consistency checking.
*/
public interface PersonInfo {
   public void setFirstName(String name) throws RemoteException;
   public String getFirstName() throws RemoteException;

   public void setLastName(String name) throws RemoteException;
   public String getLastName() throws RemoteException;

   public void setAddress(String address) throws RemoteException;
   public String getAddress() throws RemoteException;

   public void setPhoneNumber(String number) throws RemoteException;
   public String getPhoneNumber() throws RemoteException;

   public String toXML() throws RemoteException;
}
