Changeset 903


Ignore:
Timestamp:
11/15/10 14:44:29 (14 years ago)
Author:
oschonef
Message:
  • getTotalCount() hack
File:
1 edited

Legend:

Unmodified
Added
Removed
  • VirtualCollectionRegistry/trunk/VirtualCollectionRegistry/src/main/java/eu/clarin/cmdi/virtualcollectionregistry/VirtualCollectionRegistry.java

    r780 r903  
    411411
    412412            // optimization; don't query, if we won't get any results
    413             if (totalCount > 0) {
     413            /*
     414             *  FIXME: offset == -1 is temporary hack for just fetching
     415             *  total count; re-factor to have fetch-count and fetch-data
     416             *  methods!
     417             */
     418            if ((totalCount > 0) && (offset > -1)) {
    414419                if (offset > 0) {
    415420                    q.setFirstResult(offset);
     
    475480
    476481                // optimization; don't query, if we won't get any results
    477                 if (totalCount > 0) {
     482                /*
     483                 *  FIXME: offset == -1 is temporary hack for just fetching
     484                 *  total count; re-factor to have fetch-count and fetch-data
     485                 *  methods!
     486                 */
     487                if ((totalCount > 0) && (offset > -1)) {
    478488                    if (offset > 0) {
    479489                        q.setFirstResult(offset);
Note: See TracChangeset for help on using the changeset viewer.