Intent++
This commit is contained in:
parent
822ab8d9fd
commit
c53dcf1274
@ -1,26 +1,25 @@
|
|||||||
---
|
---
|
||||||
layout: pattern
|
layout: pattern
|
||||||
title: Data Mapper
|
title: Data Mapper
|
||||||
folder: data-mapper
|
folder: data-mapper
|
||||||
permalink: /patterns/dm/
|
permalink: /patterns/dm/
|
||||||
categories: Persistence Tier
|
categories: Persistence Tier
|
||||||
tags:
|
tags:
|
||||||
- Java
|
- Java
|
||||||
- Difficulty-Beginner
|
- Difficulty-Beginner
|
||||||
---
|
---
|
||||||
|
|
||||||
## Intent
|
## Intent
|
||||||
Object provides an abstract interface to some type of database or
|
A layer of mappers that moves data between objects and a database while keeping them independent of each other and the mapper itself
|
||||||
other persistence mechanism.
|
|
||||||
|

|
||||||

|
|
||||||
|
## Applicability
|
||||||
## Applicability
|
Use the Data Mapper in any of the following situations
|
||||||
Use the Data Mapper in any of the following situations
|
|
||||||
|
* when you want to consolidate how the data layer is accessed
|
||||||
* when you want to consolidate how the data layer is accessed
|
* when you want to avoid writing multiple data retrieval/persistence layers
|
||||||
* when you want to avoid writing multiple data retrieval/persistence layers
|
|
||||||
|
## Credits
|
||||||
## Credits
|
|
||||||
|
* [Data Mapper](http://richard.jp.leguen.ca/tutoring/soen343-f2010/tutorials/implementing-data-mapper/)
|
||||||
* [Data Mapper](http://richard.jp.leguen.ca/tutoring/soen343-f2010/tutorials/implementing-data-mapper/)
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user