|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.openmrs.api.db.hibernate.HibernateNoteDAO
public class HibernateNoteDAO
Field Summary | |
---|---|
protected static org.apache.commons.logging.Log |
log
|
Constructor Summary | |
---|---|
HibernateNoteDAO()
|
Method Summary | |
---|---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected static final org.apache.commons.logging.Log log
Constructor Detail |
---|
public HibernateNoteDAO()
Method Detail |
---|
public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
sessionFactory
- public java.util.List<Note> getNotes()
NoteDAO
getNotes
in interface NoteDAO
public Note getNote(java.lang.Integer id)
NoteDAO
getNote
in interface NoteDAO
id
- Internal integer identifier for requested Note
Note
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 deleted
DAOException
|
OpenMRS-1.7.x | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |