Hi all, I'm waiting for amazon to deliver the books... meanwhile, I have a
java project to create!

Here is some code I found for a database access bean. Can someone please explain what the super() call does and why there is a method in the class with the same name as the class? Is that a requirement in a bean?
muchos thankyous,
Scottie Zman
---------------------------------------------
package sqlBeans;
import java.sql.*;
import java.io.*;
public class DbBean {
String dbURL;
String dbDriver;
private Connection dbConn;
public DbBean(){
super();
}
public boolean connect() throws ClassNotFoundException,SQLException {
Class.forName(dbDriver);
dbConn = DriverManager.getConnection(dbURL);
return true;
}
public void close() throws SQLException{
dbConn.close();
}
public ResultSet execSQL(String strSQL) throws SQLException{
Statement stmt = dbConn.createStatement();
ResultSet rs = stmt.executeQuery(strSQL);
return (rs == null) ? null : rs;
}
public int updateSQL(String strSQL) throws SQLException{
Statement stmt = dbConn.createStatement();
int r = stmt.executeUpdate(strSQL);
return (r == 0) ? 0 : r;
}
}
[This message has been edited by scottie zman (edited August 23, 2001).]