Class DtoBlueprint

java.lang.Object
org.litebridge.orm.persistence.DtoBlueprint

public class DtoBlueprint extends Object
A blueprint for creating and managing data transfer objects (DTOs).

This class encapsulates the primary data and any joined data associated with a DTO.

  • Constructor Details

    • DtoBlueprint

      public DtoBlueprint(DtoSelectSpec dtoSelectSpec, List<Object> primaryKey, Row dtoRow)
      Creates a new DTO blueprint.
      Parameters:
      dtoSelectSpec - the select specification for the DTO
      primaryKey - the primary key values
      dtoRow - the database row data
  • Method Details

    • dtoData

      public DtoBlueprint.SelectDtoData dtoData()
      Returns the primary DTO data.
      Returns:
      the primary DTO data
    • joinedDtoData

      public List<DtoBlueprint.JoinDtoData> joinedDtoData()
      Returns the list of joined DTO data.
      Returns:
      the list of joined DTO data
    • addJoinedDtoData

      public void addJoinedDtoData(DtoJoinSpec dtoJoinSpec, List<Object> primaryKey, Row dtoRow)
      Adds joined DTO data to this blueprint.
      Parameters:
      dtoJoinSpec - the join specification
      primaryKey - the primary key values
      dtoRow - the database row data