Interface Neo4jOperations.ExecutableQuery<T>

Type Parameters:
T - the type that gets returned by the query
Enclosing interface:
Neo4jOperations

public static interface Neo4jOperations.ExecutableQuery<T>
An interface for controlling query execution.
Since:
6.0
Author:
Michael J. Simons
  • Method Details

    • getResults

      List<T> getResults()
      The list of all results. That can be an empty list but is never null.
      Returns:
      the list of all results
    • getSingleResult

      Optional<T> getSingleResult()
      Returns an optional, single result.
      Returns:
      an optional, single result
      Throws:
      IncorrectResultSizeDataAccessException - when there is more than one result
    • getRequiredSingleResult

      T getRequiredSingleResult()
      Returns A required, single result.
      Returns:
      a required, single result
      Throws:
      NoResultException - when there is no result