public static ArrayList<Borne> getAllBorne() {

        Statement stat;
        ArrayList<Borne> bornes = new ArrayList<>();
        try {
            stat = ConnexionDB.getConnection().createStatement();
            stat.executeUpdate("use nemovelo");
            ResultSet res = stat.executeQuery("select * from borne");
            Borne borne;
            int id_borne, fk_id_station;
            String serialNumber, etat;
            while (res.next()) {
                id_borne = res.getInt("id_borne");
                serialNumber = res.getString("serialNumber");
                etat = res.getString("etat");
                fk_id_station = res.getInt("fk_id_station");
                borne = new Borne(id_borne, serialNumber, etat, fk_id_station);
                bornes.add(borne);
            }
        } catch (SQLException e) {
            while (e != null) {
                System.out.println(e.getErrorCode());
                System.out.println(e.getMessage());
                System.out.println(e.getSQLState());
                e.printStackTrace();
                e = e.getNextException();
            }
        }
        return bornes;

    }