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<MedicalDataValue> getMedicalData(long patientID)
          This method returns a list containing all Medical Data Values for a particular patientID.
 void saveMedicalData(MedicalDataValue medicalDataValue)
          This method persists a 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

saveMedicalData

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

Specified by:
saveMedicalData in interface MedicalDataDAO
Parameters:
medicalDataValue - the data object to persist
See Also:
MedicalDataDAO.saveMedicalData(MedicalDataValue)

getMedicalData

public java.util.List<MedicalDataValue> getMedicalData(long patientID)
Description copied from interface: MedicalDataDAO
This method returns a list containing all Medical Data Values for a particular patientID.

Specified by:
getMedicalData in interface MedicalDataDAO
Parameters:
patientID - the patientID of the patient's data to retrieve
Returns:
the list of medical data
See Also:
MedicalDataDAO.getMedicalData(long)