@Test public void testFindThemesForCategorySortedByPopularityReturnsAll() { PagedSet<Theme> results = jpaThemeMapper.findSortedByPopularity(0, 3); assertEquals(4, results.getPagedSet().size()); }
public PagedSet<Theme> findSortedByPopularity(final int inStart, final int inEnd) { String query = "FROM Theme t " + "order by size(t.users) desc)"; PagedSet<Theme> pagedSet = this.getPagedResults(inStart, inEnd, query, new HashMap<String, Object>()); populateTheme(pagedSet); return pagedSet; }
ThemeMapper extends DomainEntityMapper<Theme> implements
        GalleryItemMapper<Theme> { public PagedSet<Theme> findSortedByPopularity(final int inStart, final int inEnd) { String query = "FROM Theme t " + "order by size(t.users) desc)"; PagedSet<Theme> pagedSet = this.getPagedResults(inStart, inEnd, query, new HashMap<String, Object>()); populateTheme(pagedSet); return pagedSet; } }
ThemeMapper extends DomainEntityMapper<Theme> implements
        GalleryItemMapper<Theme> { public PagedSet<Theme> findSortedByPopularity(final int inStart, final int inEnd) { String query = "FROM Theme t " + "order by size(t.users) desc)"; PagedSet<Theme> pagedSet = this.getPagedResults(inStart, inEnd, query, new HashMap<String, Object>()); populateTheme(pagedSet); return pagedSet; } ThemeMapper(final QueryOptimizer inQueryOptimizer); }
ThemeMapper extends DomainEntityMapper<Theme> implements
        GalleryItemMapper<Theme> { public PagedSet<Theme> findSortedByPopularity(final int inStart, final int inEnd) { String query = "FROM Theme t " + "order by size(t.users) desc)"; PagedSet<Theme> pagedSet = this.getPagedResults(inStart, inEnd, query, new HashMap<String, Object>()); populateTheme(pagedSet); return pagedSet; } ThemeMapper(final QueryOptimizer inQueryOptimizer); Theme findByUrl(final String themeLocation); Theme findByUUID(final String uuid); Theme findDefault(); PagedSet<Theme> findForCategorySortedByPopularity(
            final String inCategory, final int inStart, final int inEnd); PagedSet<Theme> findSortedByPopularity(final int inStart,
            final int inEnd); PagedSet<Theme> findForCategorySortedByRecent(
            final String inCategory, final int inStart, final int inEnd); PagedSet<Theme> findSortedByRecent(final int inStart, final int inEnd); void delete(final Theme inTheme); }
ThemeMapper extends DomainEntityMapper<Theme> implements
        GalleryItemMapper<Theme> { public PagedSet<Theme> findSortedByPopularity(final int inStart, final int inEnd) { String query = "FROM Theme t " + "order by size(t.users) desc)"; PagedSet<Theme> pagedSet = this.getPagedResults(inStart, inEnd, query, new HashMap<String, Object>()); populateTheme(pagedSet); return pagedSet; } ThemeMapper(final QueryOptimizer inQueryOptimizer); Theme findByUrl(final String themeLocation); Theme findByUUID(final String uuid); Theme findDefault(); PagedSet<Theme> findForCategorySortedByPopularity(
            final String inCategory, final int inStart, final int inEnd); PagedSet<Theme> findSortedByPopularity(final int inStart,
            final int inEnd); PagedSet<Theme> findForCategorySortedByRecent(
            final String inCategory, final int inStart, final int inEnd); PagedSet<Theme> findSortedByRecent(final int inStart, final int inEnd); void delete(final Theme inTheme);  }