7475767778798081
statement.executeUpdate(); ResultSet result = statement.getGeneratedKeys(); result.next(); resource.setResourceID(result.getInt(1)); } catch (SQLException e) { throw new ResourceNameExistsException(); } }
110111112113114115116117
statement.setString(4, resource.getDescription()); statement.executeUpdate(); con.setAutoCommit(true); } catch (SQLException e) { e.printStackTrace(); throw new ResourceNameExistsException(); } }