|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectidi.diplom.linda.logic.PatientLogic
public class PatientLogic
Constructor Summary | |
---|---|
PatientLogic()
|
Method Summary | |
---|---|
Patient[] |
getAllPatients()
Returns an array of all patients saved in the database |
Patient |
getPatient(int lifeshirtId)
Retrieves a patient based on the lifeshirtId |
void |
savePatient(Patient p)
Saves a patient in the database |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PatientLogic()
Method Detail |
---|
public void savePatient(Patient p) throws DatabaseException, GeneralException
patient
- to be saved
DatabaseException
GeneralException
public Patient[] getAllPatients() throws DatabaseException, GeneralException
DatabaseException
GeneralException
public Patient getPatient(int lifeshirtId) throws DatabaseException, GeneralException
int
- lifeshirtId
DatabaseException
GeneralException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |