| Package | Description |
|---|---|
| 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.
|
| Modifier and Type | Class and Description |
|---|---|
class |
Specifications<T>
Helper class to easily combine
Specification instances. |
| Modifier and Type | Method and Description |
|---|---|
Specifications<T> |
Specifications.and(Specification<T> other)
ANDs the given
Specification to the current one. |
static <T> Specifications<T> |
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 <T> Specifications<T> |
Specifications.where(Specification<T> spec)
Simple static factory method to add some syntactic sugar around a
Specification. |
| Modifier and Type | Method and Description |
|---|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
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) |
protected <S extends T> |
SimpleJpaRepository.getCountQuery(Specification<S> spec,
Class<S> domainClass)
Creates a new count query for the given
Specification. |
protected javax.persistence.TypedQuery<Long> |
SimpleJpaRepository.getCountQuery(Specification<T> spec)
Creates a new count query for the given
Specification. |
protected <S extends T> |
SimpleJpaRepository.getQuery(Specification<S> spec,
Class<S> domainClass,
Pageable pageable)
Creates a new
TypedQuery from the given Specification. |
protected <S extends T> |
SimpleJpaRepository.getQuery(Specification<S> spec,
Class<S> domainClass,
Sort sort)
|
protected javax.persistence.TypedQuery<T> |
SimpleJpaRepository.getQuery(Specification<T> spec,
Pageable pageable)
Creates a new
TypedQuery from the given Specification. |
protected javax.persistence.TypedQuery<T> |
SimpleJpaRepository.getQuery(Specification<T> spec,
Sort sort)
|
protected <S extends T> |
SimpleJpaRepository.readPage(javax.persistence.TypedQuery<S> query,
Class<S> domainClass,
Pageable pageable,
Specification<S> spec)
|
protected Page<T> |
SimpleJpaRepository.readPage(javax.persistence.TypedQuery<T> query,
Pageable pageable,
Specification<T> spec)
|
Copyright © 2011-2015–2016 Pivotal Software, Inc.. All rights reserved.