Interface Neo4jClient.RecordFetchSpec<T>

Type Parameters:
T - The type to which the fetched records are eventually mapped
All Known Subinterfaces:
Neo4jClient.MappingSpec<T>
Enclosing interface:
Neo4jClient

public static interface Neo4jClient.RecordFetchSpec<T>
Since:
6.0
  • Method Summary

    Modifier and Type
    Method
    Description
    all()
    Fetches all records.
    Fetches only the first record.
    one()
    Fetches exactly one record and throws an exception if there are more entries.
  • Method Details

    • one

      Optional<T> one()
      Fetches exactly one record and throws an exception if there are more entries.
      Returns:
      The one and only record.
    • first

      Optional<T> first()
      Fetches only the first record. Returns an empty holder if there are no records.
      Returns:
      The first record if any.
    • all

      Collection<T> all()
      Fetches all records.
      Returns:
      All records.