Class QuerydslKeyValuePredicateExecutor<T>
java.lang.Object
org.springframework.data.keyvalue.repository.support.QuerydslKeyValuePredicateExecutor<T>
- All Implemented Interfaces:
ListQuerydslPredicateExecutor<T>
,QuerydslPredicateExecutor<T>
public class QuerydslKeyValuePredicateExecutor<T>
extends Object
implements ListQuerydslPredicateExecutor<T>
- Since:
- 2.6
- Author:
- Mark Paluch
-
Constructor Summary
ConstructorsConstructorDescriptionQuerydslKeyValuePredicateExecutor
(EntityInformation<T, ?> entityInformation, KeyValueOperations operations) Creates a newQuerydslKeyValuePredicateExecutor
for the givenEntityInformation
.QuerydslKeyValuePredicateExecutor
(EntityInformation<T, ?> entityInformation, ProjectionFactory projectionFactory, KeyValueOperations operations, EntityPathResolver resolver) Creates a newQuerydslKeyValuePredicateExecutor
for the givenEntityInformation
, andEntityPathResolver
. -
Method Summary
Modifier and TypeMethodDescriptionlong
count
(com.querydsl.core.types.Predicate predicate) boolean
exists
(com.querydsl.core.types.Predicate predicate) findAll
(com.querydsl.core.types.OrderSpecifier<?>... orders) findAll
(com.querydsl.core.types.Predicate predicate) findAll
(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orders) <S extends T,
R>
RfindBy
(com.querydsl.core.types.Predicate predicate, Function<FluentQuery.FetchableFluentQuery<S>, R> queryFunction) findOne
(com.querydsl.core.types.Predicate predicate) protected com.querydsl.collections.AbstractCollQuery<T,
?> prepareQuery
(com.querydsl.core.types.Predicate predicate) Creates executable query for givenPredicate
.
-
Constructor Details
-
QuerydslKeyValuePredicateExecutor
public QuerydslKeyValuePredicateExecutor(EntityInformation<T, ?> entityInformation, KeyValueOperations operations) Creates a newQuerydslKeyValuePredicateExecutor
for the givenEntityInformation
.- Parameters:
entityInformation
- must not be null.operations
- must not be null.
-
QuerydslKeyValuePredicateExecutor
public QuerydslKeyValuePredicateExecutor(EntityInformation<T, ?> entityInformation, ProjectionFactory projectionFactory, KeyValueOperations operations, EntityPathResolver resolver) Creates a newQuerydslKeyValuePredicateExecutor
for the givenEntityInformation
, andEntityPathResolver
.- Parameters:
entityInformation
- must not be null.projectionFactory
- must not be null.operations
- must not be null.resolver
- must not be null.
-
-
Method Details
-
findOne
- Specified by:
findOne
in interfaceQuerydslPredicateExecutor<T>
-
findAll
- Specified by:
findAll
in interfaceListQuerydslPredicateExecutor<T>
- Specified by:
findAll
in interfaceQuerydslPredicateExecutor<T>
-
findAll
public List<T> findAll(com.querydsl.core.types.Predicate predicate, com.querydsl.core.types.OrderSpecifier<?>... orders) - Specified by:
findAll
in interfaceListQuerydslPredicateExecutor<T>
- Specified by:
findAll
in interfaceQuerydslPredicateExecutor<T>
-
findAll
- Specified by:
findAll
in interfaceListQuerydslPredicateExecutor<T>
- Specified by:
findAll
in interfaceQuerydslPredicateExecutor<T>
-
findAll
- Specified by:
findAll
in interfaceQuerydslPredicateExecutor<T>
-
findAll
- Specified by:
findAll
in interfaceListQuerydslPredicateExecutor<T>
- Specified by:
findAll
in interfaceQuerydslPredicateExecutor<T>
-
count
public long count(com.querydsl.core.types.Predicate predicate) - Specified by:
count
in interfaceQuerydslPredicateExecutor<T>
-
exists
public boolean exists(com.querydsl.core.types.Predicate predicate) - Specified by:
exists
in interfaceQuerydslPredicateExecutor<T>
-
findBy
public <S extends T,R> R findBy(com.querydsl.core.types.Predicate predicate, Function<FluentQuery.FetchableFluentQuery<S>, R> queryFunction) - Specified by:
findBy
in interfaceQuerydslPredicateExecutor<T>
-
prepareQuery
protected com.querydsl.collections.AbstractCollQuery<T,?> prepareQuery(@Nullable com.querydsl.core.types.Predicate predicate) Creates executable query for givenPredicate
.- Parameters:
predicate
-- Returns:
-