Interface ProjectionExecutor

All Known Implementing Classes:
JpaProjectionExecutor, QuerydslProjectionExecutor, RoutingProjectionExecutor

public interface ProjectionExecutor
Executes projection queries and returns DTO results.
  • Method Summary

    Modifier and Type
    Method
    Description
    <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

      <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.
      Type Parameters:
      T - entity type
      D - dto type
      Parameters:
      entityType - the entity class
      dtoType - the DTO class to project to
      query - the projection query definition
      Returns:
      result containing the projected DTOs