public DynDaoRec getRow(int idx) throws Exception { DynDaoRec rec = null; if ((idx + 1) > m_rows.count() || (idx < 0)) { throw new IeciTdException(SearchError.EC_INVALID_PARAM, SearchError.EM_INVALID_PARAM); } else { rec = m_rows.getRecord(idx); return rec; } }
public DynDaoRec nextRow() throws Exception { DynDaoRec rec = null; if ((m_currentIdx + 1) > m_rows.count()) { throw new IeciTdException(SearchError.EC_NO_MORE_ROWS, SearchError.EM_NO_MORE_ROWS); } else { rec = m_rows.getRecord(m_currentIdx); m_currentIdx = m_currentIdx + 1; return rec; } }