Class Doctor

java.lang.Object
com.ehealthsystem.doctor.Doctor
All Implemented Interfaces:
HasAddress

public class Doctor extends Object implements HasAddress
Represents the Doctor and his attributes
  • Field Details

    • id

      int id
    • firstName

      String firstName
    • lastName

      String lastName
    • street

      String street
    • number

      String number
    • zip

      String zip
    • location

      com.google.maps.model.LatLng location
  • Constructor Details

    • Doctor

      public Doctor(int id, String firstName, String lastName, String street, String number, String zip, com.google.maps.model.LatLng location)
  • Method Details

    • getId

      public int getId()
      Returns the ID of the Doctor.
      Returns:
      The ID as an integer.
    • getFirstName

      public String getFirstName()
      Returns the first name of the Doctor.
      Returns:
      The first name as a String.
    • getLastName

      public String getLastName()
      Returns the last name of the Doctor.
      Returns:
      The last name as a String.
    • getStreet

      public String getStreet()
      Returns the address of the doctor´s office.
      Specified by:
      getStreet in interface HasAddress
      Returns:
      The address as a String.
    • getHouseNumber

      public String getHouseNumber()
      Returns the house no. of the doctor´s office.
      Specified by:
      getHouseNumber in interface HasAddress
      Returns:
      The house no. as a String.
    • getZipCode

      public String getZipCode()
      Returns the zip code of the doctor´s office.
      Specified by:
      getZipCode in interface HasAddress
      Returns:
      The zip code as a String.
    • getLocation

      public com.google.maps.model.LatLng getLocation()
      Returns the location of doctor´s office (stored with the doctor in the database).
      Returns:
      The location as a coordinate.
    • getSpecializations

      public ArrayList<String> getSpecializations() throws SQLException
      Returns a List of the specializations of a doctor.
      Returns:
      The doctor's specializations as an ArrayList.
      Throws:
      SQLException - If connection issues with the Database occur.