agave-notifications/notifications-core/src/main/java/org/iplantc/service/notification/dao/NotificationDao.java
/**
	 * Performs a sql update of the a notification row setting the 
	 * {@link Notification#getLastUpdated()} timestamp at the same time.
	 * 
	 * @param notificationUuid uuid of the {@link Notification}
	 * @param status the new status of the {@link Notification}
	 * @return
	 * @throws NotificationException
	 */
Performs a sql update of the a notification row setting the
Notification#getLastUpdated() timestamp at the same time.

@param notificationUuid uuid of the  Notification
@param status the new status of the  Notification
@return
@throws NotificationException
Performs a sql update of the a notification row setting the Notification#getLastUpdated () timestamp at the same time . @param notificationUuid uuid of the Notification @param status the new status of the Notification @return @throws NotificationException
public boolean updateStatus(String notificationUuid, NotificationStatusType status) 
	throws NotificationException
	{
		try
		{
			HibernateUtil.beginTransaction();
			Session session = HibernateUtil.getSession();
			session.clear();
			session.disableFilter("notificationTenantFilter");
			String sql = "UPDATE notifications n "
					+ "SET n.status = :status, n.last_updated = CURRENT_TIMESTAMP "
					+ "WHERE n.uuid = :uuid ";
			int rowsAffected = session.createSQLQuery(sql)
					.setString("uuid",notificationUuid)
					.setString("status", status.name())
					.executeUpdate();
			session.flush();
			return rowsAffected > 0;
		}
		catch (HibernateException ex)
		{
			try
			{
				if (HibernateUtil.getSession().isOpen()) {
					HibernateUtil.rollbackTransaction();
				}
			}
			catch (Exception ignored) {}
			throw new NotificationException(ex);
		}
		finally {
			try { HibernateUtil.commitTransaction(); } catch (Exception ignored) {}
		}
	}
public boolean updateStatus ( String notificationUuid , NotificationStatusType status ) throws NotificationException { try { HibernateUtil . beginTransaction ( ) ; Session session = HibernateUtil . getSession ( ) ; session . clear ( ) ; session . disableFilter ( "notificationTenantFilter" ) ; String sql = "UPDATE notifications n " + "SET n.status = :status, n.last_updated = CURRENT_TIMESTAMP " + "WHERE n.uuid = :uuid " ; int rowsAffected = session . createSQLQuery ( sql ) . setString ( "uuid" , notificationUuid ) . setString ( "status" , status . name ( ) ) . executeUpdate ( ) ; session . flush ( ) ; return rowsAffected > 0 ; } catch ( HibernateException ex ) { try { if ( HibernateUtil . getSession ( ) . isOpen ( ) ) { HibernateUtil . rollbackTransaction ( ) ; } } catch ( Exception ignored ) { } throw new NotificationException ( ex ) ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Exception ignored ) { } } }
Performs a sql update of the a notification row setting the
 {@link Notification#getLastUpdated()} timestamp at the same time.
Performs a sql update of the a notification row setting the { @link Notification#getLastUpdated () } timestamp at the same time .