OO DB question
- From: "Chris" <misterjingo@xxxxxxxxxxxxxxx>
- Date: Sun, 25 Dec 2005 09:12:08 GMT
I had a OO model worked out which involved forms populating new instances of
a class and being stored in an ArrayList. I'm now moving this over to a DB
backend rather than a file - I've been wondering if I even need to create
objects now? Could I just work directly with the DB e.g. form data will pass
directly to db handled in click events, the listview of objects can be read
straight from db (no need to instantiate classes).
I guess I'm after opinions on what others would do in these circumstances.
Would it be ok to interact directly with the DB, or should I use the class
instances as interfaces to the DB through their properties? Would this mean
I'd just instantiate a class to pass data to and from DB and then dispose of
it? Or keep one instance of each class to act as an interface?
Any opinions would be appreciated,
Chris
Ps Merry Christmas
.
- Follow-Ups:
- Re: OO DB question
- From: David Veeneman
- Re: OO DB question
- From: Chris
- Re: OO DB question
- Prev by Date: Re: Typed List
- Next by Date: Re: OO DB question
- Previous by thread: Typed List
- Next by thread: Re: OO DB question
- Index(es):
Relevant Pages
|
Loading