java.lang.Object
org.litebridge.orm.persistence.DtoBlueprint
A blueprint for creating and managing data transfer objects (DTOs).
This class encapsulates the primary data and any joined data associated with a DTO.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classDtoBlueprint.DtoData<S extends DtoDataSpec>Base class for entity/DTO-specific blueprint data.static final classSpecialised data container for DTO-based joins in the context of aDtoBlueprint.static final classSpecialised data container for DTO-based selections in the context of aDtoBlueprint. -
Constructor Summary
ConstructorsConstructorDescriptionDtoBlueprint(DtoSelectSpec dtoSelectSpec, List<Object> primaryKey, Row dtoRow) Creates a new DTO blueprint. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddJoinedDtoData(DtoJoinSpec dtoJoinSpec, List<Object> primaryKey, Row dtoRow) Adds joined DTO data to this blueprint.dtoData()Returns the primary DTO data.Returns the list of joined DTO data.
-
Constructor Details
-
DtoBlueprint
Creates a new DTO blueprint.- Parameters:
dtoSelectSpec- the select specification for the DTOprimaryKey- the primary key valuesdtoRow- the database row data
-
-
Method Details
-
dtoData
Returns the primary DTO data.- Returns:
- the primary DTO data
-
joinedDtoData
Returns the list of joined DTO data.- Returns:
- the list of joined DTO data
-
addJoinedDtoData
Adds joined DTO data to this blueprint.- Parameters:
dtoJoinSpec- the join specificationprimaryKey- the primary key valuesdtoRow- the database row data
-