agave-tags/tags-core/src/main/java/org/iplantc/service/tags/dao/TagDao.java
/**
	 * Returns the {@link Tag} matching the given uuid within the current tenant id
	 * 
	 * @param uuid the tag uuid
	 * @return {@link Tag} with the matching uuid
	 * @throws TagException if unable to query
	 */
Returns the  Tag matching the given uuid within the current tenant id

@param uuid the tag uuid
@return  Tag with the matching uuid
@throws TagException if unable to query
Returns the Tag matching the given uuid within the current tenant id @param uuid the tag uuid @return Tag with the matching uuid @throws TagException if unable to query
public Tag findByUuidWithinSessionTenant(String uuid) throws TagException
	{
		try
		{
			Session session = getSession();
			String hql = "from Tag t where t.uuid = :uuid";
			Tag tag = (Tag)session.createQuery(hql)
					.setString("uuid",uuid)
					.setCacheMode(CacheMode.IGNORE)
					.setCacheable(false)
					.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 findByUuidWithinSessionTenant ( String uuid ) throws TagException { try { Session session = getSession ( ) ; String hql = "from Tag t where t.uuid = :uuid" ; Tag tag = ( Tag ) session . createQuery ( hql ) . setString ( "uuid" , uuid ) . setCacheMode ( CacheMode . IGNORE ) . setCacheable ( false ) . 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 ) { } } }
Returns the {@link Tag} matching the given uuid within the current tenant id
Returns the { @link Tag } matching the given uuid within the current tenant id