Jump to content

Datamapper

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Yobot (talk | contribs) at 09:30, 8 February 2013 (WP:CHECKWIKI error #52 + general fixes, added underlinked tag using AWB (8888)). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

A Data Mapper is a layer of software which abstracts the database away from the rest of the code and isolates the application logic from the database internals.[1] This allows code to be written which accesses the data stored in the database without needing to deal with the database at all. They need no SQL interface code and no knowledge of the database schema; in fact there needn't be a database at all. Different datamappers can be written which produce random data for testing or retrieve data via XMLRPC from a remote server, to name a few examples.

Sources

  1. ^ "DataMapper Pattern Implementation with XML and Attributes". Retrieved 15 Nov 2012.