Examples of toPredicate()


Examples of org.springframework.data.jpa.domain.Specification.toPredicate()

   
    CriteriaBuilder builder = em.getCriteriaBuilder();
    CriteriaQuery criteriaQuery = builder.createQuery(clazz.getClass());
    Root root = criteriaQuery.from(clazz.getClass());
   
    Predicate predicate = spec.toPredicate(root, criteriaQuery, builder);
    criteriaQuery.where(predicate);
   
    List<Object> objects = em.createQuery(criteriaQuery).getResultList();
    if (ids != null) {
      if (objects.size() == ids.length) {
View Full Code Here

Examples of org.structr.core.app.Query.toPredicate()

        }

        // use search context from type resource
        typeResource.collectSearchAttributes(query);

        final Predicate<GraphObject> predicate = query.toPredicate();
        final Object value = sourceEntity.getProperty(propertyKey, predicate);

        if (value != null) {

          if (value instanceof Iterable) {
View Full Code Here

Examples of org.structr.core.app.Query.toPredicate()

      }

      final List<GraphObject> entries = new LinkedList<>();
      final Query query               = getTimestampQuery();
      final Range<Long> range         = getRangeFromQuery(query);
      final Predicate datePredicate   = query.toPredicate();

      for (final Path path : files) {

        try (final BufferedReader reader = Files.newBufferedReader(path, Charset.forName("utf-8"))) {
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.