Examples of desc()


Examples of javax.persistence.criteria.CriteriaBuilder.desc()

      cq.where(condition);
      cq.distinct(asc);
      if (asc){
        cq.orderBy(cb.asc(c.get(orderby)));
      } else {
        cq.orderBy(cb.desc(c.get(orderby)));
      }
      TypedQuery<Configuration> q = session.createQuery(cq);
      q.setFirstResult(start);
      q.setMaxResults(max);
      List<Configuration> ll = q.getResultList();
View Full Code Here

Examples of javax.persistence.criteria.CriteriaBuilder.desc()

    cq.where(condition);
    cq.distinct(asc);
    if (asc){
      cq.orderBy(cb.asc(c.get(orderby)));
    } else {
      cq.orderBy(cb.desc(c.get(orderby)));
    }
    TypedQuery<Fieldvalues> q = session.createQuery(cq);
    q.setFirstResult(start);
    q.setMaxResults(max);
    List<Fieldvalues> ll = q.getResultList();
View Full Code Here

Examples of javax.persistence.criteria.CriteriaBuilder.desc()

        cq.where(condition);
        cq.distinct(asc);
        if (asc) {
          cq.orderBy(cb.asc(c.get(orderby)));
        } else {
          cq.orderBy(cb.desc(c.get(orderby)));
        }
        TypedQuery<Users> q = session.createQuery(cq);
        q.setFirstResult(start);
        q.setMaxResults(max);
        List<Users> ll = q.getResultList();
View Full Code Here

Examples of javax.persistence.criteria.CriteriaBuilder.desc()

        cq.where(condition, predicate);
        cq.distinct(asc);
        if (asc) {
          cq.orderBy(cb.asc(c.get(orderby)));
        } else {
          cq.orderBy(cb.desc(c.get(orderby)));
        }
        TypedQuery<Users> q = session.createQuery(cq);
        q.setFirstResult(start);
        q.setMaxResults(max);
        List<Users> contactsZ = q.getResultList();
View Full Code Here

Examples of javax.persistence.criteria.CriteriaBuilder.desc()

      cq.where(condition);
      cq.distinct(asc);
      if (asc){
        cq.orderBy(cb.asc(c.get(orderby)));
      } else {
        cq.orderBy(cb.desc(c.get(orderby)));
      }
      TypedQuery<Rooms> q = session.createQuery(cq);
      q.setFirstResult(start);
      q.setMaxResults(max);
      List<Rooms> ll = q.getResultList();
View Full Code Here

Examples of javax.persistence.criteria.CriteriaBuilder.desc()

      cq.where(condition, subCondition);
      cq.distinct(asc);
      if (asc){
        cq.orderBy(cb.asc(c.get(orderby)));
      } else {
        cq.orderBy(cb.desc(c.get(orderby)));
      }
      TypedQuery<Rooms> q = session.createQuery(cq);
      q.setFirstResult(start);
      q.setMaxResults(max);
      List<Rooms> ll = q.getResultList();
View Full Code Here

Examples of javax.persistence.criteria.CriteriaBuilder.desc()

      cq.where(condition);
      cq.distinct(asc);
      if (asc) {
        cq.orderBy(cb.asc(c.get(orderby)));
      } else {
        cq.orderBy(cb.desc(c.get(orderby)));
      }
      TypedQuery<Organisation> q = session.createQuery(cq);
      q.setFirstResult(start);
      q.setMaxResults(max);
      List<Organisation> ll = q.getResultList();
View Full Code Here

Examples of javax.persistence.criteria.CriteriaBuilder.desc()

      cq.where(condition);
      cq.distinct(asc);
      if (asc){
        cq.orderBy(cb.asc(c.get(orderby)));
      } else {
        cq.orderBy(cb.desc(c.get(orderby)));
      }
      TypedQuery<LdapConfig> q = session.createQuery(cq);
      q.setFirstResult(start);
      q.setMaxResults(max);
      List<LdapConfig> ll = q.getResultList();
View Full Code Here

Examples of javax.persistence.criteria.CriteriaBuilder.desc()

        Root<ScheduleExecution> root = criteriaQuery.from(ScheduleExecution.class);
        root.fetch(ScheduleExecution_.job, JoinType.LEFT);

        // CHECKSTYLE-OFF: NestedMethodCall
        criteriaQuery.orderBy(
            criteriaBuilder.desc(root.get(ScheduleExecution_.fired))
        );
        // CHECKSTYLE-ON: NestedMethodCall

        TypedQuery<ScheduleExecution> typedQuery = entityManager.createQuery(criteriaQuery);
        if (Extraction.isRequired(extraction)) {
View Full Code Here

Examples of javax.persistence.criteria.CriteriaBuilder.desc()

        criteriaQuery.where(
            criteriaBuilder.isNotNull(root.get(ScheduleExecution_.finished))
        );

        criteriaQuery.orderBy(
            criteriaBuilder.desc(root.get(ScheduleExecution_.fired))
        );
        // CHECKSTYLE-ON: NestedMethodCall

        TypedQuery<ScheduleExecution> typedQuery = entityManager.createQuery(criteriaQuery);
        if (Extraction.isRequired(extraction)) {
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.