kerkor wrote:
I don't want to return the entire class.
Erm, a class (or object of that class) is an atomic unit. Definition of "atomic":
http://www.techweb.com/encyclopedia/defineterm.jhtml?term=atomic wrote:
Indivisible.
kerkor wrote:
I have a tree-like structure with id and parent id. I have a result set list already with id and parent id (if there is one). ... After finding the top level I will execute a query based on the subtree and build a result set to be returned after the for looping.
What you are saying still makes no sense to me. It does not seem sequiteur to me.
If you want help you need to communicate the concept in your mind so that arrives in the other guy's mind without confusion.
I think that you are thinking in terms of "data" not in terms of "objects". My only suggestion can be to re-visit the design of your object model, because it seems it is not doing naturally and easily what you need from it. If I am being patronizing then I apologise, and have no more to say.
http://en.wikipedia.org/wiki/Object-oriented_programming wrote:
The idea behind object-oriented programming is that a computer program may be seen as composed of a collection of individual units, or objects, that act on each other, as opposed to a traditional view in which a program may be seen as a collection of functions or procedures, or simply as a list of instructions to the computer.