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.
Functional interface used to fetch collection data for a given entity type.
-
Method Summary
Modifier and TypeMethodDescriptionFetches rows for the specified entity type and attributes.
-
Method Details
-
fetch
CollectionHydrator.FetchResult fetch(Class<?> entityType, List<ProjectionMetadata.Attribute> attributes, List<Object> ids) 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 projectedattributes
- the collection attributes to fetchids
- the IDs of the entities to fetch data for- Returns:
- a FetchResult containing the fetched rows and join types
-