[Previous] [Next]
The roles and functions of the elements of the Repository design pattern are as follows:
- PersistableObject Specifies an interface for reading and writing the state of an object to and from a data stream
- ConcretePersistableObject A class that implements the behavior of the PersistableObject interface for reading and writing its state to a data stream
- Repository Specifies an interface for storing and retrieving the state of a PersistableObject object to and from a data store
- ConcreteRepository A class that implements functionality for storing and retrieving the state of a PersistableObject object to a specific type of data store