Class QuerydslNeo4jPredicateExecutor<T>
java.lang.Object
org.springframework.data.neo4j.repository.query.QuerydslNeo4jPredicateExecutor<T>
- Type Parameters:
T
- The returned domain type.
- All Implemented Interfaces:
QuerydslPredicateExecutor<T>
@API(status=INTERNAL,
since="6.1")
public final class QuerydslNeo4jPredicateExecutor<T>
extends Object
implements QuerydslPredicateExecutor<T>
Querydsl specific fragment for extending
SimpleNeo4jRepository
with an implementation of QuerydslPredicateExecutor
. Provides the necessary infrastructure for translating
Query-DSL predicates into conditions that are passed along to the Cypher-DSL and eventually to the template infrastructure.
This fragment will be loaded by the repository infrastructure when a repository is declared extending the above interface.- Since:
- 6.1
- Author:
- Michael J. Simons
-
Constructor Summary
ConstructorDescriptionQuerydslNeo4jPredicateExecutor
(Neo4jMappingContext mappingContext, Neo4jEntityInformation<T, Object> entityInformation, Neo4jOperations neo4jOperations) -
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)
-
Constructor Details
-
QuerydslNeo4jPredicateExecutor
public QuerydslNeo4jPredicateExecutor(Neo4jMappingContext mappingContext, Neo4jEntityInformation<T, Object> entityInformation, Neo4jOperations neo4jOperations)
-
-
Method Details
-
findOne
- Specified by:
findOne
in interfaceQuerydslPredicateExecutor<T>
-
findAll
- Specified by:
findAll
in interfaceQuerydslPredicateExecutor<T>
-
findAll
- Specified by:
findAll
in interfaceQuerydslPredicateExecutor<T>
-
findAll
public Iterable<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>
-
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>
-