Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...your web site's great! I've been using this system for almost a year now and find it really, really helpful. The people have been helpful in answering just about any question you post in the forums..."

Geography

Where in the world do Tek-Tips members come from?
vcllvc (Programmer)
5 Mar 06 23:29
hey, folks,
I have another design question would like you guys to give me some advices.

When you query the database and return a dataset/record set, do you still populate the return set into objects then use the objects within your application not the return dataset?

When I develop application, I need to query the database to retrieve data to populate objects. Let say if I have to query a Sale table to get the monthly sale record, I get a dataset/record set from database, then I loop througt each row and create a sale object with the according value. Then I insert each object into an arraylist. After that, I use the arrylist through my application.

Do you guys think this is the good pratice? Somehow, I feel this is a cumbersome process.

Thanks for any comment.
h0h0h0 (Programmer)
6 Mar 06 9:40
Use tools to help you generate code for this!  Hibernate is a good one.  I assume you'r ein the java world?
chiph (Programmer)
6 Mar 06 12:51
Read this thread for some discussion on this topic.

thread678-1190345

Chip H.

____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first

vcllvc (Programmer)
6 Mar 06 15:35
thanks, chiph

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close