Uses of Interface
org.hibernate.query.restriction.Restriction
Packages that use Restriction
Package
Description
The
Restriction
framework.Support for SelectionSpecification
and MutationSpecification which
is similar in concept to criteria queries, but focused on ease-of-use and less verbosity.
Package for the SQM-backed Query implementation details
-
Uses of Restriction in org.hibernate.query.restriction
Methods in org.hibernate.query.restriction that return RestrictionModifier and TypeMethodDescriptionstatic <T> Restriction<T>
Restriction.all
(List<? extends Restriction<? super T>> restrictions) Combine the given restrictions using logical and.static <T> Restriction<T>
Restriction.all
(Restriction<? super T>... restrictions) Combine the given restrictions using logical and.default Restriction<X>
Restriction.and
(Restriction<X> restriction) Combine this restriction with the given restriction using logical and.static <T> Restriction<T>
Restriction.any
(List<? extends Restriction<? super T>> restrictions) Combine the given restrictions using logical or.static <T> Restriction<T>
Restriction.any
(Restriction<? super T>... restrictions) Combine the given restrictions using logical or.static <T,
U extends Comparable<U>>
Restriction<T>Restriction.between
(SingularAttribute<T, U> attribute, U lowerBound, U upperBound) Restrict the given attribute to fall between the given values.static <T> Restriction<T>
Restriction.contains
(SingularAttribute<T, String> attribute, String substring) Restrict the given attribute to contain the given substring.static <T> Restriction<T>
Restriction.contains
(SingularAttribute<T, String> attribute, String substring, boolean caseSensitive) Restrict the given attribute to contain the given substring, explicitly specifying case sensitivity.static <T> Restriction<T>
Restriction.endsWith
(SingularAttribute<T, String> attribute, String suffix) Restrict the given attribute to end with the given string suffix.static <T> Restriction<T>
Restriction.endsWith
(SingularAttribute<T, String> attribute, String suffix, boolean caseSensitive) Restrict the given attribute to end with the given string suffix, explicitly specifying case sensitivity.static <T,
U> Restriction<T> Restriction.equal
(SingularAttribute<T, U> attribute, U value) Restrict the given attribute to be exactly equal to the given value.static <T> Restriction<T>
Restriction.equalIgnoringCase
(SingularAttribute<T, String> attribute, String value) Restrict the given attribute to be equal to the given string, ignoring case.default Restriction<X>
static <T,
U extends Comparable<U>>
Restriction<T>Restriction.greaterThan
(SingularAttribute<T, U> attribute, U lowerBound) Restrict the given attribute to be strictly greater than the given lower bound.static <T,
U extends Comparable<U>>
Restriction<T>Restriction.greaterThanOrEqual
(SingularAttribute<T, U> attribute, U lowerBound) Restrict the given attribute to be greater than or equal to the given lower bound.default Restriction<X>
static <T,
U> Restriction<T> Restriction.in
(SingularAttribute<T, U> attribute, List<U> values) Restrict the given attribute to be exactly equal to one of the given values.static <T,
U> Restriction<T> Restriction.in
(SingularAttribute<T, U> attribute, U... values) Restrict the given attribute to be exactly equal to one of the given values.static <T,
U extends Comparable<U>>
Restriction<T>Restriction.lessThan
(SingularAttribute<T, U> attribute, U upperBound) Restrict the given attribute to be strictly less than the given upper bound.static <T,
U extends Comparable<U>>
Restriction<T>Restriction.lessThanOrEqual
(SingularAttribute<T, U> attribute, U upperBound) Restrict the given attribute to be less than or equal to the given upper bound.static <T> Restriction<T>
Restriction.like
(SingularAttribute<T, String> attribute, String pattern) Restrict the given attribute to match the given pattern.static <T> Restriction<T>
Restriction.like
(SingularAttribute<T, String> attribute, String pattern, boolean caseSensitive) Restrict the given attribute to match the given pattern, explicitly specifying case sensitivity.static <T> Restriction<T>
Restriction.like
(SingularAttribute<T, String> attribute, String pattern, boolean caseSensitive, char charWildcard, char stringWildcard) Restrict the given attribute to match the given pattern, explicitly specifying case sensitivity, along with single-character and multi-character wildcards.Restriction.negated()
Negate this restriction.static <T,
U extends Comparable<U>>
Restriction<T>Restriction.notBetween
(SingularAttribute<T, U> attribute, U lowerBound, U upperBound) Restrict the given attribute to not fall between the given values.static <T> Restriction<T>
Restriction.notContains
(SingularAttribute<T, String> attribute, String substring) Restrict the given attribute to not contain the given substring.static <T> Restriction<T>
Restriction.notContains
(SingularAttribute<T, String> attribute, String substring, boolean caseSensitive) Restrict the given attribute to not contain the given substring, explicitly specifying case sensitivity.default Restriction<X>
Path.notEqualTo
(U value) default Restriction<X>
static <T,
U> Restriction<T> Restriction.notIn
(SingularAttribute<T, U> attribute, List<U> values) Restrict the given attribute to be not equal to any of the given values.static <T,
U> Restriction<T> Restriction.notIn
(SingularAttribute<T, U> attribute, U... values) Restrict the given attribute to be not equal to any of the given values.static <T> Restriction<T>
Restriction.notLike
(SingularAttribute<T, String> attribute, String pattern) Restrict the given attribute to not match the given pattern.static <T> Restriction<T>
Restriction.notLike
(SingularAttribute<T, String> attribute, String pattern, boolean caseSensitive) Restrict the given attribute to not match the given pattern, explicitly specifying case sensitivity.default Restriction<X>
Path.notNull()
static <T,
U> Restriction<T> Restriction.notNull
(SingularAttribute<T, U> attribute) Restrict the given attribute to be non-null.default Restriction<X>
Restriction.or
(Restriction<X> restriction) Combine this restriction with the given restriction using logical or.default Restriction<X>
static <T,
U> Restriction<T> Restriction.restrict
(SingularAttribute<T, U> attribute, Range<U> range) Restrict the allowed values of the given attribute to the given range.static <T> Restriction<T>
Restrict the allowed values of the named attribute of the given entity class to the given range.static <T> Restriction<T>
Restriction.startsWith
(SingularAttribute<T, String> attribute, String prefix) Restrict the given attribute to start with the given string prefix.static <T> Restriction<T>
Restriction.startsWith
(SingularAttribute<T, String> attribute, String prefix, boolean caseSensitive) Restrict the given attribute to start with the given string prefix, explicitly specifying case sensitivity.static <T,
U> Restriction<T> Restriction.unequal
(SingularAttribute<T, U> attribute, U value) Restrict the given attribute to be not equal to the given value.static <T> Restriction<T>
Restriction.unrestricted()
An empty restriction.Methods in org.hibernate.query.restriction with parameters of type RestrictionModifier and TypeMethodDescriptionstatic <T> Restriction<T>
Restriction.all
(Restriction<? super T>... restrictions) Combine the given restrictions using logical and.default Restriction<X>
Restriction.and
(Restriction<X> restriction) Combine this restriction with the given restriction using logical and.static <T> Restriction<T>
Restriction.any
(Restriction<? super T>... restrictions) Combine the given restrictions using logical or.default Restriction<X>
Restriction.or
(Restriction<X> restriction) Combine this restriction with the given restriction using logical or.Method parameters in org.hibernate.query.restriction with type arguments of type RestrictionModifier and TypeMethodDescriptionstatic <T> Restriction<T>
Restriction.all
(List<? extends Restriction<? super T>> restrictions) Combine the given restrictions using logical and.static <T> Restriction<T>
Restriction.any
(List<? extends Restriction<? super T>> restrictions) Combine the given restrictions using logical or. -
Uses of Restriction in org.hibernate.query.specification
Methods in org.hibernate.query.specification with parameters of type RestrictionModifier and TypeMethodDescriptionMutationSpecification.restrict
(Restriction<? super T> restriction) QuerySpecification.restrict
(Restriction<? super T> restriction) Adds a restriction to the query specification.SelectionSpecification.restrict
(Restriction<? super T> restriction) -
Uses of Restriction in org.hibernate.query.specification.internal
Methods in org.hibernate.query.specification.internal with parameters of type RestrictionModifier and TypeMethodDescriptionMutationSpecificationImpl.restrict
(Restriction<? super T> restriction) SelectionSpecificationImpl.restrict
(Restriction<? super T> restriction) -
Uses of Restriction in org.hibernate.query.sqm.internal
Methods in org.hibernate.query.sqm.internal with parameters of type RestrictionModifier and TypeMethodDescriptionstatic <X> SqmPredicate
SqmUtil.restriction
(SqmSelectStatement<X> sqmStatement, Class<X> resultType, Restriction<? super X> restriction)