3.3. Domain Store

Domain Store provides a powerful mechanism to implement transparent persistence for your object model. It combines and links several other patterns including Data Access Objects. The Domain Store pattern separates the persistence of an object from the object model. This pattern really became relevant with the advent of object relational model frameworks and products. You would use the domain store and data access object at the same time. 

UML representation


The following is a benefit of using the Domain Store pattern:
  • Decouples business logic from persistence logic

When to Use

You should use the Domain Store pattern when:
  • You do not want to use entity beans.
  • Object model uses are complex.