java.lang.Object
org.litebridge.orm.persistence.DtoBlueprint.DtoData<DtoSelectSpec>
org.litebridge.orm.persistence.DtoBlueprint.SelectDtoData
- Enclosing class:
DtoBlueprint
Specialised data container for DTO-based selections in the context of a
DtoBlueprint.
This class extends the generic DtoData class and provides specific functionality
related to selections defined by a DtoSelectSpec.
Each instance manages the mapping of a DtoSelectSpec to the corresponding columns,
primary keys, and rows which collectively form the representation of the DTO data.
The constructor automatically filters and maps the provided expressions from the DtoSelectSpec,
isolating only those that correspond to SelectFieldSpec for the relevant table.
-
Field Summary
Fields inherited from class org.litebridge.orm.persistence.DtoBlueprint.DtoData
spec -
Constructor Summary
ConstructorsConstructorDescriptionSelectDtoData(DtoSelectSpec dtoSelectSpec, List<Object> primaryKey, Row dtoRows) Creates a new select DTO data instance. -
Method Summary
Methods inherited from class org.litebridge.orm.persistence.DtoBlueprint.DtoData
fieldColumns, primaryKey, row, spec
-
Constructor Details
-
SelectDtoData
Creates a new select DTO data instance.- Parameters:
dtoSelectSpec- the select specificationprimaryKey- the primary key valuesdtoRows- the database row data
-
-
Method Details
-
dtoClass
Description copied from class:DtoBlueprint.DtoDataProvides the class type of the Data Transfer Object (DTO) associated with the implementing class.- Specified by:
dtoClassin classDtoBlueprint.DtoData<DtoSelectSpec>- Returns:
- The
Classobject representing the type of the DTO.
-