@Override public UniversalPage getById(int univId) throws DaoException { DSLContext context = getJooq(); try { Result<Record> result = context.select() .from(Tables.UNIVERSAL_PAGE) .where(Tables.UNIVERSAL_PAGE.UNIV_ID.eq(univId)) .and(Tables.UNIVERSAL_PAGE.ALGORITHM_ID.eq(algorithmId)) .fetch(); return (UniversalPage)buildUniversalPage(result); } finally { freeJooq(context); } }