WOW !! MUCH LOVE ! SO WORLD PEACE !
Fond bitcoin pour l'amélioration du site: 1memzGeKS7CB3ECNkzSn2qHwxU6NZoJ8o
  Dogecoin (tips/pourboires): DCLoo9Dd4qECqpMLurdgGnaoqbftj16Nvp


Home | Publier un mémoire | Une page au hasard

 > 

Conception d'un système informations informatisé pour la gestion des clients dans un hôtel: Cas de l'hôtel Eurêka


par Jordin Ndey
Institut supérieur technique catholique de Kikwit  - Graduat  2023
  

précédent sommaire suivant

Bitcoin is a swarm of cyber hornets serving the goddess of wisdom, feeding on the fire of truth, exponentially growing ever smarter, faster, and stronger behind a wall of encrypted energy

III.2.4. Présentation des codes sources

package CONNEXION;

import java.sql.*;

import javax.swing.JOptionPane;

public class Connecter {

public Connection con = null;

private Statement etat = null;

public ResultSet Rs = null;

String Pw = "";

String User = "";

public Connecter() {

try {

Class.forName("com.mysql.jdbc.Driver");

con = DriverManager.getConnection("jdbc:mysql://localhost:3306/eureka", "root", "");

etat = con.18(*)createStatement();

} catch (Exception e) {

// JOptionPane.showMessageDialog(null, "Erreur suite à la base de données non allumée" + chaks.getMessage(), "Erreur base de données", JOptionPane.INFORMATION_MESSAGE);

}

}

public void Miseàjour(String req) {

try {

etat.executeUpdate(req);

} catch (Exception e) {

JOptionPane.showMessageDialog(null, "Echec lors de la mise à jour à la base de données\n" + e.getMessage(), "Erreur", JOptionPane.INFORMATION_MESSAGE);

}

}

public void Resultat(String req) {

try {

Rs = etat.executeQuery(req);

} catch (Exception e) {

JOptionPane.showMessageDialog(null, "Echec lors de la recherche de données\n" + e.getMessage(), "Erreur", JOptionPane.INFORMATION_MESSAGE);

}

}

}

* 18 Chadrack, L, notes de cours de langage programmation, G3.2023, p20

précédent sommaire suivant






Bitcoin is a swarm of cyber hornets serving the goddess of wisdom, feeding on the fire of truth, exponentially growing ever smarter, faster, and stronger behind a wall of encrypted energy








"Je voudrais vivre pour étudier, non pas étudier pour vivre"   Francis Bacon