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 | Method and Description |
---|---|
default Specification<T> |
Specification.and(Specification<T> other)
ANDs the given
Specification to the current one. |
static <T> Specification<T> |
Specification.not(Specification<T> spec)
Negates the given
Specification . |
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 a
Specification . |
Modifier and Type | Method and Description |
---|---|
default Specification<T> |
Specification.and(Specification<T> other)
ANDs the given
Specification to the current one. |
static <T> Specification<T> |
Specification.not(Specification<T> spec)
Negates the given
Specification . |
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 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 . |
Optional<T> |
JpaSpecificationExecutor.findOne(Specification<T> spec)
Returns a single entity matching the given
Specification or Optional.empty() if none found. |
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) |
Optional<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)
Deprecated.
override
SimpleJpaRepository.getCountQuery(Specification, Class) instead |
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)
Deprecated.
|
Copyright © 2011–2020 Pivotal Software, Inc.. All rights reserved.