Skip to Main Content
Patterns of Enterprise Application Architecture
book

Patterns of Enterprise Application Architecture

by Martin Fowler
November 2002
Intermediate to advanced content levelIntermediate to advanced
560 pages
16h 4m
English
Addison-Wesley Professional
Content preview from Patterns of Enterprise Application Architecture

Chapter 10. Data Source Architectural Patterns

Table Data Gateway

An object that acts as a Gateway (466) to a database table. One instance handles all the rows in the table.

Image

 

Mixing SQL in application logic can cause several problems. Many developers aren’t comfortable with SQL, and many who are comfortable may not write it well. Database administrators need to be able to find SQL easily so they can figure out how to tune and evolve the database.

A Table Data Gateway holds all the SQL for accessing a single table or view: selects, inserts, updates, and deletes. Other code calls its methods for all interaction with the database.

How It Works

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Building Microservices, 2nd Edition

Building Microservices, 2nd Edition

Sam Newman
Microservices Patterns

Microservices Patterns

Chris Richardson
Mastering API Architecture

Mastering API Architecture

James Gough, Daniel Bryant, Matthew Auburn

Publisher Resources

ISBN: 0321127420