Uses of Interface
org.springframework.data.jpa.domain.PredicateSpecification
Packages that use PredicateSpecification
Package
Description
JPA specific support classes to implement domain classes.
Interfaces and annotations for JPA specific repositories.
-
Uses of PredicateSpecification in org.springframework.data.jpa.domain
Methods in org.springframework.data.jpa.domain that return PredicateSpecificationModifier and TypeMethodDescriptionstatic <T> PredicateSpecification<T>PredicateSpecification.allOf(Iterable<PredicateSpecification<T>> specifications) Applies an AND operation to all the givenPredicateSpecifications.static <T> PredicateSpecification<T>PredicateSpecification.allOf(PredicateSpecification<T>... specifications) Applies an AND operation to all the givenPredicateSpecifications.default PredicateSpecification<T>PredicateSpecification.and(PredicateSpecification<T> other) ANDs the given PredicateSpecification to the current one.static <T> PredicateSpecification<T>PredicateSpecification.anyOf(Iterable<PredicateSpecification<T>> specifications) Applies an OR operation to all the givenPredicateSpecifications.static <T> PredicateSpecification<T>PredicateSpecification.anyOf(PredicateSpecification<T>... specifications) Applies an OR operation to all the givenPredicateSpecifications.static <T> PredicateSpecification<T>PredicateSpecification.not(PredicateSpecification<T> spec) Negates the givenPredicateSpecification.default PredicateSpecification<T>PredicateSpecification.or(PredicateSpecification<T> other) ORs the given specification to the current one.static <T> PredicateSpecification<T>PredicateSpecification.unrestricted()Simple static factory method to create a specification matching all objects.static <T> PredicateSpecification<T>PredicateSpecification.where(PredicateSpecification<T> spec) Simple static factory method to add some syntactic sugar around a PredicateSpecification.Methods in org.springframework.data.jpa.domain with parameters of type PredicateSpecificationModifier and TypeMethodDescriptionstatic <T> PredicateSpecification<T>PredicateSpecification.allOf(PredicateSpecification<T>... specifications) Applies an AND operation to all the givenPredicateSpecifications.default DeleteSpecification<T>DeleteSpecification.and(PredicateSpecification<T> other) ANDs the givenDeleteSpecificationto the current one.default PredicateSpecification<T>PredicateSpecification.and(PredicateSpecification<T> other) ANDs the given PredicateSpecification to the current one.default Specification<T>Specification.and(PredicateSpecification<T> other) ANDs the givenSpecificationto the current one.default UpdateSpecification<T>UpdateSpecification.and(PredicateSpecification<T> other) ANDs the givenUpdateSpecificationto the current one.static <T> PredicateSpecification<T>PredicateSpecification.anyOf(PredicateSpecification<T>... specifications) Applies an OR operation to all the givenPredicateSpecifications.static <T> PredicateSpecification<T>PredicateSpecification.not(PredicateSpecification<T> spec) Negates the givenPredicateSpecification.default DeleteSpecification<T>DeleteSpecification.or(PredicateSpecification<T> other) ORs the given specification to the current one.default PredicateSpecification<T>PredicateSpecification.or(PredicateSpecification<T> other) ORs the given specification to the current one.default Specification<T>Specification.or(PredicateSpecification<T> other) ORs the given specification to the current one.default UpdateSpecification<T>UpdateSpecification.or(PredicateSpecification<T> other) ORs the given specification to the current one.static <T> DeleteSpecification<T>DeleteSpecification.where(PredicateSpecification<T> spec) Simple static factory method to add some syntactic sugar translatingPredicateSpecificationtoDeleteSpecification.static <T> PredicateSpecification<T>PredicateSpecification.where(PredicateSpecification<T> spec) Simple static factory method to add some syntactic sugar around a PredicateSpecification.static <T> Specification<T>Specification.where(PredicateSpecification<T> spec) Simple static factory method to add some syntactic sugar translatingPredicateSpecificationtoSpecification.default UpdateSpecification<T>UpdateSpecification.UpdateOperation.where(PredicateSpecification<T> specification) Creates aUpdateSpecificationfrom this and the givenUpdateSpecification.static <T> UpdateSpecification<T>UpdateSpecification.where(PredicateSpecification<T> spec) Simple static factory method to add some syntactic sugar translatingPredicateSpecificationtoUpdateSpecification.Method parameters in org.springframework.data.jpa.domain with type arguments of type PredicateSpecificationModifier and TypeMethodDescriptionstatic <T> PredicateSpecification<T>PredicateSpecification.allOf(Iterable<PredicateSpecification<T>> specifications) Applies an AND operation to all the givenPredicateSpecifications.static <T> PredicateSpecification<T>PredicateSpecification.anyOf(Iterable<PredicateSpecification<T>> specifications) Applies an OR operation to all the givenPredicateSpecifications. -
Uses of PredicateSpecification in org.springframework.data.jpa.repository
Methods in org.springframework.data.jpa.repository with parameters of type PredicateSpecificationModifier and TypeMethodDescriptiondefault longJpaSpecificationExecutor.count(PredicateSpecification<T> spec) Returns the number of instances that the givenPredicateSpecificationwill return.default longJpaSpecificationExecutor.delete(PredicateSpecification<T> spec) Deletes by thePredicateSpecificationand returns the number of rows deleted.default booleanJpaSpecificationExecutor.exists(PredicateSpecification<T> spec) Checks whether the data store contains elements that match the givenPredicateSpecification.JpaSpecificationExecutor.findAll(PredicateSpecification<T> spec) Returns all entities matching the givenPredicateSpecification.default <S extends T,R>
RJpaSpecificationExecutor.findBy(PredicateSpecification<T> spec, Function<? super JpaSpecificationExecutor.SpecificationFluentQuery<S>, R> queryFunction) Returns entities matching the givenSpecificationapplying thequeryFunctionthat defines the query and its result type.JpaSpecificationExecutor.findOne(PredicateSpecification<T> spec) Returns a single entity matching the givenPredicateSpecificationorOptional.empty()if none found.JpaSpecificationExecutor.SpecificationFluentQuery.page(Pageable pageable, PredicateSpecification<?> countSpec) Get a page of matching elements forPageableand provide a customcount specification.