java.lang.Object
com.netflix.genie.web.data.services.impl.jpa.queries.predicates.ApplicationPredicates

public final class ApplicationPredicates extends Object
Predicate generation helpers for querying ApplicationEntity.
  • Method Details

    • find

      public static javax.persistence.criteria.Predicate find(javax.persistence.criteria.Root<ApplicationEntity> root, javax.persistence.criteria.AbstractQuery<?> cq, javax.persistence.criteria.CriteriaBuilder cb, @Nullable String name, @Nullable String user, @Nullable Set<String> statuses, @Nullable Set<TagEntity> tags, @Nullable String type)
      Get a Predicate using the specified parameters.
      Parameters:
      root - The Root (from) for this query
      cq - The CriteriaQuery instance this predicate is for
      cb - The CriteriaBuilder for the query
      name - The name of the application
      user - The name of the user who created the application
      statuses - The status of the application
      tags - The set of tags to search with
      type - The type of applications to fine
      Returns:
      A specification object used for querying