public void reset(String db, String user, String pass, String server) {
try {
strExceptions+="reset called";
con= GenericDataFeed.getConnection(db,user,pass,server);
temp = null;
} catch (Throwable tException) {
strExceptions+=tException.toString();
System.out.println("0"+tException );
} // end try/catch
}
public void UpdateQuery(String SqlStatment) throws Exception{
stm = con.createStatement();
stm.executeUpdate( SqlStatment);
}
import java.io.*;
import java.sql.*;
import java.awt.*;
import java.net.*;
public static Connection getConnection(String Db, String User, String Pass) throws Exception{
if (!fInitialized) {
Class.forName("gwe.sql.gweMysqlDriver");
fInitialized = true;
}
Connection connection = null;
try {
System.out.println("connecting to "+strConnection);
connection = DriverManager.getConnection(strConnection,User,Pass);
} catch (SQLException connectError) {
System.out.println("Error connecting to "+strConnection );
} // end try/catch
return( connection );
}