agave-realtime/realtime-core/src/main/java/org/iplantc/service/realtime/dao/RealtimeChannelDao.java
/**
	 * Returns the {@link RealtimeChannel} matching the given uuid within the current tenant id
	 * 
	 * @param uuid
	 * @return {@link RealtimeChannel} with the matching uuid
	 * @throws RealtimeChannelException
	 */
Returns the  RealtimeChannel matching the given uuid within the current tenant id

@param uuid
@return  RealtimeChannel with the matching uuid
@throws RealtimeChannelException
Returns the RealtimeChannel matching the given uuid within the current tenant id @param uuid @return RealtimeChannel with the matching uuid @throws RealtimeChannelException
public RealtimeChannel findByUuidWithinSessionTenant(String uuid) throws RealtimeChannelException
	{
		try
		{
			Session session = getSession();
			String hql = "from RealtimeChannel c where c.uuid = :uuid";
			RealtimeChannel tag = (RealtimeChannel)session.createQuery(hql)
					.setString("uuid",uuid)
					.uniqueResult();
			session.flush();
			return tag;
		}
		catch (HibernateException ex)
		{
			try
			{
				if (HibernateUtil.getSession().isOpen()) {
					HibernateUtil.rollbackTransaction();
				}
			}
			catch (Exception e) {}
			throw new RealtimeChannelException(ex);
		}
		finally {
			try { HibernateUtil.commitTransaction(); } catch (Exception e) {}
		}
	}
public RealtimeChannel findByUuidWithinSessionTenant ( String uuid ) throws RealtimeChannelException { try { Session session = getSession ( ) ; String hql = "from RealtimeChannel c where c.uuid = :uuid" ; RealtimeChannel tag = ( RealtimeChannel ) session . createQuery ( hql ) . setString ( "uuid" , uuid ) . uniqueResult ( ) ; session . flush ( ) ; return tag ; } catch ( HibernateException ex ) { try { if ( HibernateUtil . getSession ( ) . isOpen ( ) ) { HibernateUtil . rollbackTransaction ( ) ; } } catch ( Exception e ) { } throw new RealtimeChannelException ( ex ) ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Exception e ) { } } }
Returns the {@link RealtimeChannel} matching the given uuid within the current tenant id
Returns the { @link RealtimeChannel } matching the given uuid within the current tenant id