@Test @Transactional public void testNotificationCount(){ List<Filter> filterList = new ArrayList<Filter>(); Filter[] filters = filterList.toArray(new Filter[0]); AcknowledgeType ackType = AcknowledgeType.UNACKNOWLEDGED; int notificationCount = m_daoNotificationRepo.countMatchingNotifications(new NotificationCriteria(ackType, filters)); assertEquals(1, notificationCount); }
@Transactional public int countMatchingNotifications(NotificationCriteria criteria) { return queryForInt(getOnmsCriteria(criteria)); }
DaoWebNotificationRepository implements WebNotificationRepository, InitializingBean { @Transactional public int countMatchingNotifications(NotificationCriteria criteria) { return queryForInt(getOnmsCriteria(criteria)); } }
DaoWebNotificationRepository implements WebNotificationRepository, InitializingBean { @Transactional public int countMatchingNotifications(NotificationCriteria criteria) { return queryForInt(getOnmsCriteria(criteria)); }  }
DaoWebNotificationRepository implements WebNotificationRepository, InitializingBean { @Transactional public int countMatchingNotifications(NotificationCriteria criteria) { return queryForInt(getOnmsCriteria(criteria)); }  @Override void afterPropertiesSet(); @Transactional void acknowledgeMatchingNotification(String user, Date timestamp, NotificationCriteria criteria); @Transactional int countMatchingNotifications(NotificationCriteria criteria); @Transactional Notification[] getMatchingNotifications(NotificationCriteria criteria); @Transactional Notification getNotification(int noticeId); }
DaoWebNotificationRepository implements WebNotificationRepository, InitializingBean { @Transactional public int countMatchingNotifications(NotificationCriteria criteria) { return queryForInt(getOnmsCriteria(criteria)); }  @Override void afterPropertiesSet(); @Transactional void acknowledgeMatchingNotification(String user, Date timestamp, NotificationCriteria criteria); @Transactional int countMatchingNotifications(NotificationCriteria criteria); @Transactional Notification[] getMatchingNotifications(NotificationCriteria criteria); @Transactional Notification getNotification(int noticeId);  }