org.openmrs.api.db.hibernate
Class HibernateNoteDAO

java.lang.Object
  extended by org.openmrs.api.db.hibernate.HibernateNoteDAO
All Implemented Interfaces:
NoteDAO

public class HibernateNoteDAO
extends java.lang.Object
implements NoteDAO


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

log

protected static final org.apache.commons.logging.Log log
Constructor Detail

HibernateNoteDAO

public HibernateNoteDAO()
Method Detail

setSessionFactory

public void setSessionFactory(org.hibernate.SessionFactory sessionFactory)
Set session factory

Parameters:
sessionFactory -

getNotes

public java.util.List<Note> getNotes()
Description copied from interface: NoteDAO
Get all notes

Specified by:
getNotes in interface NoteDAO
Returns:
List object of all Notes from the database

getNote

public Note getNote(java.lang.Integer id)
Description copied from interface: NoteDAO
Get note by internal identifier

Specified by:
getNote in interface NoteDAO
Parameters:
id - Internal integer identifier for requested Note
Returns:
Note with given internal identifier
See Also:
NoteDAO.getNote(Integer)

createNote

public void createNote(Note note)
Description copied from interface: NoteDAO
Creates a new note record

Specified by:
createNote in interface NoteDAO
Parameters:
note - to be created

updateNote

public void updateNote(Note note)
Description copied from interface: NoteDAO
Update note

Specified by:
updateNote in interface NoteDAO
Parameters:
note - Note to be updated

deleteNote

public void deleteNote(Note note)
                throws DAOException
Description copied from interface: NoteDAO
TODO: Couldn't find a voidNote method Delete note from database. This should not be called except for testing and administration purposes. Use the void method instead.

Specified by:
deleteNote in interface NoteDAO
Parameters:
note - Note to be deleted
Throws:
DAOException

OpenMRS-1.7.x

Generated Apr 27 2012 10:06 PM. NOTE - these libraries are in active development and subject to change