agave-monitors/monitors-core/src/main/java/org/iplantc/service/monitor/dao/MonitorDao.java
/**
	 * Gets all internal users created by the given apiUsername. This will return both
	 * active and inactive users.
	 * 
	 * @param uuid the uuid of the monitor to retrieve
	 * @return
	 * @throws MonitorException
	 */
Gets all internal users created by the given apiUsername. This will return both
active and inactive users.

@param uuid the uuid of the monitor to retrieve
@return
@throws MonitorException
Gets all internal users created by the given apiUsername . This will return both active and inactive users . @param uuid the uuid of the monitor to retrieve @return @throws MonitorException
public Monitor findByUuid(String uuid) throws MonitorException
	{
		try
		{
			HibernateUtil.beginTransaction();
			Session session = HibernateUtil.getSession();
			session.clear();
			String hql = "from Monitor t where t.uuid = :uuid";
			Monitor monitor = (Monitor)session.createQuery(hql)
					.setString("uuid",uuid)
					.uniqueResult();
			session.flush();
			return monitor;
		}
		catch (HibernateException ex)
		{
			try
			{
				if (HibernateUtil.getSession().isOpen()) {
					HibernateUtil.rollbackTransaction();
				}
			}
			catch (Exception ignored) {}
			throw new MonitorException(ex);
		}
		finally {
			try { HibernateUtil.commitTransaction(); } catch (Exception ignored) {}
		}
	}
public Monitor findByUuid ( String uuid ) throws MonitorException { try { HibernateUtil . beginTransaction ( ) ; Session session = HibernateUtil . getSession ( ) ; session . clear ( ) ; String hql = "from Monitor t where t.uuid = :uuid" ; Monitor monitor = ( Monitor ) session . createQuery ( hql ) . setString ( "uuid" , uuid ) . uniqueResult ( ) ; session . flush ( ) ; return monitor ; } catch ( HibernateException ex ) { try { if ( HibernateUtil . getSession ( ) . isOpen ( ) ) { HibernateUtil . rollbackTransaction ( ) ; } } catch ( Exception ignored ) { } throw new MonitorException ( ex ) ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Exception ignored ) { } } }
Gets all internal users created by the given apiUsername.
Gets all internal users created by the given apiUsername .