Package edu.spbstu.hoteldb.sql

Examples of edu.spbstu.hoteldb.sql.NewUserUpdate


    String lang = ((ChoiceBox<String>) args.get(5)).getValue();
    if ((email.compareTo("") == 0) || (pass.compareTo("") == 0)
        || (name.compareTo("") == 0)) {
      textArea.appendText("Login, password and name are required to complete registration.");
    } else {
      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

TOP

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

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.