[OT] SQL-records and OOP

E

egbert

Each row of an sql table may be the data_part_in_spe
of some class_instance.
I try to think about, and am looking for, the do's and don'ts
and caveat's and the right way of thinking about this transformation.
For me it is new territory.

For instance, my sql-query produces much more rows than I am
interested in eventually. So I have to narrow this collection.

I can inspect the data while it is still a list of rows,
and make instances of only the rows I really need.
Or I may create an aggregate of full-blown instances derived
from all the selected rows.

I suppose Google has lots to offer, but I must be looking
in the wrong direction.

egbert
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,240
Messages
2,571,211
Members
47,845
Latest member
vojosay

Latest Threads

Top