public class HibernateMedicationDispenseDAO extends Object implements MedicationDispenseDAO
MedicationDispenseDAO
Constructor and Description |
---|
HibernateMedicationDispenseDAO() |
Modifier and Type | Method and Description |
---|---|
void |
deleteMedicationDispense(MedicationDispense medicationDispense)
Remove a MedicationDispense from the database.
|
MedicationDispense |
getMedicationDispense(Integer medicationDispenseId)
Gets a MedicationDispense by id
|
List<MedicationDispense> |
getMedicationDispenseByCriteria(MedicationDispenseCriteria criteria)
Gets all MedicationDispense results that match the given criteria
|
MedicationDispense |
getMedicationDispenseByUuid(String uuid)
Gets a MedicationDispense based on the uuid
|
MedicationDispense |
saveMedicationDispense(MedicationDispense medicationDispense)
Saves a MedicationDispense
|
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory) |
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
public MedicationDispense getMedicationDispense(Integer medicationDispenseId)
MedicationDispenseDAO
getMedicationDispense
in interface MedicationDispenseDAO
medicationDispenseId
- the id of the MedicationDispense to retrievepublic MedicationDispense getMedicationDispenseByUuid(String uuid)
MedicationDispenseDAO
getMedicationDispenseByUuid
in interface MedicationDispenseDAO
uuid
- - uuid of the MedicationDispense to be returnedpublic List<MedicationDispense> getMedicationDispenseByCriteria(MedicationDispenseCriteria criteria)
MedicationDispenseDAO
getMedicationDispenseByCriteria
in interface MedicationDispenseDAO
criteria
- - the criteria for the returned MedicationDispense resultspublic MedicationDispense saveMedicationDispense(MedicationDispense medicationDispense)
MedicationDispenseDAO
saveMedicationDispense
in interface MedicationDispenseDAO
medicationDispense
- - the MedicationDispense to be savedpublic void deleteMedicationDispense(MedicationDispense medicationDispense)
MedicationDispenseDAO
deleteMedicationDispense
in interface MedicationDispenseDAO
medicationDispense
- the MedicationDispense to be purgedCopyright © 2024 OpenMRS Inc.. All rights reserved.