@@ -0,0 +1,1523 @@
+import java.sql.*;%0A %0A/**%0A * DBManager: Singleton pattern%0A *%0A * @author http://lycog.com%0A */%0Apublic final class DBManager %7B%0A %0A%09/** The name of the MySQL account to use (or empty for anonymous) */%0A%09private final String userName = %22evtingiri%22;%0A%0A%09/** The password for the MySQL account (or empty for anonymous) */%0A%09private final String password = %2299756303%22;%0A%0A%09/** The name of the computer running MySQL */%0A%09private final String serverName = %22localhost%22;%0A%0A%09/** The port of the MySQL server (default is 3306) */%0A%09private final int portNumber = 3306;%0A%0A%09/** The name of the database we are testing with (this default is installed with MySQL) */%0A%09private final String dbName = %22hospital%22;%0A%09%0A%09/** The name of the table we are testing with */%0A%09private final String tableName = %22JDBC_TEST%22;%0A%09%0A%09/**%0A%09 * Get a new database connection%0A%09 * %0A%09 * @return%0A%09 * @throws SQLException%0A%09 * @throws ClassNotFoundException %0A%09 */%0A%09public static Connection getConnection() throws SQLException, ClassNotFoundException %7B%0A%09%09// create our mysql database connection%0A%09      String myDriver = %22org.gjt.mm.mysql.Driver%22;%0A%09      String myUrl = %22jdbc:mysql://localhost/hospital%22;%0A%09      Class.forName(myDriver);%0A%09      Connection conn = DriverManager.getConnection(myUrl, %22evtingiri%22, %2299756303%22);%0A%09      System.out.println(%22everything is under control, yeah%22);%0A%09      return conn;%0A%09%7D  %0A%09%0A%09public static void main(String%5B%5D args) throws ClassNotFoundException, SQLException %7B%0A%09%09// TODO Auto-generated method stub%0A%0A%09%09Connection con= getConnection();%0A%09%09%0A%09%09%0A%09%7D%0A%0A%7D%0A

set data