idi.diplom.linda.db.implementation
Class AlarmDAOHibernate
java.lang.Object
idi.diplom.linda.db.implementation.GenericHibernateDAO<Alarm,java.lang.Long>
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
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AlarmDAOHibernate
public AlarmDAOHibernate()
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