It's strange, I've done quite allot of C# and Java and had no problems. However, designing a web app OO style is kicking my ass
Anyway, Following on from my attempt to understand this here
What I want to do. (correct me if this doesn't seem like the best solution)
I would like a database object. That contains all of my queries. so they are in one place making this the only file that is dependant on the DBMS. When a query is called it will return the information in the relevant object for. So say, the query is to select a user by there id it will return a populated user object. lets call this method 1.
This however seems like it is going to get very big, very fast. why? because each query would require a function or something to read through the results and put the right variables where they belong in the object.
So... I thought... should i make a function in the object class. to populate itself from the result array, since the class knows what it needs and it can just take what is there. So, this will be method 2.
Am I on track with either of those Ideas?
Any and all guidance is appreciated.