40 lines
1020 B
Java
40 lines
1020 B
Java
package com.gestionnaires;
|
|
|
|
public class ParametresConnexion
|
|
{
|
|
public String Serveur = "grive.u-strabg.fr";
|
|
public String Port = "1521";
|
|
public String Base = "v920";
|
|
public String Utilisateur = "dut";
|
|
public String Pwd = "dut";
|
|
public String Url = "jdbc:oracle:thin:";
|
|
public static final String CLASSE = "oracle.jdbc.driver.OracleDriver";
|
|
|
|
public ParametresConnexion() { ; }
|
|
public ParametresConnexion( ParametresConnexion params )
|
|
{
|
|
this.CopierDepuis(params);
|
|
}
|
|
|
|
public ParametresConnexion(String serveur, String port, String base,
|
|
String utilisateur, String pwd, String url)
|
|
{
|
|
this.Serveur = serveur;
|
|
this.Port = port;
|
|
this.Base = base;
|
|
this.Utilisateur = utilisateur;
|
|
this.Pwd = pwd;
|
|
this.Url = url;
|
|
}
|
|
|
|
public void CopierDepuis( ParametresConnexion params )
|
|
{
|
|
this.Serveur = params.Serveur;
|
|
this.Port = params.Port;
|
|
this.Base = params.Base;
|
|
this.Utilisateur = params.Utilisateur;
|
|
this.Pwd = params.Pwd;
|
|
this.Url = params.Url;
|
|
}
|
|
}
|