agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/dao/JobDao.java
/**
	 * Deletes a job from the db.
	 * @param job the job to delete
	 * @throws JobException if the delete operation fails
	 */
Deletes a job from the db.
@param job the job to delete
@throws JobException if the delete operation fails
Deletes a job from the db . @param job the job to delete @throws JobException if the delete operation fails
public static void delete(Job job) throws JobException
	{
		if (job == null)
			throw new JobException("Job cannot be null");
		try
		{
			Session session = getSession();
			session.disableFilter("jobTenantFilter");
			session.disableFilter("jobEventTenantFilter");
			session.disableFilter("jobPermissionTenantFilter");
			session.clear();
			session.delete(job);
			session.flush();
		}
		catch (HibernateException ex)
		{
			try
			{
				if (HibernateUtil.getSession().isOpen()) {
					HibernateUtil.rollbackTransaction();
				}
			}
			catch (Throwable ignored) {}
			throw new JobException(ex);
		}
		finally {
			try { HibernateUtil.commitTransaction();} catch (Exception ignored) {}
		}
	}
public static void delete ( Job job ) throws JobException { if ( job == null ) throw new JobException ( "Job cannot be null" ) ; try { Session session = getSession ( ) ; session . disableFilter ( "jobTenantFilter" ) ; session . disableFilter ( "jobEventTenantFilter" ) ; session . disableFilter ( "jobPermissionTenantFilter" ) ; session . clear ( ) ; session . delete ( job ) ; session . flush ( ) ; } catch ( HibernateException ex ) { try { if ( HibernateUtil . getSession ( ) . isOpen ( ) ) { HibernateUtil . rollbackTransaction ( ) ; } } catch ( Throwable ignored ) { } throw new JobException ( ex ) ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Exception ignored ) { } } }
Deletes a job from the db.
Deletes a job from the db .
//			session.evict(job);