public final class CommandPredicates
extends java.lang.Object
Predicate generation helpers for querying CommandEntity.| Modifier and Type | Method and Description |
|---|---|
static javax.persistence.criteria.Predicate |
find(javax.persistence.criteria.Root<CommandEntity> root,
javax.persistence.criteria.CriteriaQuery<?> cq,
javax.persistence.criteria.CriteriaBuilder cb,
java.lang.String name,
java.lang.String user,
java.util.Set<java.lang.String> statuses,
java.util.Set<TagEntity> tags)
Get a predicate using the specified parameters.
|
static javax.persistence.criteria.Predicate |
findCommandsMatchingCriterion(javax.persistence.criteria.Root<CommandEntity> root,
javax.persistence.criteria.CriteriaQuery<?> cq,
javax.persistence.criteria.CriteriaBuilder cb,
com.netflix.genie.common.external.dtos.v4.Criterion criterion)
Get the specification for the query which will find the commands which match the given criterion.
|
public static javax.persistence.criteria.Predicate find(javax.persistence.criteria.Root<CommandEntity> root, javax.persistence.criteria.CriteriaQuery<?> cq, javax.persistence.criteria.CriteriaBuilder cb, @Nullable java.lang.String name, @Nullable java.lang.String user, @Nullable java.util.Set<java.lang.String> statuses, @Nullable java.util.Set<TagEntity> tags)
root - The Root (from) for this querycq - The CriteriaQuery instance this predicate is forcb - The CriteriaBuilder for the queryname - The name of the commanduser - The name of the user who created the commandstatuses - The status of the commandtags - The set of tags to search the command forPredicate object used for queryingpublic static javax.persistence.criteria.Predicate findCommandsMatchingCriterion(javax.persistence.criteria.Root<CommandEntity> root, javax.persistence.criteria.CriteriaQuery<?> cq, javax.persistence.criteria.CriteriaBuilder cb, com.netflix.genie.common.external.dtos.v4.Criterion criterion)
root - The Root (from) for the querycq - The CriteriaQuery instancecb - The CriteriaBuilder instancecriterion - The Criterion to match commands againstPredicate for this query