Class FetchableFluentQueryBySpecification<S,R>
java.lang.Object
com.blazebit.persistence.spring.data.base.repository.FluentQuerySupport<S,R>
com.blazebit.persistence.spring.data.base.repository.FetchableFluentQueryBySpecification<S,R>
- Type Parameters:
S- Domain typeR- Result type
- All Implemented Interfaces:
org.springframework.data.repository.query.FluentQuery<R>,org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<R>
public class FetchableFluentQueryBySpecification<S,R>
extends FluentQuerySupport<S,R>
implements org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<R>
Immutable implementation of
FluentQuery.FetchableFluentQuery based on a Specification. All methods that return a
FluentQuery.FetchableFluentQuery will return a new instance, not the original.- Since:
- 3.0
- Author:
- Greg Turnquist
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.blazebit.persistence.spring.data.base.repository.FluentQuerySupport
entityType, limit, properties, resultType, sort -
Constructor Summary
ConstructorsConstructorDescriptionFetchableFluentQueryBySpecification(org.springframework.data.jpa.domain.Specification<S> spec, Class<S> entityType, Function<org.springframework.data.domain.Sort, jakarta.persistence.TypedQuery<S>> finder, com.blazebit.persistence.spring.data.base.repository.FetchableFluentQueryBySpecification.SpecificationScrollDelegate<S> scrollDelegate, Function<org.springframework.data.jpa.domain.Specification<S>, Long> countOperation, Function<org.springframework.data.jpa.domain.Specification<S>, Boolean> existsOperation, jakarta.persistence.EntityManager entityManager) -
Method Summary
Modifier and TypeMethodDescriptionall()<NR> org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<NR>longcount()booleanexists()org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<R>limit(int limit) oneValue()org.springframework.data.domain.Page<R>page(org.springframework.data.domain.Pageable pageable) org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<R>project(Collection<String> properties) org.springframework.data.domain.Window<R>scroll(org.springframework.data.domain.ScrollPosition scrollPosition) org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<R>sortBy(org.springframework.data.domain.Sort sort) stream()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery
first, one, project
-
Constructor Details
-
FetchableFluentQueryBySpecification
public FetchableFluentQueryBySpecification(org.springframework.data.jpa.domain.Specification<S> spec, Class<S> entityType, Function<org.springframework.data.domain.Sort, jakarta.persistence.TypedQuery<S>> finder, com.blazebit.persistence.spring.data.base.repository.FetchableFluentQueryBySpecification.SpecificationScrollDelegate<S> scrollDelegate, Function<org.springframework.data.jpa.domain.Specification<S>, Long> countOperation, Function<org.springframework.data.jpa.domain.Specification<S>, Boolean> existsOperation, jakarta.persistence.EntityManager entityManager)
-
-
Method Details
-
sortBy
public org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<R> sortBy(org.springframework.data.domain.Sort sort) -
limit
public org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<R> limit(int limit) -
as
public <NR> org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<NR> as(Class<NR> resultType) -
project
public org.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<R> project(Collection<String> properties) -
oneValue
- Specified by:
oneValuein interfaceorg.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<S>
-
firstValue
- Specified by:
firstValuein interfaceorg.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<S>
-
all
- Specified by:
allin interfaceorg.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<S>
-
scroll
public org.springframework.data.domain.Window<R> scroll(org.springframework.data.domain.ScrollPosition scrollPosition) - Specified by:
scrollin interfaceorg.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<S>
-
page
public org.springframework.data.domain.Page<R> page(org.springframework.data.domain.Pageable pageable) - Specified by:
pagein interfaceorg.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<S>
-
stream
- Specified by:
streamin interfaceorg.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<S>
-
count
public long count()- Specified by:
countin interfaceorg.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<S>
-
exists
public boolean exists()- Specified by:
existsin interfaceorg.springframework.data.repository.query.FluentQuery.FetchableFluentQuery<S>
-