4344454647484950
statement.executeUpdate(); ResultSet result = statement.getGeneratedKeys(); result.next(); status.setStatusID(result.getInt(1)); } catch (SQLException e) { throw new StatusNameExistsException(); } }
6970717273747576
statement.setString(1, status.getStatusName()); statement.setInt(2, status.getStatusID()); statement.executeUpdate(); } catch (SQLException e) { e.printStackTrace(); throw new StatusNameExistsException(); } }