| Modifier and Type | Field and Description |
|---|---|
protected static org.apache.commons.logging.Log |
log |
| Constructor and Description |
|---|
HibernateNoteDAO() |
| 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 id)
Get note by internal identifier
|
List<Note> |
getNotes()
Get all notes
|
void |
setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Set session factory
|
void |
updateNote(Note note)
Update note
|
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory - public Note getNote(Integer id)
NoteDAOgetNote in interface NoteDAOid - Internal integer identifier for requested NoteNote with given internal identifierNoteDAO.getNote(Integer)public void createNote(Note note)
NoteDAOcreateNote in interface NoteDAOnote - to be createdpublic void updateNote(Note note)
NoteDAOupdateNote in interface NoteDAOnote - Note to be updatedpublic void deleteNote(Note note) throws DAOException
NoteDAOdeleteNote in interface NoteDAOnote - Note to be deletedDAOExceptionCopyright © 2018 OpenMRS LLC.. All Rights Reserved.