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
- Author:
- Gerrit Meier, Michael J. Simons
-
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.ResultSummaryrun()Execute the query and discard the results.Methods inherited from interface 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
-