Compare commits
No commits in common. "abc556e3d2543686ab50eac3cc21e55dbff42197" and "e84ad59e10293671d2427301532af66f5171dadf" have entirely different histories.
abc556e3d2
...
e84ad59e10
@ -4,21 +4,10 @@
|
|||||||
*/
|
*/
|
||||||
package TEST;
|
package TEST;
|
||||||
|
|
||||||
import acces_aux_donnes.connexionSQL;
|
|
||||||
import java.sql.Connection;
|
|
||||||
import java.sql.ResultSet;
|
|
||||||
import java.sql.Statement;
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
* @author emile.lalorcey
|
* @author emile.lalorcey
|
||||||
*/
|
*/
|
||||||
public class test {
|
public class test {
|
||||||
private Connection connexionTest;
|
|
||||||
private Statement stmt = null;
|
|
||||||
private ResultSet result = null;
|
|
||||||
|
|
||||||
|
|
||||||
connexionTest = connexionSQL.getConnect("10.121.38.196","bdgsb","admin","admin");
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -1,25 +0,0 @@
|
|||||||
/*
|
|
||||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Licenses/license-default.txt to change this license
|
|
||||||
* Click nbfs://nbhost/SystemFileSystem/Templates/Classes/Main.java to edit this template
|
|
||||||
*/
|
|
||||||
package TEST;
|
|
||||||
|
|
||||||
import acces_aux_donnes.connexionSQL;
|
|
||||||
import java.sql.Connection;
|
|
||||||
|
|
||||||
/**
|
|
||||||
*
|
|
||||||
* @author medhi.rodrigues
|
|
||||||
*/
|
|
||||||
public class testMain {
|
|
||||||
|
|
||||||
/**
|
|
||||||
* @param args the command line arguments
|
|
||||||
*/
|
|
||||||
public static void main(String[] args) {
|
|
||||||
|
|
||||||
Connection connexionTest = connexionSQL.getConnect("10.121.38.196","bdgsb","adminGSB","mdpGSB");
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
@ -51,7 +51,7 @@ public class connexionSQL {
|
|||||||
* @return connection établie
|
* @return connection établie
|
||||||
*/
|
*/
|
||||||
public static Connection getConnect(String serveur, String bdd, String nomUtil, String mdp) {
|
public static Connection getConnect(String serveur, String bdd, String nomUtil, String mdp) {
|
||||||
System.out.println("Connexion validé");
|
System.out.println("getConnect");
|
||||||
if (connect == null) {
|
if (connect == null) {
|
||||||
new connexionSQL(serveur, bdd, nomUtil, mdp);
|
new connexionSQL(serveur, bdd, nomUtil, mdp);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user