Interface CollectionHydrator.RowFetcher

Enclosing class:
CollectionHydrator
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface CollectionHydrator.RowFetcher
Functional interface used to fetch collection data for a given entity type.
  • Method Details

    • fetch

      Fetches rows for the specified entity type and attributes. The rows are returned as a list of object arrays, where each array represents a row with the first element being the parent ID, followed by child IDs and their corresponding DTOs.
      Parameters:
      entityType - the type of the entity being projected
      attributes - the collection attributes to fetch
      ids - the IDs of the entities to fetch data for
      Returns:
      a FetchResult containing the fetched rows and join types