org.domain.rhims.dao
Class MedicalDataDAOMySQL

java.lang.Object
  extended by org.domain.rhims.dao.MedicalDataDAOMySQL
All Implemented Interfaces:
MedicalDataDAO

@Name(value="medicalDataDAO")
public class MedicalDataDAOMySQL
extends java.lang.Object
implements MedicalDataDAO

This EJB provides a MySQL specific implementation of the MedicalDataDAO. Its Seam name is "medicalDataDAO".

Author:
Mitch Williams

Constructor Summary
MedicalDataDAOMySQL()
           
 
Method Summary
 java.util.List<Pulse> getMedicalDataPulse(java.lang.String patientUsername)
          This method returns a list containing all Pulse medical data values for a particular patient.
 void saveMedicalDataPulse(Pulse pulse)
          This method persists a Pulse MedicalDataValue entity object.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MedicalDataDAOMySQL

public MedicalDataDAOMySQL()
Method Detail

saveMedicalDataPulse

public void saveMedicalDataPulse(Pulse pulse)
Description copied from interface: MedicalDataDAO
This method persists a Pulse MedicalDataValue entity object. An improvement would be to acknowledge if the data was saved successfully or not.

Specified by:
saveMedicalDataPulse in interface MedicalDataDAO
Parameters:
pulse - the Pulse object to persist
See Also:
org.domain.rhims.dao.MedicalDataDAO#saveMedicalData(MedicalDataValue)

getMedicalDataPulse

public java.util.List<Pulse> getMedicalDataPulse(java.lang.String patientUsername)
Description copied from interface: MedicalDataDAO
This method returns a list containing all Pulse medical data values for a particular patient.

Specified by:
getMedicalDataPulse in interface MedicalDataDAO
Parameters:
patientUsername - the username of the patient to get data from
Returns:
the list of medical data
See Also:
org.domain.rhims.dao.MedicalDataDAO#getMedicalData(String)