Package de.calamanari.pk.transferobjectassembler

  • Class Summary
    Class Description
    AddressDto
    Address DTO - one of the data transfer objects in this example.
    AddressEntity
    Address Entity - one of the business entities in this example.
    CustomerDto
    Customer DTO - one of the data transfer objects in this example.
    CustomerDwhInfoDto
    Customer Dwh Info DTO - one of the data transfer objects in this example.
    CustomerDwhInfoDto.Builder
    Fluent builder to prevent too many constructor arguments
    CustomerDwhInfoEntity
    Customer Dwh Info Entity - one of the business entities in this example.
    This entity gives us a lot of information collected or derived in our company's data warehouse
    CustomerDwhInfoEntity.Builder
    Fluent builder to prevent too many constructor arguments
    CustomerEntity
    Customer Entity - one of the business entities in this example.
    CustomerService
    Customer Service - customer data access component
    In this example I was just too lazy :-) to implement real remoting here.
    Database
    Database - static placeholder for any kind of persistence in this example
    Database.Builder
    Builder to avoid huge constructor for setting up our "database"
    GeoBadPayerInfoDto
    Geo Bad Payer Info Dto - data transfer object to be assembled, contains information to be collected from different business entities.
    In our fictional scenario a list of bad payers related to their location has to be displayed.
    GeoBadPayerInfoDto.Builder
    Builder to avoid over-parameterized constructor
    GeoBadPayerInfoDtoAssembler
    Geo Bad Payer Info DTO Assembler - the TRANSFER OBJECT ASSEMBLER
    The knowlegde which entities' data to query and which particular attributes to include has been centralized here.
    TransferObjectAssemblerTest
    Transfer Object Assembler Test - demonstrates TRANSFER OBJECT ASSEMBLER pattern.
  • Exception Summary
    Exception Description
    DatabaseException
    Exception to be thrown by the fake database to indicate internal problems.