T - The domain type of the repository@API(status=STABLE,
since="6.1")
public interface CypherdslStatementExecutor<T>
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.| Modifier and Type | Method and Description |
|---|---|
Collection<T> |
findAll(org.neo4j.cypherdsl.core.Statement statement)
Find all elements of the domain as defined by the
statement. |
Page<T> |
findAll(org.neo4j.cypherdsl.core.StatementBuilder.OngoingReadingAndReturn statement,
org.neo4j.cypherdsl.core.Statement countQuery,
Pageable pageable)
The pages here are built with a fragment of a
Statement: An
ongoing reading with an attached return. |
<PT> Page<PT> |
findAll(org.neo4j.cypherdsl.core.StatementBuilder.OngoingReadingAndReturn statement,
org.neo4j.cypherdsl.core.Statement countQuery,
Pageable pageable,
Class<PT> projectionClass)
The pages here are built with a fragment of a
Statement: An
ongoing reading with an attached return. |
<PT> Collection<PT> |
findAll(org.neo4j.cypherdsl.core.Statement statement,
Class<PT> projectionClass)
Creates a custom projection of the repository type by a Cypher-DSL based statement.
|
Optional<T> |
findOne(org.neo4j.cypherdsl.core.Statement statement)
Find one element of the domain as defined by the
statement. |
<PT> Optional<PT> |
findOne(org.neo4j.cypherdsl.core.Statement statement,
Class<PT> projectionClass)
Creates a custom projection of the repository type by a Cypher-DSL based statement.
|
Optional<T> findOne(org.neo4j.cypherdsl.core.Statement statement)
statement. The statement must return either no or exactly
one mappable record.statement - A full Cypher statement, matching and returning all required nodes, relationships and properties<PT> Optional<PT> findOne(org.neo4j.cypherdsl.core.Statement statement, Class<PT> projectionClass)
PT - The type of the projectionstatement - A full Cypher statement, matching and returning all required nodes, relationships and propertiesprojectionClass - The class of the projection typeCollection<T> findAll(org.neo4j.cypherdsl.core.Statement statement)
statement.statement - A full Cypher statement, matching and returning all required nodes, relationships and properties<PT> Collection<PT> findAll(org.neo4j.cypherdsl.core.Statement statement, Class<PT> projectionClass)
PT - The type of the projectionstatement - A full Cypher statement, matching and returning all required nodes, relationships and propertiesprojectionClass - The class of the projection typePage<T> findAll(org.neo4j.cypherdsl.core.StatementBuilder.OngoingReadingAndReturn statement, org.neo4j.cypherdsl.core.Statement countQuery, Pageable pageable)
Statement: An
ongoing reading with an attached return. The next step is ordering the results,
and that order will be derived from the pageable. The same applies for the values of skip and limit.statement - The almost complete statement that actually matches and returns the nodes and relationships to be projectedcountQuery - The statement that is executed to count the total number of matches for computing the correct number of pagespageable - The definition of the page<PT> Page<PT> findAll(org.neo4j.cypherdsl.core.StatementBuilder.OngoingReadingAndReturn statement, org.neo4j.cypherdsl.core.Statement countQuery, Pageable pageable, Class<PT> projectionClass)
Statement: An
ongoing reading with an attached return. The next step is ordering the results,
and that order will be derived from the pageable. The same applies for the values of skip and limit.PT - The type of the projectionstatement - The almost complete statement that actually matches and returns the nodes and relationships to be projectedcountQuery - The statement that is executed to count the total number of matches for computing the correct number of pagespageable - The definition of the pageprojectionClass - The class of the projection typeCopyright © 2019–2021 Neo4j, Neo4j Sweden AB. All rights reserved.