Package com.mysema.query.jpa.hibernate

Examples of com.mysema.query.jpa.hibernate.HibernateQuery.orderBy()


    if (newerThan != null) {
      query.where(status.entryInserted.gt(newerThan));
    }

    if (order == ReadingOrder.asc) {
      query.orderBy(status.entryUpdated.asc(), status.id.asc());
    } else {
      query.orderBy(status.entryUpdated.desc(), status.id.desc());
    }

    query.offset(offset).limit(limit).setTimeout(config.getApplicationSettings().getQueryTimeout());
View Full Code Here


    }

    if (order == ReadingOrder.asc) {
      query.orderBy(status.entryUpdated.asc(), status.id.asc());
    } else {
      query.orderBy(status.entryUpdated.desc(), status.id.desc());
    }

    query.offset(offset).limit(limit).setTimeout(config.getApplicationSettings().getQueryTimeout());

    List<FeedEntryStatus> statuses = query.list(status);
View Full Code Here

      }
    }

    if (order != null) {
      if (order == ReadingOrder.asc) {
        query.orderBy(entry.updated.asc(), entry.id.asc());
      } else {
        query.orderBy(entry.updated.desc(), entry.id.desc());
      }
    }
    if (offset > -1) {
View Full Code Here

    if (order != null) {
      if (order == ReadingOrder.asc) {
        query.orderBy(entry.updated.asc(), entry.id.asc());
      } else {
        query.orderBy(entry.updated.desc(), entry.id.desc());
      }
    }
    if (offset > -1) {
      query.offset(offset);
    }
View Full Code Here

      query.join(feed.subscriptions, subs).join(subs.user, user).where(disabledDatePredicate, user.lastLogin.gt(lastLoginThreshold));
    } else {
      query.where(disabledDatePredicate);
    }

    return query.orderBy(feed.disabledUntil.asc()).limit(count).distinct().list(feed);
  }

  public Feed findByUrl(String normalizedUrl) {
    List<Feed> feeds = newQuery().from(feed).where(feed.normalizedUrlHash.eq(DigestUtils.sha1Hex(normalizedUrl))).list(feed);
    Feed feed = Iterables.getFirst(feeds, null);
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.