agave-systems/systems-core/src/main/java/org/iplantc/service/systems/dao/BatchQueueDao.java
/**
	 * Saves or updates the given {@code queue} to the database.
	 * 
	 * @param queue
	 */
Saves or updates the given  queue to the database.

@param queue
Saves or updates the given queue to the database . @param queue
public void persist(BatchQueue queue)
	{
		try
		{
			Session session = getSession();
			session.saveOrUpdate(queue);
			session.flush();
		}
		catch (HibernateException ex)
		{
			try
			{
				if (HibernateUtil.getSession().isOpen()) {
					HibernateUtil.rollbackTransaction();
				}
			}
			catch (Exception ignored) {}
			throw ex;
		}
		finally
		{
			try { HibernateUtil.commitTransaction(); } catch (Throwable ignored) {}
		}
	}
public void persist ( BatchQueue queue ) { try { Session session = getSession ( ) ; session . saveOrUpdate ( queue ) ; session . flush ( ) ; } catch ( HibernateException ex ) { try { if ( HibernateUtil . getSession ( ) . isOpen ( ) ) { HibernateUtil . rollbackTransaction ( ) ; } } catch ( Exception ignored ) { } throw ex ; } finally { try { HibernateUtil . commitTransaction ( ) ; } catch ( Throwable ignored ) { } } }
Saves or updates the given {@code queue} to the database.
Saves or updates the given { @code queue } to the database .
//session.clear(); //session.getTransaction().commit();