agave-jobs/jobs-core/src/main/java/org/iplantc/service/jobs/dao/JobDao.java
/**
	 * Performs a string replacement and update on the job with the 
	 * given id. This is only needed because job inputs are not a 
	 * separate table.
	 * 
	 * @param jobId the db id of the job to update
	 * @param source the value within the inputs column to be replaced
	 * @param dest the value with which to replace {@code source} in the inputs column
	 * @throws JobException when the query fails to complete
	 */
Performs a string replacement and update on the job with the
given id. This is only needed because job inputs are not a
separate table.

@param jobId the db id of the job to update
@param source the value within the inputs column to be replaced
@param dest the value with which to replace  source in the inputs column
@throws JobException when the query fails to complete
Performs a string replacement and update on the job with the given id . This is only needed because job inputs are not a separate table . @param jobId the db id of the job to update @param source the value within the inputs column to be replaced @param dest the value with which to replace source in the inputs column @throws JobException when the query fails to complete
public static void updateInputs(long jobId, String source, String dest)
	throws JobException
	{
		try
		{
			Session session = getSession();
			session.clear();
			String sql = "update jobs set inputs = replace(inputs, :source, :dest)";
			session.createQuery(sql).setString("source", source).setString(
					"dest", dest).executeUpdate();
			session.flush();
		} catch (HibernateException ex) {
			throw new JobException(ex);
		} finally {
			try {
				HibernateUtil.commitTransaction();
			} catch (Exception ignored) {
			}
		}
	}
public static void updateInputs ( long jobId , String source , String dest ) throws JobException { try { Session session = getSession ( ) ; session . clear ( ) ; String sql = "update jobs set inputs = replace(inputs, :source, :dest)" ; session . createQuery ( sql ) . setString ( "source" , source ) . setString ( "dest" , dest ) . executeUpdate ( ) ; session . flush ( ) ; } catch ( HibernateException ex ) { throw new JobException ( ex ) ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Exception ignored ) { } } }
Performs a string replacement and update on the job with the
 given id.
Performs a string replacement and update on the job with the given id .