I am working on a JDBC application, I joined this project after it has been done almost 60%. (the person who designed and worked is gone :-) ) I do not have much experience in designing. :-) 1) We are using Jbuilder 9, we use lot of look up queries (ex: having a picklist on student ID in order to show the student's name) we use similar look up queries over and over in many packages, I think that it would be a wise idea to use a single class which will provide the queries and we can use them whereever we need. for example we use the student name look up in student info class and also in course info class. right now we have lookup query in both stuent and course info class. Am I on the right track? (I know after 60% of the project is done it wouldn't be great idea to change all of the existing classes but in future I would like improve) 2) Same JDBC application, this is new section so I can change the design before I write the code. I need to display the faculty information in panel when user clicks on the faculty, I need to display the student information when user clicks on the student, same for course. So I am thinking I can use the same panel and just set the query differently each time according to what ever the user chooses. for example: TblInfo If User chooses instructor, TblInfo.close() TblInfo.SetQuery(to instructor) TblInfo.open(); TblInfo.refresh(); Will this slow down JDBC application or will I encounter any other problem? Thanks a lot for your inputs.
The soul is dyed the color of its thoughts. Think only on those things that are in line with your principles and can bear the light of day. The content of your character is your choice. Day by day, what you do is who you become. Your integrity is your destiny - it is the light that guides your way. - Heraclitus