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)
NoteDAO
getNote
in interface NoteDAO
id
- Internal integer identifier for requested NoteNote
with given internal identifierNoteDAO.getNote(Integer)
public void createNote(Note note)
NoteDAO
createNote
in interface NoteDAO
note
- to be createdpublic void updateNote(Note note)
NoteDAO
updateNote
in interface NoteDAO
note
- Note
to be updatedpublic void deleteNote(Note note) throws DAOException
NoteDAO
deleteNote
in interface NoteDAO
note
- Note
to be deletedDAOException
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.