File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes Design Dilemma Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Design Dilemma" Watch "Design Dilemma" New topic
Author

Design Dilemma

Vanitha Sugumaran
Ranch Hand

Joined: Apr 11, 2001
Posts: 356
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.
Vanitha Sugumaran
Ranch Hand

Joined: Apr 11, 2001
Posts: 356
Should I repost this question in JDBC forum?
thanks,
Ilja Preuss
author
Sheriff

Joined: Jul 11, 2001
Posts: 14112
Moving to JDBC... Thanks for asking!


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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Design Dilemma