*
The moose likes OO, Patterns, UML and Refactoring and the fly likes Database connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "Database connection" Watch "Database connection" New topic
Author

Database connection

Zach Young
Greenhorn

Joined: Nov 15, 2005
Posts: 8
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

Joined: Jul 11, 2001
Posts: 14112
There is no single design pattern for this. Data Access Objects are quite common, though.


The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Database connection
 
Similar Threads
Efficient way of handling data in memory
id of the new field in my table
jdbc
Problem with ORM by Weblogic
LOGICAL HANDLE NO LONGER VALID