Table data gateway explained

Table Data Gateway is a design pattern in which an object acts as a gateway to a database table.[1] The idea is to separate the responsibility of fetching items from a database from the actual usages of those objects. Users of the gateway are then insulated from changes to the way objects are stored in the database.

References

  1. Web site: Martin Fowler (software engineer) . Fowler . Martin . P of EAA: Table Data Gateway . 2009-02-11.