Class PreparedQuery<T>
java.lang.Object
org.springframework.data.neo4j.core.PreparedQuery<T>
- Type Parameters:
T- the type of the objects returned by this query.
Typed preparation of a query that is used to create either an executable query.
Executable queries come in two fashions: imperative and reactive. Depending on which
client is used to retrieve one, you get one or the other.
When no mapping function is provided, the Neo4j client will assume a simple type to be returned. Otherwise, make sure that the query fits to the mapping function, that is: It must return all nodes, relationships and paths that is expected by the mapping function to work correctly.
- Since:
- 6.0
- Author:
- Michael J. Simons, Gerrit Meier
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classStep configuring parameters or mapping functions.static final classStep configuring the query to be used. -
Method Summary
Modifier and TypeMethodDescriptionOptional<BiFunction<org.neo4j.driver.types.TypeSystem, org.neo4j.driver.Record, T>> static <CT> PreparedQuery.RequiredBuildStep<CT>
-
Method Details
-
queryFor
-
getResultType
-
getOptionalMappingFunction
public Optional<BiFunction<org.neo4j.driver.types.TypeSystem, org.neo4j.driver.Record, T>> getOptionalMappingFunction() -
getQueryFragmentsAndParameters
-