7475767778798081
statement.executeUpdate(); ResultSet result = statement.getGeneratedKeys(); result.next(); project.setProjectID(result.getInt(1)); } catch (SQLException e) { throw new ProjectNameExistsException(); } }
96979899100101102103
statement.setString(6, project.getDescription()); statement.setInt(7, project.getStartWeek()); statement.setInt(8, project.getProjectID()); statement.executeUpdate(); } catch (SQLException e) { throw new ProjectNameExistsException(); } }