public final class ClusterPredicates
extends java.lang.Object
Predicate generation helpers for querying ClusterEntity.| Modifier and Type | Method and Description |
|---|---|
static javax.persistence.criteria.Predicate |
find(javax.persistence.criteria.Root<ClusterEntity> root,
javax.persistence.criteria.CriteriaQuery<?> cq,
javax.persistence.criteria.CriteriaBuilder cb,
java.lang.String name,
java.util.Set<java.lang.String> statuses,
java.util.Set<TagEntity> tags,
java.time.Instant minUpdateTime,
java.time.Instant maxUpdateTime)
Generate a
Predicate given the parameters. |
static javax.persistence.criteria.Predicate |
findClustersMatchingAnyCriterion(javax.persistence.criteria.Root<ClusterEntity> root,
javax.persistence.criteria.CriteriaQuery<?> cq,
javax.persistence.criteria.CriteriaBuilder cb,
java.util.Set<com.netflix.genie.common.external.dtos.v4.Criterion> criteria)
Get the specification for the query which will find the clusters which match any of the given criterion.
|
static javax.persistence.criteria.Predicate |
findClustersMatchingCriterion(javax.persistence.criteria.Root<ClusterEntity> root,
javax.persistence.criteria.CriteriaQuery<?> cq,
javax.persistence.criteria.CriteriaBuilder cb,
com.netflix.genie.common.external.dtos.v4.Criterion criterion)
Get the
Predicate for the query which will find the clusters which match the given criterion. |
public static javax.persistence.criteria.Predicate find(javax.persistence.criteria.Root<ClusterEntity> root, javax.persistence.criteria.CriteriaQuery<?> cq, javax.persistence.criteria.CriteriaBuilder cb, @Nullable java.lang.String name, @Nullable java.util.Set<java.lang.String> statuses, @Nullable java.util.Set<TagEntity> tags, @Nullable java.time.Instant minUpdateTime, @Nullable java.time.Instant maxUpdateTime)
Predicate given the parameters.root - The Root of the querycq - The CriteriaQuerycb - The CriteriaBuildername - The name of the cluster to findstatuses - The statuses of the clusters to findtags - The tags of the clusters to findminUpdateTime - The minimum updated time of the clusters to findmaxUpdateTime - The maximum updated time of the clusters to findPredicate representing these parameterspublic static javax.persistence.criteria.Predicate findClustersMatchingCriterion(javax.persistence.criteria.Root<ClusterEntity> root, javax.persistence.criteria.CriteriaQuery<?> cq, javax.persistence.criteria.CriteriaBuilder cb, com.netflix.genie.common.external.dtos.v4.Criterion criterion)
Predicate for the query which will find the clusters which match the given criterion.root - The Root of the querycq - The CriteriaQuerycb - The CriteriaBuildercriterion - The Criterion to match clusters againstPredicate for this querypublic static javax.persistence.criteria.Predicate findClustersMatchingAnyCriterion(javax.persistence.criteria.Root<ClusterEntity> root, javax.persistence.criteria.CriteriaQuery<?> cq, javax.persistence.criteria.CriteriaBuilder cb, java.util.Set<com.netflix.genie.common.external.dtos.v4.Criterion> criteria)
root - The Root of the querycq - The CriteriaQuerycb - The CriteriaBuildercriteria - The set of Criterion to match clusters againstSpecification for this query