|
Spring Data Jpa | |||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use Specification | |
---|---|
org.springframework.data.jpa.domain | JPA specific support classes to implement domain classes. |
org.springframework.data.jpa.repository | Interfaces and annotations for JPA specific repositories. |
org.springframework.data.jpa.repository.support | JPA repository implementations. |
Uses of Specification in org.springframework.data.jpa.domain |
---|
Classes in org.springframework.data.jpa.domain that implement Specification | |
---|---|
class |
Specifications<T>
Helper class to easily combine Specification instances. |
Methods in org.springframework.data.jpa.domain with parameters of type Specification | ||
---|---|---|
Specifications<T> |
Specifications.and(Specification<T> other)
ANDs the given Specification to the current one. |
|
static
|
Specifications.not(Specification<T> spec)
Negates the given Specification . |
|
Specifications<T> |
Specifications.or(Specification<T> other)
ORs the given specification to the current one. |
|
static
|
Specifications.where(Specification<T> spec)
Simple static factory method to add some syntactic sugar around a Specification . |
Uses of Specification in org.springframework.data.jpa.repository |
---|
Methods in org.springframework.data.jpa.repository with parameters of type Specification | |
---|---|
long |
JpaSpecificationExecutor.count(Specification<T> spec)
Returns the number of instances that the given Specification will return. |
List<T> |
JpaSpecificationExecutor.findAll(Specification<T> spec)
Returns all entities matching the given Specification . |
Page<T> |
JpaSpecificationExecutor.findAll(Specification<T> spec,
Pageable pageable)
Returns a Page of entities matching the given Specification . |
List<T> |
JpaSpecificationExecutor.findAll(Specification<T> spec,
Sort sort)
Returns all entities matching the given Specification and Sort . |
T |
JpaSpecificationExecutor.findOne(Specification<T> spec)
Returns a single entity matching the given Specification . |
Uses of Specification in org.springframework.data.jpa.repository.support |
---|
Methods in org.springframework.data.jpa.repository.support with parameters of type Specification | |
---|---|
long |
SimpleJpaRepository.count(Specification<T> spec)
|
List<T> |
SimpleJpaRepository.findAll(Specification<T> spec)
|
Page<T> |
SimpleJpaRepository.findAll(Specification<T> spec,
Pageable pageable)
|
List<T> |
SimpleJpaRepository.findAll(Specification<T> spec,
Sort sort)
|
T |
SimpleJpaRepository.findOne(Specification<T> spec)
|
|
Spring Data Jpa | |||||||||
PREV NEXT | FRAMES NO FRAMES |