public final class JpaClusterSpecs
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static org.springframework.data.jpa.domain.Specification<ClusterEntity> |
find(java.lang.String name,
java.util.Set<ClusterStatus> statuses,
java.util.Set<TagEntity> tags,
java.time.Instant minUpdateTime,
java.time.Instant maxUpdateTime)
Generate a specification given the parameters.
|
static org.springframework.data.jpa.domain.Specification<ClusterEntity> |
findClustersForCommand(java.lang.String commandId,
java.util.Set<ClusterStatus> statuses)
Get all the clusters given the specified parameters.
|
public static org.springframework.data.jpa.domain.Specification<ClusterEntity> find(@Nullable java.lang.String name, @Nullable java.util.Set<ClusterStatus> statuses, @Nullable java.util.Set<TagEntity> tags, @Nullable java.time.Instant minUpdateTime, @Nullable java.time.Instant maxUpdateTime)
name
- 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 findpublic static org.springframework.data.jpa.domain.Specification<ClusterEntity> findClustersForCommand(java.lang.String commandId, @Nullable java.util.Set<ClusterStatus> statuses)
commandId
- The id of the command that is registered with this clusterstatuses
- The status of the cluster