Database Model - Class, objects and interaction
- From: Paco <manuel.arguelles@xxxxxxxxx>
- Date: Thu, 6 Nov 2008 20:44:19 -0800 (PST)
Hello,
I'm relative new to OOP and I'm curious about what is the best way to
model and implement (OOPL) a class that will be used to take care of
database connection, queries and results.
The idea is to have a single connection to a database or a pool of
them, but inside a single object (right?) is a singleton the best
design patter to follow? or is there a special patter for this?
Several objects will need at some point to store or retrieve
information from the database, how should this interaction be done?
just calling a method (of the database object) to store/retrieve
information from it?
Thanks & BR!
.
- Follow-Ups:
- Re: Database Model - Class, objects and interaction
- From: Thomas Gagne
- Re: Database Model - Class, objects and interaction
- From: H. S. Lahman
- Re: Database Model - Class, objects and interaction
- Prev by Date: Re: Distributed object models / OO Databases
- Next by Date: Re: Database Model - Class, objects and interaction
- Previous by thread: Unit Testing, .Net and Databases
- Next by thread: Re: Database Model - Class, objects and interaction
- Index(es):
Relevant Pages
|