Examples of le()


Examples of com.j256.ormlite.stmt.Where.le()

                clausesCount++;
            }
        }

        if (maxCardNumber != Integer.MAX_VALUE) {
            where.le("cardNumber", maxCardNumber);
            clausesCount++;
        }

        if (clausesCount > 0) {
            where.and(clausesCount);
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.LE()

        case Operators.LT:
                bi = tleft.GE(tozero);
                break;

        case Operators.GT:
                bi = tleft.LE(tozero);
                break;

        case Operators.LE:
                bi = tleft.GT(tozero);
                break;
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.LE()

        case Operators.LT:
    bi = tleft.GE(tozero)
    break;
   
        case Operators.GT:
    bi = tleft.LE(tozero);
    break;
   
        case Operators.LE:
    bi = tleft.GT(tozero);
    break;
View Full Code Here

Examples of com.sun.org.apache.xalan.internal.xsltc.compiler.util.Type.LE()

        case Operators.LT:
                bi = tleft.GE(tozero);
                break;

        case Operators.GT:
                bi = tleft.LE(tozero);
                break;

        case Operators.LE:
                bi = tleft.GT(tozero);
                break;
View Full Code Here

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

            predicates.add(matchPrice);
        } else if (minPrice != null && maxPrice == null) {
            Predicate matchPrice = cb.ge(book.get(Book_.price), minPrice);
            predicates.add(matchPrice);
        } else if (minPrice == null && maxPrice != null) {
            Predicate matchPrice = cb.le(book.get(Book_.price), maxPrice);
            predicates.add(matchPrice);
        }
        // Sets the evaluation criteria    
        if (!predicates.isEmpty())
            q.where(predicates.toArray(new Predicate[predicates.size()]));
View Full Code Here

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

            predicates.add(matchPrice);
        } else if (minPrice != null && maxPrice == null) {
            Predicate matchPrice = cb.ge(book.get(Book_.price), minPrice);
            predicates.add(matchPrice);
        } else if (minPrice == null && maxPrice != null) {
            Predicate matchPrice = cb.le(book.get(Book_.price), maxPrice);
            predicates.add(matchPrice);
        }
        // Sets the evaluation criteria    
        if (!predicates.isEmpty())
            q.where(predicates.toArray(new Predicate[predicates.size()]));
View Full Code Here

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

            query.select(from);

            Subquery<Number> subquery = query.subquery(Number.class);
            Root maxTime = subquery.from(JPACommit.class);
            subquery.select(criteriaBuilder.max(maxTime.get("timestamp")));
            subquery.where(criteriaBuilder.le(maxTime.get("timestamp"), timestamp));

            query.where(criteriaBuilder.equal(from.get("timestamp"), subquery));

            TypedQuery<JPACommit> typedQuery = entityManager.createQuery(query);
            return typedQuery.getResultList();
View Full Code Here

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

            query.select(from);

            Subquery<Number> subquery = query.subquery(Number.class);
            Root maxTime = subquery.from(JPAObject.class);
            subquery.select(criteriaBuilder.max(maxTime.get("timestamp")));
            Predicate subPredicate1 = criteriaBuilder.le(maxTime.get("timestamp"), timestamp);
            Predicate subPredicate2 = criteriaBuilder.equal(maxTime.get("oid"), from.get("oid"));
            subquery.where(criteriaBuilder.and(subPredicate1, subPredicate2));

            Predicate predicate1 = criteriaBuilder.equal(from.get("timestamp"), subquery);
            Predicate predicate2 = criteriaBuilder.notEqual(from.get("isDeleted"), Boolean.TRUE);
View Full Code Here

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

            Root from = query.from(JPAObject.class);

            query.select(from);

            Predicate predicate1 = criteriaBuilder.equal(from.get("oid"), oid);
            Predicate predicate2 = criteriaBuilder.le(from.get("timestamp"), timestamp);
            query.where(criteriaBuilder.and(predicate1, predicate2));
            query.orderBy(criteriaBuilder.desc(from.get("timestamp")));

            TypedQuery<JPAObject> typedQuery = entityManager.createQuery(query).setMaxResults(1);
            List<JPAObject> resultList = typedQuery.getResultList();
View Full Code Here

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

         CriteriaBuilder cb = em.getCriteriaBuilder();
         CriteriaQuery<MetadataEntity> cq = cb.createQuery(MetadataEntity.class);

         Root root = cq.from(MetadataEntity.class);
         long currentTime = timeService.wallClockTime();
         cq.where(cb.le(root.get(MetadataEntity.EXPIRATION), currentTime));

         for (MetadataEntity metadata : em.createQuery(cq).getResultList()) {
            EntityTransaction txn = em.getTransaction();
            final Object key;
            try {
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.