Class QuerydslCouchbasePredicateExecutor<T>
java.lang.Object
org.springframework.data.couchbase.repository.support.QuerydslPredicateExecutorSupport<T>
org.springframework.data.couchbase.repository.support.QuerydslCouchbasePredicateExecutor<T>
- All Implemented Interfaces:
QuerydslPredicateExecutor<T>
public class QuerydslCouchbasePredicateExecutor<T>
extends QuerydslPredicateExecutorSupport<T>
implements QuerydslPredicateExecutor<T>
Couchbase-specific
QuerydslPredicateExecutor
that allows execution Predicate
s in various forms.- Since:
- 5.0
- Author:
- Michael Reiche
-
Constructor Summary
ConstructorsConstructorDescriptionQuerydslCouchbasePredicateExecutor
(CouchbaseEntityInformation<T, ?> entityInformation, CouchbaseOperations couchbaseOperations) Creates a newQuerydslCouchbasePredicateExecutor
for the givenCouchbaseEntityInformation
andCouchbaseOperations
.QuerydslCouchbasePredicateExecutor
(CouchbaseEntityInformation<T, ?> entityInformation, CouchbaseOperations couchbaseOperations, EntityPathResolver resolver) Creates a newQuerydslCouchbasePredicateExecutor
for the givenCouchbaseEntityInformation
, 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) Methods inherited from class org.springframework.data.couchbase.repository.support.QuerydslPredicateExecutorSupport
cuchbaseSerializer, pathBuilderFor, toOrder, toOrderSpecifiers, typeInformation
-
Constructor Details
-
QuerydslCouchbasePredicateExecutor
public QuerydslCouchbasePredicateExecutor(CouchbaseEntityInformation<T, ?> entityInformation, CouchbaseOperations couchbaseOperations) Creates a newQuerydslCouchbasePredicateExecutor
for the givenCouchbaseEntityInformation
andCouchbaseOperations
. Uses theSimpleEntityPathResolver
to create anEntityPath
for the given domain class.- Parameters:
entityInformation
- must not be null.couchbaseOperations
- must not be null.
-
QuerydslCouchbasePredicateExecutor
public QuerydslCouchbasePredicateExecutor(CouchbaseEntityInformation<T, ?> entityInformation, CouchbaseOperations couchbaseOperations, EntityPathResolver resolver) Creates a newQuerydslCouchbasePredicateExecutor
for the givenCouchbaseEntityInformation
, andEntityPathResolver
.- Parameters:
entityInformation
- must not be null.couchbaseOperations
- must not be null.resolver
- must not be null.
-
-
Method Details
-
findOne
- Specified by:
findOne
in interfaceQuerydslPredicateExecutor<T>
-
findAll
- 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 interfaceQuerydslPredicateExecutor<T>
-
findAll
- Specified by:
findAll
in interfaceQuerydslPredicateExecutor<T>
-
findAll
- Specified by:
findAll
in interfaceQuerydslPredicateExecutor<T>
-
findAll
- 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>
-