This repository has been archived on 2021-09-15. You can view files and clone it, but cannot push or open issues or pull requests.
DUT2Toctoac/src/test.java

43 lines
782 B
Java

import java.sql.ResultSet;
import java.sql.SQLException;
import modele.Evenements;
import modele.Membres;
public class test {
public static void main(String[] args) throws InstantiationException, IllegalAccessException, ClassNotFoundException, SQLException {
Membres m;
Evenements e;
ResultSet r;
m = new Membres();
e = new Evenements();
e.setEvenement("2013-10-12", 0, "lol");
//m.setInfo("g", "lo", "2000-05-08", "0568025855", "lol", 1, "2013-05-20", "pp");
r = e.getEvenement(-1);
while(r.next())
{
String str[]=r.getString("dateE").split("-");
System.out.println(str[0]);
System.out.println(str[1]);
System.out.println(str[2]);
System.out.println(r.getDate("dateE"));
}
System.out.println("fin");
}
}