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,java.lang.Integer>
-
- org.opennms.netmgt.dao.hibernate.EventDaoHibernate
-
- All Implemented Interfaces:
EventDao
,LegacyOnmsDao<OnmsEvent,java.lang.Integer>
,OnmsDao<OnmsEvent,java.lang.Integer>
,org.springframework.beans.factory.InitializingBean
public class EventDaoHibernate extends AbstractDaoHibernate<OnmsEvent,java.lang.Integer> implements EventDao
-
-
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(java.lang.Integer id, OnmsEvent e)
java.util.List<OnmsEvent>
getEventsAfterDate(java.util.List<java.lang.String> ueiList, java.util.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.java.util.List<OnmsEvent>
getEventsForEventParameters(java.util.Map<java.lang.String,java.lang.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(java.lang.Integer id, OnmsEvent e) throws org.springframework.dao.DataAccessException
- Specified by:
deletePreviousEventsForAlarm
in interfaceEventDao
- Throws:
org.springframework.dao.DataAccessException
-
getEventsAfterDate
public java.util.List<OnmsEvent> getEventsAfterDate(java.util.List<java.lang.String> ueiList, java.util.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.
-
getEventsForEventParameters
public java.util.List<OnmsEvent> getEventsForEventParameters(java.util.Map<java.lang.String,java.lang.String> eventParameters)
- Specified by:
getEventsForEventParameters
in interfaceEventDao
-
-