idi.diplom.linda.db.implementation
Class AlarmDAOHibernate

java.lang.Object
  extended by idi.diplom.linda.db.implementation.GenericHibernateDAO<Alarm,java.lang.Long>
      extended by idi.diplom.linda.db.implementation.AlarmDAOHibernate
All Implemented Interfaces:
AlarmDAO, GenericDAO<Alarm,java.lang.Long>

public class AlarmDAOHibernate
extends GenericHibernateDAO<Alarm,java.lang.Long>
implements AlarmDAO


Constructor Summary
AlarmDAOHibernate()
           
 
Method Summary
 boolean dismissedWithinInterval(long milliseconds, Patient p)
          Checks if the patient has any alarms that was dismissed within the specified number of milliseconds.
 Alarm getAlarmFromTrigger(Patient p, int s)
           
 java.util.List<Alarm> getAlarmsBetweenDate(Patient p, java.util.Date fromTime, java.util.Date toTime)
          Gets all alarms on the specified patient between the to specified dates
 java.util.List<Alarm> getAllActiveAlarms(Patient p)
           
 java.util.List<Alarm> getAllDismissedAlarmsWithinInterval(Patient p)
          NOT IN USE IN THIS VERSION
 
Methods inherited from class idi.diplom.linda.db.implementation.GenericHibernateDAO
clear, findAll, findByExample, findById, flush, getPersistentClass, makePersistent, makeTransient, setSession
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface idi.diplom.linda.db.interfaces.GenericDAO
findAll, findByExample, findById, makePersistent, makeTransient
 

Constructor Detail

AlarmDAOHibernate

public AlarmDAOHibernate()
Method Detail

getAlarmsBetweenDate

public java.util.List<Alarm> getAlarmsBetweenDate(Patient p,
                                                  java.util.Date fromTime,
                                                  java.util.Date toTime)
Description copied from interface: AlarmDAO
Gets all alarms on the specified patient between the to specified dates

Specified by:
getAlarmsBetweenDate in interface AlarmDAO
Returns:
List alarmList

getAlarmFromTrigger

public Alarm getAlarmFromTrigger(Patient p,
                                 int s)
Specified by:
getAlarmFromTrigger in interface AlarmDAO
Returns:
Alarm alarm
See Also:
AlarmLogic

getAllActiveAlarms

public java.util.List<Alarm> getAllActiveAlarms(Patient p)
Specified by:
getAllActiveAlarms in interface AlarmDAO
Returns:
List alarmList
See Also:
AlarmLogic

getAllDismissedAlarmsWithinInterval

public java.util.List<Alarm> getAllDismissedAlarmsWithinInterval(Patient p)
Description copied from interface: AlarmDAO
NOT IN USE IN THIS VERSION

Specified by:
getAllDismissedAlarmsWithinInterval in interface AlarmDAO
Returns:

dismissedWithinInterval

public boolean dismissedWithinInterval(long milliseconds,
                                       Patient p)
Description copied from interface: AlarmDAO
Checks if the patient has any alarms that was dismissed within the specified number of milliseconds. If so, true is returned.

Specified by:
dismissedWithinInterval in interface AlarmDAO
Returns:
boolean dismissedWithin