Package com.vaadin.addon.sqlcontainer.connection

Examples of com.vaadin.addon.sqlcontainer.connection.SimpleJDBCConnectionPool


    String sQuery = "SELECT service,theme,observations,action FROM myActions WHERE validation='EN COURS' AND idAeroport='"+airport+"'";
   
    try {
     
      pool = new SimpleJDBCConnectionPool("com.mysql.jdbc.Driver",
          "jdbc:mysql://localhost:3306/pl", "root", "0");
      //tableQuery = new TableQuery("myActions", pool);
      query = new FreeformQuery(sQuery, pool, "id");
      //query.setDelegate(new _FreeFormDelegate());
      //container = new SQLContainer(tableQuery);
View Full Code Here


  public SQLContainer getActionsContainer(String airport) {
   
    String sQuery = "SELECT service,theme,action,validation FROM myActions WHERE validation='EN COURS' AND idAeroport='"+airport+"'";
   
    try {
      pool = new SimpleJDBCConnectionPool("com.mysql.jdbc.Driver","jdbc:mysql://localhost:3306/pl", "root", "0");
      query = new FreeformQuery(sQuery, pool, "id");
      container = new SQLContainer(query);
    } catch (SQLException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
View Full Code Here

TOP

Related Classes of com.vaadin.addon.sqlcontainer.connection.SimpleJDBCConnectionPool

Copyright © 2018 www.massapicom. 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.