| 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(java.lang.Integer id)Get note by internal identifier | 
| java.util.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 java.util.List<Note> getNotes()
NoteDAOpublic Note getNote(java.lang.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 Inc.. All Rights Reserved.