Healthcare Portal
 
Loading...
Searching...
No Matches
com.hospital.portal.model.Doctor Class Reference
Inheritance diagram for com.hospital.portal.model.Doctor:
com.hospital.portal.model.User

Public Member Functions

 Doctor ()
 
 Doctor (String dni, String name, String surname, LocalDate birthDate, String gender, String phone, String mail, String password, String doctorId, Specialty specialty)
 
String getDoctorId ()
 
void setDoctorId (String doctorId)
 
Specialty getSpecialty ()
 
void setSpecialty (Specialty specialty)
 
String toString ()
 
- Public Member Functions inherited from com.hospital.portal.model.User
 User ()
 
 User (String dni, String name, String surname, LocalDate birthDate, String gender, String phone, String mail, String password)
 
String getDni ()
 
void setDni (String dni)
 
String getName ()
 
void setName (String name)
 
String getSurname ()
 
void setSurname (String surname)
 
LocalDate getBirthDate ()
 
void setBirthDate (LocalDate birthDate)
 
String getGender ()
 
void setGender (String gender)
 
String getPhone ()
 
void setPhone (String phone)
 
String getEmail ()
 
void setEmail (String mail)
 
String getPassword ()
 
void setPassword (String password)
 

Additional Inherited Members

- Public Attributes inherited from com.hospital.portal.model.User
String dni
 

Detailed Description

Represents a doctor user in the hospital portal system. Extends the User class and adds a unique doctor ID and specialty.

This class is mapped to the "doctors" table in the database.

Constructor & Destructor Documentation

◆ Doctor() [1/2]

com.hospital.portal.model.Doctor.Doctor ( )
inline

Default constructor for JPA.

◆ Doctor() [2/2]

com.hospital.portal.model.Doctor.Doctor ( String  dni,
String  name,
String  surname,
LocalDate  birthDate,
String  gender,
String  phone,
String  mail,
String  password,
String  doctorId,
Specialty  specialty 
)
inline

Constructs a Doctor with the specified details.

Parameters
dnithe DNI of the doctor
namethe name of the doctor
surnamethe surname of the doctor
birthDatethe birth date of the doctor
genderthe gender of the doctor
phonethe phone number of the doctor
mailthe email address of the doctor
passwordthe password of the doctor
doctorIdthe unique doctor ID
specialtythe specialty of the doctor

Member Function Documentation

◆ getDoctorId()

String com.hospital.portal.model.Doctor.getDoctorId ( )
inline

◆ getSpecialty()

Specialty com.hospital.portal.model.Doctor.getSpecialty ( )
inline

◆ setDoctorId()

void com.hospital.portal.model.Doctor.setDoctorId ( String  doctorId)
inline

◆ setSpecialty()

void com.hospital.portal.model.Doctor.setSpecialty ( Specialty  specialty)
inline

◆ toString()

String com.hospital.portal.model.Doctor.toString ( )
inline

Returns a string representation of the Doctor, including doctorId and specialty.

Returns
a string representation of the Doctor

Reimplemented from com.hospital.portal.model.User.


The documentation for this class was generated from the following file: