Interface ProjectionExecutor
- All Known Implementing Classes:
JpaProjectionExecutor
,QuerydslProjectionExecutor
,RoutingProjectionExecutor
public interface ProjectionExecutor
Executes projection queries and returns DTO results.
-
Method Summary
Modifier and TypeMethodDescription<T,
D> ProjectionResult <D> project
(Class<T> entityType, Class<D> dtoType, ProjectionQuery<T> query) Execute a projection for the given entity type and DTO type.
-
Method Details
-
project
Execute a projection for the given entity type and DTO type.- Type Parameters:
T
- entity typeD
- dto type- Parameters:
entityType
- the entity classdtoType
- the DTO class to project toquery
- the projection query definition- Returns:
- result containing the projected DTOs
-