Detected 1 occurrence(s) of ‘mysql:\/\/': d = password; } public Connection openConnection() throws SQLException, ClassNotFoundException { if (checkConnection()) { return connection; } Class.forName("com.mysql.jdbc.Driver"); connection = DriverManager.getConnection("jdbc:mysql://" + this.hostname + ":" + this.port + "/" + this.database, this.user, this.password); return connection; } public boolean checkConnection() throws SQLException { return connection != null && !connection.isClosed(); } public […]
↧