|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface UserDAO
The UserDAO is responsible for managing the persistence of application Users. This includes the base User, along with Administrator, Clinician, and Patient entities. It is a component of the Persistance layer of the application. Currently, it contains methods for adding and retrieving both Users, Administrators, Patients and Clinicians.
| Method Summary | |
|---|---|
java.lang.String |
addAdministrator(Administrator admin)
This method persists a new administrator. |
java.lang.String |
addClinician(Clinician clinician)
This method persists a new clinician. |
java.lang.String |
addPatient(Patient patient)
This method persists a new patient. |
java.lang.String |
addUser(User user)
This method persists a new user. |
Administrator |
getAdministrator(java.lang.String userName,
java.lang.String password)
This method retrieves an Administrator based on their username and password. |
java.util.List<Clinician> |
getAllClinicians()
This method returns a list of all the Clinicians in the system |
java.util.List<Patient> |
getAllPatients()
This method returns a list of all the Patients in the system |
Clinician |
getClinician(long clinicianID)
This method retrieves a Clinician based on their unique userID number. |
Clinician |
getClinician(java.lang.String clinicianUsername)
This method retrieves a Clinician based on their username. |
Patient |
getPatient(long patientID)
This method retrieves a Patient based on their unique patientID number. |
Patient |
getPatient(java.lang.String patientUsername)
This method retrieves a Patient based on their unique username. |
User |
getUser(java.lang.String userName,
java.lang.String password)
The getUser method retrieves a user based on their userName and password. |
| Method Detail |
|---|
java.lang.String addUser(User user)
user - the User to save
java.lang.String addAdministrator(Administrator admin)
admin - the Administrator to save
java.lang.String addPatient(Patient patient)
patient - the Patient to save
java.lang.String addClinician(Clinician clinician)
clinician -
Administrator getAdministrator(java.lang.String userName,
java.lang.String password)
userName - the username of the Administrator to findpassword - the password of the Administrator to find
User getUser(java.lang.String userName,
java.lang.String password)
userName - the username of the user to findpassword - the password of the user to find
Patient getPatient(long patientID)
patientID - the ID number of the patient to find
Patient getPatient(java.lang.String patientUsername)
patientUsername - the username of the patient to find
Clinician getClinician(long clinicianID)
clinicianID - the ID number of the clinician to find
Clinician getClinician(java.lang.String clinicianUsername)
clinicianUsername - the username of the clinician to find
java.util.List<Patient> getAllPatients()
java.util.List<Clinician> getAllClinicians()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||