6768697071727374
statement.executeUpdate(); ResultSet result = statement.getGeneratedKeys(); result.next(); user.setUserID(result.getInt(1)); } catch (SQLException e) { throw new UserNameExistsException(); } }
8485868788899091
statement.setString(4, user.getEmail()); statement.setString(5, user.getAddress()); statement.setInt(6, user.getUserID()); statement.executeUpdate(); } catch (SQLException e) { throw new UserNameExistsException(); } }