Jump to content

Datamapper

From Wikipedia, the free encyclopedia
This is an old revision of this page, as edited by Wolfgang42 (talk | contribs) at 23:39, 15 November 2012 (Tagging with {{Database-stub}}; clarified and provided source). 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.