keko2005
10-21-2005, 10:33 AM
hey guys, im am doing a project for my own intrests, and im having a bit of a problem with coming up with a soltion for how to build this app. im not sure how many class' to have and what those class' should contain, i mean i have an idead of what they should do, but not a great one.
ok, i am gonna design a small application, not an applet that will connect to my database. now for this, should i make a seperate connection class? also, when the user clicks connect, should i leave the connection to the db open, or should i close it after every operation the user does? ok next, the user will be able to places an order, lets say for instance a cd. artist, album, tracks, etc. should i make a seperate orders class, if so, should i extend it from the Connection class, you know Public class Orders extends Connection{? i have a couple more methods for the the orders like insert, retrieve, remove. i have more questions, but ill ask them later when i get this portion working.
thanks
ok, i am gonna design a small application, not an applet that will connect to my database. now for this, should i make a seperate connection class? also, when the user clicks connect, should i leave the connection to the db open, or should i close it after every operation the user does? ok next, the user will be able to places an order, lets say for instance a cd. artist, album, tracks, etc. should i make a seperate orders class, if so, should i extend it from the Connection class, you know Public class Orders extends Connection{? i have a couple more methods for the the orders like insert, retrieve, remove. i have more questions, but ill ask them later when i get this portion working.
thanks