Examples of Gare


Examples of externaldata.gare.Gare

    }
  }
 
  public static Gare getGareFromUic(String uic) {
   
    Gare resultGare = null;
   
    try {
      ResultSet rs = null;
     
      synchronized (statementGetGareFromUic) {
        statementGetGareFromUic.setString(1, uic);
       
        rs = statementGetGareFromUic.executeQuery();
      }
     
      if(rs != null && rs.last()) {
        if(rs.getRow() == 1) {
          // Attention à l'ordre des champs dans la table
          resultGare = new Gare(rs.getInt("id_gare"), rs.getString("nom"), rs.getString("uic"), rs.getString("dua"));
        }
        else {
          System.err.println("DaoGare.getGareFromUic(" + uic + ") : plusieurs résultats.");
        }
      }
View Full Code Here

Examples of externaldata.gare.Gare

    return resultGare;
  }
 
  public static Gare getGareFromDua(String dua) {
   
    Gare resultGare = null;
   
    try {
      ResultSet rs = null;
     
      synchronized (statementGetGareFromDua) {
        statementGetGareFromDua.setString(1, dua);
       
        rs = statementGetGareFromDua.executeQuery();
      }
     
      if (rs != null && rs.last()) {
        if (rs.getRow() == 1) {
          // Attention à l'ordre des champs dans la table
          resultGare = new Gare(rs.getInt("id_gare"), rs.getString("nom"), rs.getString("uic"), rs.getString("dua"));
        }
        else {
          System.err.println("DaoGare.getGareFromDua(" + dua + ") : plusieurs résultats.");
        }
      }
View Full Code Here

Examples of externaldata.gare.Gare

      if (rs != null) {
        garesWithDua = new ArrayList<Gare>();
       
        while (rs.next()) {
          // Attention à l'ordre des champs dans la table
          garesWithDua.add(new Gare(rs.getInt("id_gare"), rs.getString("nom"), rs.getString("uic"), rs.getString("dua")));
        }
      }
     
    } catch (SQLException e) {
      e.printStackTrace();
View Full Code Here

Examples of org.sis.ancmessaging.domain.Gare

  public void setGareGottId(int gareGottId) {
    this.gareGottId = gareGottId;
  }

  public Gare generateGare() {
    Gare gare = new Gare();
    gare.setGareId(gareId);
    gare.setGareName(gareName);
    return gare;
  }
View Full Code Here

Examples of org.sis.ancmessaging.domain.Gare

      model.addAttribute("healthPosts", healthPostService.getAll());

      model.addAttribute("gareDTO", gareDTO);
      return "gott";
    } else {
      Gare gare = gareDTO.generateGare();
      Gott gott = healthPostService.findGottById(gareDTO.getGareGottId());
      healthPostService.addGareToGott(gare, gott);
      return "redirect:/healthpost/entries?pid=" + gott.getHealthPost().getPostId();
    }
View Full Code Here

Examples of org.sis.ancmessaging.domain.Gare

  @RequestMapping(value = "createajax", method = RequestMethod.POST)
  public @ResponseBody
  List<GareDTO> createGare(@RequestParam("gareId") int gareId, @RequestParam("gareName") String gareName,
                           @RequestParam("gareGottId") int gareGottId) {
    Gare gare = new Gare();
    gare.setGareName(gareName);
    Gott gott = healthPostService.findGottById(gareGottId);
    healthPostService.addGareToGott(gare, gott);
    List<Gare> gares = healthPostService.getAllGaresForGott(gareGottId);
    List<GareDTO> gareDTOs = new ArrayList<GareDTO>();
    for (Gare g : gares) {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.