Package edu.spbstu.hoteldb.sql

Examples of edu.spbstu.hoteldb.sql.BookUpdate


  @Override
  public void handle(ActionEvent event) {
    try {
      Integer id = Integer.parseInt(textField.getText());
      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

TOP

Related Classes of edu.spbstu.hoteldb.sql.BookUpdate

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.