Uses of Interface
org.springframework.data.jpa.domain.Specification
Package
Description
JPA specific support classes to implement domain classes.
Interfaces and annotations for JPA specific repositories.
JPA repository implementations.
-
Uses of Specification in org.springframework.data.jpa.domain
Modifier and TypeMethodDescriptiondefault Specification<T>
Specification.and
(Specification<T> other) ANDs the givenSpecification
to the current one.static <T> Specification<T>
Specification.not
(Specification<T> spec) Negates the givenSpecification
.default Specification<T>
Specification.or
(Specification<T> other) ORs the given specification to the current one.static <T> Specification<T>
Specification.where
(Specification<T> spec) Simple static factory method to add some syntactic sugar around aSpecification
.Modifier and TypeMethodDescriptiondefault Specification<T>
Specification.and
(Specification<T> other) ANDs the givenSpecification
to the current one.static <T> Specification<T>
Specification.not
(Specification<T> spec) Negates the givenSpecification
.default Specification<T>
Specification.or
(Specification<T> other) ORs the given specification to the current one.static <T> Specification<T>
Specification.where
(Specification<T> spec) Simple static factory method to add some syntactic sugar around aSpecification
. -
Uses of Specification in org.springframework.data.jpa.repository
Modifier and TypeMethodDescriptionlong
JpaSpecificationExecutor.count
(Specification<T> spec) Returns the number of instances that the givenSpecification
will return.JpaSpecificationExecutor.findAll
(Specification<T> spec) Returns all entities matching the givenSpecification
.JpaSpecificationExecutor.findAll
(Specification<T> spec, Pageable pageable) Returns aPage
of entities matching the givenSpecification
.JpaSpecificationExecutor.findAll
(Specification<T> spec, Sort sort) Returns all entities matching the givenSpecification
andSort
.JpaSpecificationExecutor.findOne
(Specification<T> spec) Returns a single entity matching the givenSpecification
orOptional.empty()
if none found. -
Uses of Specification in org.springframework.data.jpa.repository.support
Modifier and TypeMethodDescriptionlong
SimpleJpaRepository.count
(Specification<T> spec) SimpleJpaRepository.findAll
(Specification<T> spec) SimpleJpaRepository.findAll
(Specification<T> spec, Pageable pageable) SimpleJpaRepository.findAll
(Specification<T> spec, Sort sort) SimpleJpaRepository.findOne
(Specification<T> spec) SimpleJpaRepository.getCountQuery
(Specification<S> spec, Class<S> domainClass) Creates a new count query for the givenSpecification
.protected jakarta.persistence.TypedQuery<Long>
SimpleJpaRepository.getCountQuery
(Specification<T> spec) Deprecated.protected <S extends T>
jakarta.persistence.TypedQuery<S>SimpleJpaRepository.getQuery
(Specification<S> spec, Class<S> domainClass, Pageable pageable) Creates a newTypedQuery
from the givenSpecification
.protected <S extends T>
jakarta.persistence.TypedQuery<S>SimpleJpaRepository.getQuery
(Specification<S> spec, Class<S> domainClass, Sort sort) protected jakarta.persistence.TypedQuery<T>
SimpleJpaRepository.getQuery
(Specification<T> spec, Pageable pageable) Creates a newTypedQuery
from the givenSpecification
.protected jakarta.persistence.TypedQuery<T>
SimpleJpaRepository.getQuery
(Specification<T> spec, Sort sort) SimpleJpaRepository.readPage
(jakarta.persistence.TypedQuery<S> query, Class<S> domainClass, Pageable pageable, Specification<S> spec) SimpleJpaRepository.readPage
(jakarta.persistence.TypedQuery<T> query, Pageable pageable, Specification<T> spec) Deprecated.
SimpleJpaRepository.getCountQuery(Specification, Class)
instead