This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
After having run through Sun's beginning tutorial on JDBC I am playing around with making a small program that retrieves some rows from a local mySQL database.
Is it reasonable to create a class whos responsibility is to retrieve rows based on schema-dependent queries ?
After this I have been thinking that it seems likely that this class is something I could use whenever I am connecting to a database from a program so it could be beneficial to make it reusable. But then one needs to somehow "abstract" the specific relational schema for the present database away and somehow make this class "generic". So it is as if I am in need of constructing some interface for the database which can give me info about its schema(s). Don't know if I am making sense here !