Interface ReactiveCypherdslStatementExecutor<T>
- Type Parameters:
T- the domain type of the repository
@API(status=STABLE,
since="6.1")
public interface ReactiveCypherdslStatementExecutor<T>
An interface that can be added to any reactive repository so that the repository
exposes several methods taking in a
Statement from the Cypher-DSL, that allows
for full customization of the queries executed in a programmatic way in contrast to
provide custom queries declaratively via
@Query annotations.- Since:
- 6.1
- Author:
- Michael J. Simons
-
Method Summary
Modifier and TypeMethodDescriptionfindAll(org.neo4j.cypherdsl.core.Statement statement) Find all elements of the domain as defined by thestatement.<PT> Flux<PT> Creates a custom projection of the repository type by a Cypher-DSL based statement.findOne(org.neo4j.cypherdsl.core.Statement statement) Find one element of the domain as defined by thestatement.<PT> Mono<PT> Creates a custom projection of the repository type by a Cypher-DSL based statement.
-
Method Details
-
findOne
Find one element of the domain as defined by thestatement. The statement must return either no or exactly one mappable record.- Parameters:
statement- a full Cypher statement, matching and returning all required nodes, relationships and properties- Returns:
- an empty Mono or a Mono containing the single element
-
findOne
Creates a custom projection of the repository type by a Cypher-DSL based statement. The statement must return either no or exactly one mappable record.- Type Parameters:
PT- the type of the projection- Parameters:
statement- a full Cypher statement, matching and returning all required nodes, relationships and propertiesprojectionClass- the class of the projection type- Returns:
- an empty Mono or a Mono containing the single, projected element
-
findAll
-
findAll
Creates a custom projection of the repository type by a Cypher-DSL based statement.- Type Parameters:
PT- the type of the projection- Parameters:
statement- a full Cypher statement, matching and returning all required nodes, relationships and propertiesprojectionClass- the class of the projection type- Returns:
- a publisher full of projections
-