Interface Neo4jClient.RunnableSpec
- All Superinterfaces:
Neo4jClient.BindSpec<Neo4jClient.RunnableSpec>
- All Known Subinterfaces:
Neo4jClient.RunnableSpecBoundToDatabase
,Neo4jClient.RunnableSpecBoundToDatabaseAndUser
,Neo4jClient.RunnableSpecBoundToUser
,Neo4jClient.UnboundRunnableSpec
- Enclosing interface:
- Neo4jClient
public static interface Neo4jClient.RunnableSpec
extends Neo4jClient.BindSpec<Neo4jClient.RunnableSpec>
Contract for a runnable query that can be either run returning its result, run without results or be
parameterized.
- Since:
- 6.0
-
Method Summary
Modifier and TypeMethodDescriptionfetch()
Fetch all records mapped into generic maps<T> Neo4jClient.MappingSpec<T>
Create a mapping for each record return to a specific type.org.neo4j.driver.summary.ResultSummary
run()
Execute the query and discard the results.Methods inherited from interface org.springframework.data.neo4j.core.Neo4jClient.BindSpec
bind, bindAll
-
Method Details
-
fetchAs
Create a mapping for each record return to a specific type.- Type Parameters:
T
- The type of the class- Parameters:
targetClass
- The class each record should be mapped to- Returns:
- A mapping spec that allows specifying a mapping function.
-
fetch
Neo4jClient.RecordFetchSpec<Map<String,Object>> fetch()Fetch all records mapped into generic maps- Returns:
- A fetch specification that maps into generic maps.
-
run
org.neo4j.driver.summary.ResultSummary run()Execute the query and discard the results. It returns the drivers result summary, including various counters and other statistics.- Returns:
- The native summary of the query.
-