public final class JpaJobSpecs
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static javax.persistence.criteria.Predicate |
getFindPredicate(javax.persistence.criteria.Root<JobEntity> root,
javax.persistence.criteria.CriteriaBuilder cb,
java.lang.String id,
java.lang.String name,
java.lang.String user,
java.util.Set<JobStatus> statuses,
java.util.Set<java.lang.String> tags,
java.lang.String clusterName,
ClusterEntity cluster,
java.lang.String commandName,
CommandEntity command,
java.util.Date minStarted,
java.util.Date maxStarted,
java.util.Date minFinished,
java.util.Date maxFinished,
java.lang.String grouping,
java.lang.String groupingInstance)
Generate a criteria query predicate for a where clause based on the given parameters.
|
public static javax.persistence.criteria.Predicate getFindPredicate(javax.persistence.criteria.Root<JobEntity> root, javax.persistence.criteria.CriteriaBuilder cb, @Nullable java.lang.String id, @Nullable java.lang.String name, @Nullable java.lang.String user, @Nullable java.util.Set<JobStatus> statuses, @Nullable java.util.Set<java.lang.String> tags, @Nullable java.lang.String clusterName, @Nullable ClusterEntity cluster, @Nullable java.lang.String commandName, @Nullable CommandEntity command, @Nullable java.util.Date minStarted, @Nullable java.util.Date maxStarted, @Nullable java.util.Date minFinished, @Nullable java.util.Date maxFinished, @Nullable java.lang.String grouping, @Nullable java.lang.String groupingInstance)
root - The root to usecb - The criteria builder to useid - The job idname - The job nameuser - The user who created the jobstatuses - The job statusestags - The tags for the jobs to findclusterName - The cluster namecluster - The cluster the job should have been run oncommandName - The command namecommand - The command the job should have been run withminStarted - The time which the job had to start after in order to be return (inclusive)maxStarted - The time which the job had to start before in order to be returned (exclusive)minFinished - The time which the job had to finish after in order to be return (inclusive)maxFinished - The time which the job had to finish before in order to be returned (exclusive)grouping - The job grouping to search forgroupingInstance - The job grouping instance to search for