Module jakarta.data
Package jakarta.data.constraint
package jakarta.data.constraint
Constraints for parameter-based Find and Delete methods.
The @Is annotation and the constraint classes listed below
describe how to use constraints with repository methods.
- Since:
- 1.1
-
InterfacesClassDescriptionAtLeast<V extends Comparable<?>>A constraint that imposes a minimum value.AtMost<V extends Comparable<?>>A constraint that imposes a maximum value.Between<V extends Comparable<?>>A constraint that imposes minimum and maximum values.Constraint<V>Supertype of interfaces that define constraints on entity attributes.EqualTo<V>A constraint that requires equality.GreaterThan<V extends Comparable<?>>A constraint that requires exceeding a lower bound.In<V>A constraint that requires equality with a member of a collection.LessThan<V extends Comparable<?>>A constraint that requires being below an upper bound.A constraint that requires matching a pattern.NotBetween<V extends Comparable<?>>A constraint that excludes values within a range.NotEqualTo<V>A constraint that requires inequality.NotIn<V>A constraint that requires inequality with every member of a collection.A constraint that requires not matching a pattern.NotNull<V>A constraint that requires a non-
nullvalue.Null<V>A constraint that requires anullvalue.