Package edu.spbstu.hoteldb.interfaces

Examples of edu.spbstu.hoteldb.interfaces.SQLQuery.doQuery()


      SQLQuery nuu = new NewUserUpdate(connect, textArea);
      List<Object> args = new LinkedList<Object>();
      args.add(login); args.add(email); args.add(pass); args.add(name); args.add(country); args.add(lang);
      try {
        nuu.prepareQuery(args);
        nuu.doQuery();
        main.setPanel(PanelType.LoginPanel, null);       
      } catch (SQLException e) {
        e.printStackTrace();
      }
    }
View Full Code Here


    args.addLast(new Boolean(chckbxdesc.isSelected()));
    args.addLast(chbbar.getValue());

    try {
      query.prepareQuery(args);
      query.doQuery();
      query.close();
    } catch (SQLException e) {
      results.appendText(e.getMessage() + '\n');
      e.printStackTrace();
    }
View Full Code Here

   
    arg.add(from.toString()); arg.add(to.toString());
    try {
      SQLQuery query = new HistorySearchQuery(connect, results);
      query.prepareQuery(arg);
      query.doQuery();
      query.close();
    } catch (SQLException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
View Full Code Here

      Integer roomnum = Integer.parseInt(textField.getText());
      SQLQuery bu = new BookUpdate(null, textArea);
      List<Object> args = new LinkedList<Object>();
      args.add(id); args.add(roomnum);
      bu.prepareQuery(args);
      bu.doQuery();
    } catch (NumberFormatException e) {
      textArea.appendText("invalid room number");
    } catch (SQLException e) {
      e.printStackTrace();
    }
View Full Code Here

    arg.add(((TextField) args.get(0)).getText());
    arg.add(((TextField) args.get(1)).getText());
    try {
      SQLQuery query = new PersonnelSearchQuery(results, connect);
      query.prepareQuery(arg);
      query.doQuery();
      query.close();
    } catch (SQLException e) {
      results.appendText("invalid query\n");
      e.printStackTrace();
    }
View Full Code Here

    }
    arg.add(from.toString()); arg.add(to.toString());
    try {
      SQLQuery query = new IncomeCalcQuery(connect, results);
      query.prepareQuery(arg);
      query.doQuery();
      query.close();
    } catch (SQLException e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }
View Full Code Here

    try {
      List<Object> arg = new LinkedList<Object>();
      arg.add(((TextField) args.get(0)).getText());
      arg.add(((TextField) args.get(1)).getText());
      query.prepareQuery(arg);
      query.doQuery();
      query.close();
    } catch (SQLException e) {
      results.appendText("invalid query\n");
      e.printStackTrace();
    }
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.