Class ApplicationPredicates
java.lang.Object
com.netflix.genie.web.data.services.impl.jpa.queries.predicates.ApplicationPredicates
Predicate generation helpers for querying ApplicationEntity.-
Method Summary
Modifier and TypeMethodDescriptionstatic javax.persistence.criteria.Predicatefind(javax.persistence.criteria.Root<ApplicationEntity> root, javax.persistence.criteria.AbstractQuery<?> cq, javax.persistence.criteria.CriteriaBuilder cb, String name, String user, Set<String> statuses, Set<TagEntity> tags, String type) Get aPredicateusing the specified parameters.
-
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 aPredicateusing the specified parameters.- Parameters:
root- TheRoot(from) for this querycq- TheCriteriaQueryinstance this predicate is forcb- TheCriteriaBuilderfor the queryname- The name of the applicationuser- The name of the user who created the applicationstatuses- The status of the applicationtags- The set of tags to search withtype- The type of applications to fine- Returns:
- A specification object used for querying
-