idi.diplom.linda.logic
Class NoteLogic

java.lang.Object
  extended by idi.diplom.linda.logic.NoteLogic

public class NoteLogic
extends java.lang.Object


Constructor Summary
NoteLogic()
           
 
Method Summary
 Note[] getAllNotes(Patient p)
          Receives all notes saved on the specified patient
 Note[] getNotes(Patient p, java.util.Date fromDate, java.util.Date toDate)
           
 void saveNote(Note n)
          Saves the note in database
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NoteLogic

public NoteLogic()
Method Detail

saveNote

public void saveNote(Note n)
              throws DatabaseException,
                     GeneralException
Saves the note in database

Parameters:
note - to be saved
Throws:
DatabaseException
GeneralException

getNotes

public Note[] getNotes(Patient p,
                       java.util.Date fromDate,
                       java.util.Date toDate)

getAllNotes

public Note[] getAllNotes(Patient p)
                   throws DatabaseException,
                          GeneralException
Receives all notes saved on the specified patient

Parameters:
patient - to get notes from
Returns:
all saved notes
Throws:
DatabaseException
GeneralException