Package io.micronaut.data.runtime.mapper
Interface ResultConsumer<T,RS>
- Type Parameters:
T
- The root entity typeRS
- The result set type
- All Superinterfaces:
BiConsumer<T,
ResultConsumer.Context<RS>>
- All Known Subinterfaces:
SqlResultConsumer<T>
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@Introspected
@FunctionalInterface
public interface ResultConsumer<T,RS>
extends BiConsumer<T,ResultConsumer.Context<RS>>
A mapping function can be used as a method parameter to repository methods to allow custom mapping of results.
- Since:
- 1.0.0
- Author:
- graemerocher
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
A context object that simplifies mapping results to objects. -
Method Summary
Methods inherited from interface java.util.function.BiConsumer
accept, andThen