agave-systems/systems-core/src/main/java/org/iplantc/service/systems/dao/BatchQueueDao.java
/**
	 * Deletes the {@code queue} from the database.
	 * 
	 * @param queue
	 * @throws SystemException
	 */
Deletes the  queue from the database.

@param queue
@throws SystemException
Deletes the queue from the database . @param queue @throws SystemException
public void delete(BatchQueue queue) throws SystemException
	{
		if (queue == null)
			throw new SystemException("BatchQueue cannot be null");
		try
		{
			Session session = getSession();
			session.delete(queue);
			session.flush();
		}
		catch (HibernateException ex)
		{
			try
			{
				if (HibernateUtil.getSession().isOpen()) {
					HibernateUtil.rollbackTransaction();
				}
			}
			catch (Exception ignored) {}
		}
		finally
		{
			try { HibernateUtil.commitTransaction(); } catch (Throwable ignored) {}
		}
	}
public void delete ( BatchQueue queue ) throws SystemException { if ( queue == null ) throw new SystemException ( "BatchQueue cannot be null" ) ; try { Session session = getSession ( ) ; session . delete ( queue ) ; session . flush ( ) ; } catch ( HibernateException ex ) { try { if ( HibernateUtil . getSession ( ) . isOpen ( ) ) { HibernateUtil . rollbackTransaction ( ) ; } } catch ( Exception ignored ) { } } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Throwable ignored ) { } } }
Deletes the {@code queue} from the database.
Deletes the { @code queue } from the database .