agave-systems/systems-core/src/main/java/org/iplantc/service/systems/dao/BatchQueueDao.java
/**
	 * Fetches the {@link BatchQueue} with the given database {@code id}.
	 * 
	 * @param id database identifier of a {@link BatchQueue}
	 * @return {@link BatchQueue} with the given id or null if no match.
	 */
Fetches the  BatchQueue with the given database  id.

@param id database identifier of a  BatchQueue
@return  BatchQueue with the given id or null if no match.
Fetches the BatchQueue with the given database id . @param id database identifier of a BatchQueue @return BatchQueue with the given id or null if no match .
public BatchQueue findById(Long id)
	{
		try
		{
		    HibernateUtil.beginTransaction();
			Session session = HibernateUtil.getSession();
			session.clear();
			BatchQueue queue = (BatchQueue)session
					.createCriteria(BatchQueue.class)
					.add(Restrictions.idEq(id))
					.uniqueResult();
			return queue;
		}
		catch (HibernateException ex)
		{
			throw ex;
		}
	}
public BatchQueue findById ( Long id ) { try { HibernateUtil . beginTransaction ( ) ; Session session = HibernateUtil . getSession ( ) ; session . clear ( ) ; BatchQueue queue = ( BatchQueue ) session . createCriteria ( BatchQueue . class ) . add ( Restrictions . idEq ( id ) ) . uniqueResult ( ) ; return queue ; } catch ( HibernateException ex ) { throw ex ; } }
Fetches the {@link BatchQueue} with the given database {@code id}.
Fetches the { @link BatchQueue } with the given database { @code id } .