Package com.ehealthsystem.doctor
Class Doctor
java.lang.Object
com.ehealthsystem.doctor.Doctor
- All Implemented Interfaces:
HasAddress
Represents the Doctor and his attributes
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the first name of the Doctor.Returns the house no. of the doctor´s office.int
getId()
Returns the ID of the Doctor.Returns the last name of the Doctor.com.google.maps.model.LatLng
Returns the location of doctor´s office (stored with the doctor in the database).Returns a List of the specializations of a doctor.Returns the address of the doctor´s office.Returns the zip code of the doctor´s office.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ehealthsystem.tools.HasAddress
getFormattedAddress, getFormattedAddressWithPlaceName
-
Field Details
-
Constructor Details
-
Doctor
-
-
Method Details
-
getId
public int getId()Returns the ID of the Doctor.- Returns:
- The ID as an integer.
-
getFirstName
Returns the first name of the Doctor.- Returns:
- The first name as a String.
-
getLastName
Returns the last name of the Doctor.- Returns:
- The last name as a String.
-
getStreet
Returns the address of the doctor´s office.- Specified by:
getStreet
in interfaceHasAddress
- Returns:
- The address as a String.
-
getHouseNumber
Returns the house no. of the doctor´s office.- Specified by:
getHouseNumber
in interfaceHasAddress
- Returns:
- The house no. as a String.
-
getZipCode
Returns the zip code of the doctor´s office.- Specified by:
getZipCode
in interfaceHasAddress
- 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
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.
-