Software Engineering Architecture Lab

Table Data Gateway Pattern

One object holds all SQL for one table. A data source architecture pattern in the Enterprise Application Patterns catalog. With Java/Spring code.

One object holds all SQL for one table.

Family
Enterprise Application Patterns
Category
Data Source Architecture
Source
Martin Fowler — Patterns of Enterprise Application Architecture

More data source architecture patterns

  • Row Data Gateway — One object per database row, with no domain logic.
  • Active Record — A domain object that also loads and saves itself.
  • Data Mapper — A separate layer moves data between objects and tables.

All patterns