public interface NoteDAO
| Modifier and Type | Method and Description |
|---|---|
void |
createNote(Note note)
Creates a new note record
|
void |
deleteNote(Note note)
TODO: Couldn't find a voidNote method Delete note from database.
|
Note |
getNote(Integer noteId)
Get note by internal identifier
|
List<Note> |
getNotes()
Get all notes
|
void |
updateNote(Note note)
Update note
|
Note |
voidNote(Note note,
String reason) |
List<Note> getNotes() throws DAOException
DAOExceptionvoid createNote(Note note) throws DAOException
note - to be createdDAOExceptionNote getNote(Integer noteId) throws DAOException
noteId - Internal integer identifier for requested NoteNote with given internal identifierDAOExceptionvoid updateNote(Note note) throws DAOException
note - Note to be updatedDAOExceptionvoid deleteNote(Note note) throws DAOException
note - Note to be deletedDAOExceptionNote voidNote(Note note, String reason) throws APIException
note - Note to be voidedreason - Reason for having Note voidAPIExceptionCopyright © 2016 OpenMRS Inc.. All rights reserved.