agave-realtime/realtime-core/src/main/java/org/iplantc/service/realtime/dao/RealtimeChannelEventDao.java
/**
	 * Deletes all {@link RealtimeChannelEvent} for the given {@link realtimeChannelUuid}.
	 * 
	 * @param realtimeChannelUuid {@link RealtimeChannel#getUuid()}
	 * @throws RealtimeChannelEventException
	 */
Deletes all  RealtimeChannelEvent for the given  realtimeChannelUuid.


Deletes all RealtimeChannelEvent for the given realtimeChannelUuid .
public static void deleteByRealtimeChannelId(String realtimeChannelUuid) throws RealtimeChannelEventException
	{
		if (StringUtils.isEmpty(realtimeChannelUuid)) {
			return;
		}
		try
		{
			Session session = getSession();
			String hql = "delete from realtimechannelevents where entity_uuid = :uuid";
			session.createQuery(hql)
					.setString("uuid", realtimeChannelUuid)
					.executeUpdate();
			session.flush();
		}
		catch (HibernateException ex)
		{
			try
			{
				if (HibernateUtil.getSession().isOpen()) {
					HibernateUtil.rollbackTransaction();
				}
			}
			catch (Exception e) {}
			throw new RealtimeChannelEventException("Failed to delete events for realtimeChannel " + realtimeChannelUuid, ex);
		}
		finally {
			try { HibernateUtil.commitTransaction(); } catch (Exception e) {}
		}
	}
public static void deleteByRealtimeChannelId ( String realtimeChannelUuid ) throws RealtimeChannelEventException { if ( StringUtils . isEmpty ( realtimeChannelUuid ) ) { return ; } try { Session session = getSession ( ) ; String hql = "delete from realtimechannelevents where entity_uuid = :uuid" ; session . createQuery ( hql ) . setString ( "uuid" , realtimeChannelUuid ) . executeUpdate ( ) ; session . flush ( ) ; } catch ( HibernateException ex ) { try { if ( HibernateUtil . getSession ( ) . isOpen ( ) ) { HibernateUtil . rollbackTransaction ( ) ; } } catch ( Exception e ) { } throw new RealtimeChannelEventException ( "Failed to delete events for realtimeChannel " + realtimeChannelUuid , ex ) ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Exception e ) { } } }
Deletes all {@link RealtimeChannelEvent} for the given {@link realtimeChannelUuid}.
Deletes all { @link RealtimeChannelEvent } for the given { @link realtimeChannelUuid } .