![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
I am trying to create a SelectComponent class for selecting data from Maintenance Tables. This class will be used for all the tables. I am trying to use vector objects. But, I am not sure how to do this. The constructor in the code below should take sql statements of the form: Example: "SELECT * FROM Code: import java.io.*; public class SelectComponent { /** //String input is what the users enter on the screen public SelectComponent(Connection c, String sql, String input) { PreparedStatement p = c.prepareCall(sql); v.addElement(); "SELECT * FROM ISPROJ WHERE Proj = ? and Cost_Center = ?"; java.util.Vector v = new java.util.Vector(); and so on... But, how do I do it for multiple tables and values??? I will greatly appreciate any help. Thanks, Naveen
|
Sponsored Links
|