public static ArrayList<Historique> getUsePasswordHistory(String userCode) {
String sql = "CALL lastuserpasswords('" + userCode + "')";
ResultSet rs = execute(sql);
Historique h = null;
ArrayList<Historique> hpass = new ArrayList<Historique>();
if (rs != null) {
try {
while (rs.next()) {
h = new Historique();
h.setUser(getUser(rs.getString(2)));
h.setPassWord(rs.getString(3));
h.setCreateDate(rs.getDate(4));
hpass.add(h);
}
} catch (SQLException e) {
e.printStackTrace();
}