.where(conditions) .limit(daoFilter.getLimitOrInfinity()) .fetchLazy(getFetchSize()); Set<int[]> pages = new HashSet<int[]>(); for (Record record : result) {
/** * Generally this method should not be used. * @param daoFilter a set of filters to limit the search * @return * @throws DaoException */ @Override public Iterable<Redirect> get(DaoFilter daoFilter) throws DaoException { DSLContext context = getJooq(); try { Collection<Condition> conditions = new ArrayList<Condition>(); if (daoFilter.getLangIds() != null) { conditions.add(Tables.REDIRECT.LANG_ID.in(daoFilter.getLangIds())); } Cursor<Record> result = context.select(). from(Tables.REDIRECT). where(conditions). limit(daoFilter.getLimitOrInfinity()). fetchLazy(getFetchSize()); return new SimpleSqlDaoIterable<Redirect>(result, context) { @Override public Redirect transform(Record r) { return buildRedirect(r); } }; } catch (RuntimeException e) { freeJooq(context); throw e; } }
where(conditions). limit(daoFilter.getLimitOrInfinity()). fetchLazy(getFetchSize()); Set<LocalId> ids = new HashSet<LocalId>(); for (Record2<Short, Long> record : result) {
@Override public Iterable<UniversalLink> get(DaoFilter daoFilter) throws DaoException { DSLContext context = getJooq(); try { Collection<Condition> conditions = new ArrayList<Condition>(); if (daoFilter.getSourceIds() != null) { conditions.add(Tables.UNIVERSAL_LINK.UNIV_SOURCE_ID.in(daoFilter.getSourceIds())); } if (daoFilter.getDestIds() != null) { conditions.add(Tables.UNIVERSAL_LINK.UNIV_DEST_ID.in(daoFilter.getDestIds())); } if (daoFilter.isRedirect() != null) { conditions.add(Tables.UNIVERSAL_LINK.ALGORITHM_ID.eq(algorithmId)); } Cursor<Record> result = context.select(). from(Tables.UNIVERSAL_LINK). where(conditions). limit(daoFilter.getLimitOrInfinity()). fetchLazy(getFetchSize()); return buildUniversalLinksIterable(result, context); } catch (RuntimeException e) { freeJooq(context); throw e; } }
where(conditions). limit(daoFilter.getLimitOrInfinity()). fetchLazy(getFetchSize()); return new SimpleSqlDaoIterable<PageView>(result, context) { @Override
where(conditions). limit(daoFilter.getLimitOrInfinity()). fetchLazy(getFetchSize()); return new SimpleSqlDaoIterable<PageView>(result, context) { @Override
/** * This method should generally not be used. * @param daoFilter a set of filters to limit the search * @return * @throws DaoException */ @Override public Iterable<LocalCategoryMember> get(DaoFilter daoFilter) throws DaoException { DSLContext context = getJooq(); try { Collection<Condition> conditions = new ArrayList<Condition>(); if (daoFilter.getLangIds() != null) { conditions.add(Tables.CATEGORY_MEMBERS.LANG_ID.in(daoFilter.getLangIds())); } Cursor<Record> result = context.select(). from(Tables.CATEGORY_MEMBERS). where(conditions). limit(daoFilter.getLimitOrInfinity()). fetchLazy(getFetchSize()); return new SimpleSqlDaoIterable<LocalCategoryMember>(result, context) { @Override public LocalCategoryMember transform(Record r) { return buildLocalCategoryMember(r); } }; } catch (RuntimeException e) { freeJooq(context); throw e; } }
@Override public Iterable<UniversalLink> get(DaoFilter daoFilter) throws DaoException { DSLContext context = getJooq(); try { Collection<Condition> conditions = new ArrayList<Condition>(); if (daoFilter.getNameSpaceIds() != null) { conditions.add(Tables.UNIVERSAL_SKELETAL_LINK.SOURCE_ID.in(daoFilter.getSourceIds())); } if (daoFilter.getNameSpaceIds() != null) { conditions.add(Tables.UNIVERSAL_SKELETAL_LINK.DEST_ID.in(daoFilter.getDestIds())); } if (daoFilter.isRedirect() != null) { conditions.add(Tables.UNIVERSAL_SKELETAL_LINK.ALGORITHM_ID.eq(algorithmId)); } Cursor<Record> result = context.select() .from(Tables.UNIVERSAL_SKELETAL_LINK) .where(conditions) .limit(daoFilter.getLimitOrInfinity()) .fetchLazy(getFetchSize()); return new SimpleSqlDaoIterable<UniversalLink>(result, context) { @Override public UniversalLink transform(Record item) throws DaoException { return buildUniversalLink(item); } }; } catch (RuntimeException e) { freeJooq(context); throw e; } }
@Override public Iterable<RawPage> get(DaoFilter daoFilter) throws DaoException { DSLContext context = getJooq(); try { Collection<Condition> conditions = getConditions(daoFilter); Cursor<Record> result = context.selectFrom(Tables.RAW_PAGE) .where(conditions) .limit(daoFilter.getLimitOrInfinity()) .fetchLazy(getFetchSize()); return new SimpleSqlDaoIterable<RawPage>(result, context) { @Override public RawPage transform(Record r) { return buildRawPage(r); } }; } catch (RuntimeException e) { freeJooq(context); throw e; } }
where(conditions). limit(daoFilter.getLimitOrInfinity()). fetchLazy(getFetchSize()); return new SimpleSqlDaoIterable<LocalLink>(result, context) { @Override
where(conditions). limit(daoFilter.getLimitOrInfinity()). fetchLazy(getFetchSize()); return new SimpleSqlDaoIterable<LocalPage>(result, context) { @Override