Skip to Main Content
Prefactoring
book

Prefactoring

by Ken Pugh
September 2005
Intermediate to advanced content levelIntermediate to advanced
240 pages
6h 28m
English
O'Reilly Media, Inc.
Content preview from Prefactoring

B.11. com.samscdrental.model.dto Package

These are the Data Transfer Objects (DTOs) used in creating reports.

B.11.1. CDDiscInventoryDTO.java

public class CDDiscInventoryDTO
    {
    public CDDiscInventoryItem[] theCDDiscInventoryItems;
    }

B.11.2. CDDiscInventoryItem.java

public class CDDiscInventoryItem
    {
    public PhysicalID theCDDiscPhysicalID;
    public boolean isCDDiscRented;
    public CustomerID theCustomerID;
    }

B.11.3. OverdueRentalDTO.java

public class OverdueRentalDTO
    {
    public Timestamp theRentalStartTime;
    public Timestamp theRentalDueTime;
    public Timestamp theRentalEndTime;
    public Dollar theOverdueFee;
    public CustomerID theCustomerID;
    public Name theCustomerName;
    public Name theCDReleaseTitle;
    public PhysicalID theCDDiscPhysicalID;

    }

B.11.4. RentalContractDTO.java

public class RentalContractDTO
    {
    public Timestamp theRentalStartTime;
    public Timestamp theRentalDueTime;
    public Name theCustomerName;
    public Name theCDReleaseTitle;
    public PhysicalID theCDDiscPhysicalID;
    public Dollar theRentalFee;

    }
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Understanding Unittest.Mock

Understanding Unittest.Mock

Mario Corchero
Java™ Performance

Java™ Performance

Charlie Hunt, Binu John

Publisher Resources

ISBN: 0596008740Supplemental ContentCatalog PageErrata