Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Database connection

 
Zach Young
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Since the model component of MVC handles the inserts, updates, and deletes should I create one class for the database connection. Which design pattern would this fall under?
 
Ilja Preuss
author
Sheriff
Posts: 14112
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no single design pattern for this. Data Access Objects are quite common, though.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic