6263646566676869
statement.executeUpdate(); ResultSet result = statement.getGeneratedKeys(); result.next(); group.setGroupID(result.getInt(1)); } catch (SQLException e) { throw new GroupExistsException(); } }
7576777879808182
.prepareStatement(command); statement.setString(1, group.getGroupName()); statement.setInt(2, group.getGroupID()); statement.executeUpdate(); } catch (SQLException e) { throw new GroupExistsException(); } }