The Persistence Layer

The persistence layer is the database or file system.

In the domain layer the interface to the persistence layer can be encapsulated in a few classes.

Persistent Objects

Gateway

Data Maapper

Table Gateway (DAO)

Row Gateway

Data Transfer Object (DTO)