Physician.java
001 package com.bea.medrec.value;
002 
003 /**
004  <p>This class represents information about a patient.</p>
005  *
006  @author Copyright (c) 2006 by BEA Systems. All Rights Reserved.
007  */
008 public final class Physician extends BaseVO {
009 
010   private String firstName;
011   private String middleName;
012   private String lastName;
013   private String phone;
014   private String email;
015 
016   public Physician() {
017   }
018 
019   public Physician(Integer id,
020                    String firstName,
021                    String middleName,
022                    String lastName,
023                    String phone,
024                    String email) {
025     super.setId(id);
026     this.firstName = firstName;
027     this.middleName = middleName;
028     this.lastName = lastName;
029     this.phone = phone;
030     this.email = email;
031   }
032 
033   public Physician(String firstName,
034                    String middleName,
035                    String lastName,
036                    String phone,
037                    String email) {
038     this.firstName = firstName;
039     this.middleName = middleName;
040     this.lastName = lastName;
041     this.phone = phone;
042     this.email = email;
043   }
044 
045   public Physician(String firstName,
046                    String middleName,
047                    String lastName) {
048     this.firstName = firstName;
049     this.middleName = middleName;
050     this.lastName = lastName;
051   }
052 
053   public String getFirstName() {
054     return this.firstName;
055   }
056 
057   public String getMiddleName() {
058     return this.middleName;
059   }
060 
061   public String getLastName() {
062     return this.lastName;
063   }
064 
065   public String getPhone() {
066     return this.phone;
067   }
068 
069   public String getEmail() {
070     return this.email;
071   }
072 
073   public void setFirstName(String firstName) {
074     this.firstName = firstName;
075   }
076 
077   public void setMiddleName(String middleName) {
078     this.middleName = middleName;
079   }
080 
081   public void setLastName(String lastName) {
082     this.lastName = lastName;
083   }
084 
085   public void setPhone(String phone) {
086     this.phone = phone;
087   }
088 
089   public void setEmail(String email) {
090     this.email = email;
091   }
092 
093   public String toString() {
094     StringBuffer str = new StringBuffer();
095     str.append("PHYSICIAN [Id: "+super.getId());
096     str.append("| Name: "+firstName);
097     str.append(" "+middleName);
098     str.append(" "+lastName);
099     str.append("| Phone: "+phone);
100     str.append("| Email: "+email);
101     str.append("]");
102     return str.toString();
103   }
104 }