java.lang.Object
org.litebridge.orm.persistence.SelectSpecDtoMapper
The SelectSpecDtoMapper class is responsible for mapping data from rows of a database query to DTO (Data Transfer Object) instances.
It uses a "compiled" MappingPlan to achieve high performance by pre-resolving column indices and constructors.
-
Constructor Summary
ConstructorsConstructorDescriptionSelectSpecDtoMapper(DtoSelectSpec dtoSelectSpec, TypeConverter typeConverter, TableRegistry tableRegistry, DtoConstructor dtoConstructor, LitebridgeContext litebridgeContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic <DTO> DTOconstructDto(Class<DTO> dtoClass, List<DtoConstructor.FieldAccessorValue> fieldAccessorValues, DtoConstructor dtoConstructor) <DTO> List<DTO>
-
Constructor Details
-
SelectSpecDtoMapper
public SelectSpecDtoMapper(DtoSelectSpec dtoSelectSpec, TypeConverter typeConverter, TableRegistry tableRegistry, DtoConstructor dtoConstructor, LitebridgeContext litebridgeContext)
-
-
Method Details
-
toDtos
-
constructDto
public static <DTO> DTO constructDto(Class<DTO> dtoClass, List<DtoConstructor.FieldAccessorValue> fieldAccessorValues, DtoConstructor dtoConstructor)
-