agave-jobs/jobs-core/src/test/java/org/iplantc/service/jobs/dao/AbstractDaoTest.java
/**
     * Delete all {@link JobEvent}, {@link TransferTask}, {@link JobPermission}, {@link Notification},
     * and {@link Job}s from the database.
     * @throws Exception
     */
Delete all  JobEvent,  TransferTask,  JobPermission,  Notification,
and  Jobs from the database.
@throws Exception
Delete all JobEvent TransferTask JobPermission Notification and Jobs from the database . @throws Exception
protected void clearJobs() throws Exception
	{
		Session session = null;
		try
		{
			HibernateUtil.beginTransaction();
			session = HibernateUtil.getSession();
			session.clear();
			HibernateUtil.disableAllFilters();
            session.createQuery("delete JobEvent").executeUpdate();
			session.createQuery("delete TransferTask").executeUpdate();
			session.createQuery("delete JobPermission").executeUpdate();
            session.createQuery("delete Notification").executeUpdate();
			session.createQuery("delete Job").executeUpdate();
			session.flush();
		}
		catch (Throwable ex) {
			throw new JobException(ex);
		}
		finally {
			try { HibernateUtil.commitTransaction();} catch (Throwable ignored) {}
		}
	}
protected void clearJobs ( ) throws Exception { Session session = null ; try { HibernateUtil . beginTransaction ( ) ; session = HibernateUtil . getSession ( ) ; session . clear ( ) ; HibernateUtil . disableAllFilters ( ) ; session . createQuery ( "delete JobEvent" ) . executeUpdate ( ) ; session . createQuery ( "delete TransferTask" ) . executeUpdate ( ) ; session . createQuery ( "delete JobPermission" ) . executeUpdate ( ) ; session . createQuery ( "delete Notification" ) . executeUpdate ( ) ; session . createQuery ( "delete Job" ) . executeUpdate ( ) ; session . flush ( ) ; } catch ( Throwable ex ) { throw new JobException ( ex ) ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Throwable ignored ) { } } }
Delete all {@link JobEvent}, {@link TransferTask}, {@link JobPermission}, {@link Notification},
 and {@link Job}s from the database.
Delete all { @link JobEvent } { @link TransferTask } { @link JobPermission } { @link Notification } and { @link Job } s from the database .