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 Details

    • fetchAs

      <T> Neo4jClient.MappingSpec<T> fetchAs(Class<T> targetClass)
      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

      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.