public interface OpenmrsObjectDAO<T extends BaseOpenmrsObject>
| Modifier and Type | Method and Description |
|---|---|
void |
delete(T persistent)
Completely deletes a persistent from the database
|
T |
getById(Serializable id)
Obtains an object matching a given identifier
|
T |
getByUuid(String uuid)
Obtains an object matching a given UUID
|
T |
saveOrUpdate(T newOrPersisted)
Save or update a persistent in the database
|
T getById(Serializable id)
id - the metadata identifierT getByUuid(String uuid)
uuid - void delete(T persistent)
persistent - The persistent to deleteCopyright © 2024 OpenMRS Inc.. All rights reserved.