agave-notifications/notifications-core/src/main/java/org/iplantc/service/notification/dao/NotificationAttemptDao.java
/**
	 * Clears all {@link NotificationAttempt} for a given {@code notificationUuid}.
	 * 
	 * @param notificationUuid
	 * @throws NotificationException
	 */
Clears all  NotificationAttempt for a given  notificationUuid.

@param notificationUuid
@throws NotificationException
Clears all NotificationAttempt for a given notificationUuid . @param notificationUuid @throws NotificationException
public void clearNotificationAttemptsforUuid(String notificationUuid) 
	throws NotificationException
	{
		if (StringUtils.isEmpty(notificationUuid))
			throw new NotificationException("Notification uuid cannot be null");
		try
		{
			Session session = getSession();
			session.createSQLQuery("DELETE FROM NotificationAttempt where notificationId = :nid")
				.setString("nid", notificationUuid)
				.executeUpdate();
			session.disableFilter("notificationAttemptTenantFilter");
			session.flush();
		}
		catch (HibernateException ex)
		{
			try
			{
				if (HibernateUtil.getSession().isOpen()) {
					HibernateUtil.rollbackTransaction();
				}
			}
			catch (Exception e) {}
			throw new NotificationException("Failed to delete notification attempts for notificaiton " 
					+ notificationUuid, ex);
		}
		finally {
			try { HibernateUtil.commitTransaction(); } catch (Exception e) {}
		}
	}
public void clearNotificationAttemptsforUuid ( String notificationUuid ) throws NotificationException { if ( StringUtils . isEmpty ( notificationUuid ) ) throw new NotificationException ( "Notification uuid cannot be null" ) ; try { Session session = getSession ( ) ; session . createSQLQuery ( "DELETE FROM NotificationAttempt where notificationId = :nid" ) . setString ( "nid" , notificationUuid ) . executeUpdate ( ) ; session . disableFilter ( "notificationAttemptTenantFilter" ) ; session . flush ( ) ; } catch ( HibernateException ex ) { try { if ( HibernateUtil . getSession ( ) . isOpen ( ) ) { HibernateUtil . rollbackTransaction ( ) ; } } catch ( Exception e ) { } throw new NotificationException ( "Failed to delete notification attempts for notificaiton " + notificationUuid , ex ) ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Exception e ) { } } }
Clears all {@link NotificationAttempt} for a given {@code notificationUuid}.
Clears all { @link NotificationAttempt } for a given { @code notificationUuid } .