Package org.opennms.netmgt.dao.hibernate
Class EventDaoHibernate
- java.lang.Object
-
- org.springframework.dao.support.DaoSupport
-
- org.springframework.orm.hibernate3.support.HibernateDaoSupport
-
- org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate<OnmsEvent,Integer>
-
- org.opennms.netmgt.dao.hibernate.EventDaoHibernate
-
-
Field Summary
-
Fields inherited from class org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate
m_criteriaConverter
-
-
Constructor Summary
Constructors Constructor Description EventDaoHibernate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
deletePreviousEventsForAlarm(Integer id, OnmsEvent e)
List<OnmsEvent>
getEventsAfterDate(List<String> ueiList, Date date)
Returns a list of events which have been created AFTER date and the uei of each event matches one uei entry of the ueiList.List<OnmsEvent>
getEventsForEventParameters(Map<String,String> eventParameters)
-
Methods inherited from class org.opennms.netmgt.dao.hibernate.AbstractDaoHibernate
buildHibernateCallback, bulkDelete, clear, countAll, countMatching, countMatching, delete, delete, deleteAll, find, find, findAll, findMatching, findMatching, findObjects, findUnique, flush, get, initDao, initialize, load, lock, merge, queryInt, queryInt, save, saveOrUpdate, update
-
Methods inherited from class org.springframework.orm.hibernate3.support.HibernateDaoSupport
checkDaoConfig, convertHibernateAccessException, createHibernateTemplate, getHibernateTemplate, getSession, getSession, getSessionFactory, releaseSession, setHibernateTemplate, setSessionFactory
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.opennms.netmgt.dao.api.LegacyOnmsDao
countMatching, findMatching
-
Methods inherited from interface org.opennms.netmgt.dao.api.OnmsDao
clear, countAll, countMatching, delete, delete, findAll, findMatching, flush, get, initialize, load, lock, save, saveOrUpdate, update
-
-
-
-
Method Detail
-
deletePreviousEventsForAlarm
public int deletePreviousEventsForAlarm(Integer id, OnmsEvent e) throws org.springframework.dao.DataAccessException
- Specified by:
deletePreviousEventsForAlarm
in interfaceEventDao
- Throws:
org.springframework.dao.DataAccessException
-
getEventsAfterDate
public List<OnmsEvent> getEventsAfterDate(List<String> ueiList, Date date)
Description copied from interface:EventDao
Returns a list of events which have been created AFTER date and the uei of each event matches one uei entry of the ueiList.- Specified by:
getEventsAfterDate
in interfaceEventDao
- Parameters:
ueiList
- list with uei'sdate
- the date after which all events are loaded.- Returns:
- a list of events which have been created AFTER date and the uei of each event matches one uei entry of the ueiList.
-
-