agave-tags/tags-core/src/main/java/org/iplantc/service/tags/dao/TagDao.java
/**
	 * Find {@link Tag}s with the given uuid regardless of tenant.
	 * 
	 * @param uuid the uuid of the tag to search
	 * @return a {@link Tag} with the given uuid
	 * @throws TagException if unable to query
	 */
Find  Tags with the given uuid regardless of tenant.

@param uuid the uuid of the tag to search
@return a  Tag with the given uuid
@throws TagException if unable to query
Find Tags with the given uuid regardless of tenant . @param uuid the uuid of the tag to search @return a Tag with the given uuid @throws TagException if unable to query
public Tag findByUuid(String uuid) throws TagException
	{
		try
		{
			HibernateUtil.beginTransaction();
			Session session = HibernateUtil.getSession();
			session.clear();
			String hql = "from Tag t where t.uuid = :uuid";
			Tag tag = (Tag)session.createQuery(hql)
					.setString("uuid",uuid)
					.uniqueResult();
			session.flush();
			return tag;
		}
		catch (HibernateException ex)
		{
			try
			{
				if (HibernateUtil.getSession().isOpen()) {
					HibernateUtil.rollbackTransaction();
				}
			}
			catch (Exception ignored) {}
			throw new TagException(ex);
		}
		finally {
			try { HibernateUtil.commitTransaction(); } catch (Exception ignored) {}
		}
	}
public Tag findByUuid ( String uuid ) throws TagException { try { HibernateUtil . beginTransaction ( ) ; Session session = HibernateUtil . getSession ( ) ; session . clear ( ) ; String hql = "from Tag t where t.uuid = :uuid" ; Tag tag = ( Tag ) session . createQuery ( hql ) . setString ( "uuid" , uuid ) . uniqueResult ( ) ; session . flush ( ) ; return tag ; } catch ( HibernateException ex ) { try { if ( HibernateUtil . getSession ( ) . isOpen ( ) ) { HibernateUtil . rollbackTransaction ( ) ; } } catch ( Exception ignored ) { } throw new TagException ( ex ) ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Exception ignored ) { } } }
Find {@link Tag}s with the given uuid regardless of tenant.
Find { @link Tag } s with the given uuid regardless of tenant .