@Test @Transactional public void testCountMatchingEvents(){ EventCriteria criteria = new EventCriteria(); int event = m_daoEventRepo.countMatchingEvents(criteria); assertEquals(2, event); }
@Transactional public int countMatchingEvents(EventCriteria criteria) { return m_eventDao.countMatching(getOnmsCriteria(criteria)); }
DaoWebEventRepository implements WebEventRepository, InitializingBean { @Transactional public int countMatchingEvents(EventCriteria criteria) { return m_eventDao.countMatching(getOnmsCriteria(criteria)); } }
DaoWebEventRepository implements WebEventRepository, InitializingBean { @Transactional public int countMatchingEvents(EventCriteria criteria) { return m_eventDao.countMatching(getOnmsCriteria(criteria)); }  }
DaoWebEventRepository implements WebEventRepository, InitializingBean { @Transactional public int countMatchingEvents(EventCriteria criteria) { return m_eventDao.countMatching(getOnmsCriteria(criteria)); }  @Override void afterPropertiesSet(); @Transactional void acknowledgeAll(String user, Date timestamp); @Transactional void acknowledgeMatchingEvents(String user, Date timestamp, EventCriteria criteria); @Transactional int countMatchingEvents(EventCriteria criteria); @Transactional int[] countMatchingEventsBySeverity(EventCriteria criteria); @Transactional Event getEvent(int eventId); @Transactional Event[] getMatchingEvents(EventCriteria criteria); @Transactional void unacknowledgeAll(); @Transactional void unacknowledgeMatchingEvents(EventCriteria criteria); }
DaoWebEventRepository implements WebEventRepository, InitializingBean { @Transactional public int countMatchingEvents(EventCriteria criteria) { return m_eventDao.countMatching(getOnmsCriteria(criteria)); }  @Override void afterPropertiesSet(); @Transactional void acknowledgeAll(String user, Date timestamp); @Transactional void acknowledgeMatchingEvents(String user, Date timestamp, EventCriteria criteria); @Transactional int countMatchingEvents(EventCriteria criteria); @Transactional int[] countMatchingEventsBySeverity(EventCriteria criteria); @Transactional Event getEvent(int eventId); @Transactional Event[] getMatchingEvents(EventCriteria criteria); @Transactional void unacknowledgeAll(); @Transactional void unacknowledgeMatchingEvents(EventCriteria criteria);  }