public int countBatchTasks(String resp) throws ISPACException { DbCnt cnt = context.getConnection(); try { return WLBatchTaskDAO.countBatchTasks(cnt, resp); } catch (ISPACException ie) { throw new ISPACException("Error en WLWorklist:getTasksPcd()", ie); } finally { context.releaseConnection(cnt); } }
public IItemCollection getBatchTasks() throws ISPACException { String resp = getRespString(); DbCnt cnt = context.getConnection(); try { return WLBatchTaskDAO.getBatchTasks(cnt, resp).disconnect(); } catch (ISPACException ie) { throw new ISPACException("Error en WLWorklist:getBatchTasks()", ie); } finally { context.releaseConnection(cnt); } }
public IItem getBatchTask(int nIdBatchTask) throws ISPACException { DbCnt cnt = null; try { cnt = mcontext.getConnection(); IItem ret = WLBatchTaskDAO.getBatchTask(cnt, nIdBatchTask); return ret; } catch (Exception e) { // TODO: handle exception } finally { mcontext.releaseConnection(cnt); } // TODO Auto-generated method stub return null; }