Accessing class using JDBC.
- By Chang Sau Sheong
- April 24, 2001
Component Java
Build Wizards Quickly Using a Swing-Based Wizard Framework
Chang Sau Sheong
Listing 1. Accessing class using JDBC.
. . .
Connection conn =
DriverManager.getConnection(##JDBC_URL##);
Statement stmt= null;
ResultSet rs = null;
StringBuffer query = new StringBuffer();
try {
stmt = conn.createStatement();
query.append("##SQL_STRING##");
stmt.executeUpdate(query.toString());
}
. . .
About the Author
Chang Sau Sheong is vice president of product engineering at elipva Ltd. (formerly known as sstarfire.com). He can be contacted at [email protected].