Sets the description for a taxonomy term.
@param taxonomy The taxonomy.
@param name The term name.
@param description The description.
@return Was the description set?
@throws SQLException on database error.
323123
public boolean setTaxonomyTermDescription(final String taxonomy, final String name,
                                             final String description) throws SQLException {

      TaxonomyTerm term = selectTaxonomyTerm(taxonomy, name);
      if(term == null || term.term == null) {
         return false;
      }

      Connection conn = null;
      PreparedStatement stmt = null;
      Timer.Context ctx = metrics.updateTaxonomyTermTimer.time();
      try {
         conn = connectionSupplier.getConnection();
         stmt = conn.prepareStatement(updateTaxonomyTermDescriptionSQL);
         stmt.setString(1, Strings.nullToEmpty(description));
         stmt.setLong(2, term.term.id);
         stmt.setString(3, taxonomy);
         return stmt.executeUpdate() > 0;
      } finally {
         ctx.stop();
         closeQuietly(conn, stmt);
      }
   }
44452
public TaxonomyTerm resolveTaxonomyTerm(final String taxonomy, final String name) throws SQLException {
      TaxonomyTerm term;
      Cache<String, TaxonomyTerm> taxonomyTermCache = taxonomyTermCaches.get(taxonomy);
      if(taxonomyTermCache != null) {
         metrics.taxonomyTermCacheTries.mark();
         term = taxonomyTermCache.getIfPresent(name);
         if(term != null) {
            metrics.taxonomyTermCacheHits.mark();
            return term;
         }
      }

      term = selectTaxonomyTerm(taxonomy, name);
      if(term != null && taxonomyTermCache != null) {
         taxonomyTermCache.put(name, term);
      }

      return term;
   }
431885
public void setDescription(java.util.Collection<StringFilter> description) {
        if (description == null) {
            this.description = null;
            return;
        }

        this.description = new java.util.ArrayList<StringFilter>(description);
    }
638019
private void indexTerms(Set<String> termSet) {
        for (String term : termSet) {
            m_dbTran.addTermIndexColumn(m_tableDef, m_dbObj, m_fieldName, term);
        }
    }
326574
@Override
    public void describe(Schema schema) {
        pojoBinding.describe(schema.createTable(tableName), schema);
    }
971456
@SuppressWarnings("WeakerAccess")
  public UpdateAppProfileRequest setDescription(@Nonnull String description) {
    Preconditions.checkNotNull(description);

    proto.getAppProfileBuilder().setDescription(description);
    updateFieldMask(com.google.bigtable.admin.v2.AppProfile.DESCRIPTION_FIELD_NUMBER);
    return this;
  }
855983
public TaxonomyTerm createTaxonomyTerm(final String taxonomy, final String name, final String slug,
                                          final String description) throws SQLException {
      Term term = createTerm(name, slug);

      Connection conn = null;
      PreparedStatement stmt = null;
      ResultSet rs = null;
      Timer.Context ctx = metrics.createTaxonomyTermTimer.time();
      try {
         conn = connectionSupplier.getConnection();
         stmt = conn.prepareStatement(insertTaxonomyTermSQL, Statement.RETURN_GENERATED_KEYS);
         stmt.setLong(1, term.id);
         stmt.setString(2, taxonomy);
         stmt.setString(3, Strings.nullToEmpty(description));
         stmt.executeUpdate();
         rs = stmt.getGeneratedKeys();
         if(rs.next()) {
            return new TaxonomyTerm(rs.getLong(1), taxonomy, term, description);
         } else {
            throw new SQLException("Problem creating taxonomy term (no generated id)");
         }
      } finally {
         ctx.stop();
         closeQuietly(conn, stmt, rs);
      }
   }
82010
public void setDescription( final CharSequence description) {
		if ( description != null) format.getHeader().createEntry( DESCRIPTION, description);
	}
57060
public OmdbBuilder setSearchTerm(final String searchTerm) throws OMDBException {
        if (StringUtils.isBlank(searchTerm)) {
            throw new OMDBException(ApiExceptionType.UNKNOWN_CAUSE, "Must provide a search term!");
        }
        params.add(Param.SEARCH, searchTerm);
        return this;
    }
385306
public final void setCatalog(String catalog) throws SQLException 
    {
        if (TraceComponent.isAnyTracingEnabled() && tc.isDebugEnabled())
            Tr.debug(this, tc, "Set Catalog to " + catalog); 
        sqlConn.setCatalog(catalog);
        connectionPropertyChanged = true; 
    }
538003
public TaxonomyTerm resolveTaxonomyTerm(final long id) throws SQLException {

      metrics.taxonomyTermCacheTries.mark();
      TaxonomyTerm term = taxonomyTermCache.getIfPresent(id);
      if(term != null) {
         metrics.taxonomyTermCacheHits.mark();
         return term;
      }

      Connection conn = null;
      PreparedStatement stmt = null;
      ResultSet rs = null;
      long termId = 0;
      String taxonomy = "";
      String description = "";
      Timer.Context ctx = metrics.taxonomyTermResolveTimer.time();
      try {
         conn = connectionSupplier.getConnection();
         stmt = conn.prepareStatement(selectTaxonomyTermIdSQL);
         stmt.setLong(1, id);
         rs = stmt.executeQuery();
         if(rs.next()) {
            taxonomy = rs.getString(1);
            termId = rs.getLong(2);
            description = rs.getString(3);
         }
      } finally {
         ctx.stop();
         SQLUtil.closeQuietly(conn, stmt, rs);
      }

      if(termId > 0) {
         term = new TaxonomyTerm(id, taxonomy, selectTerm(termId), description);
         taxonomyTermCache.put(id, term);
         return term;
      } else {
         return null;
      }
   }
1022321
public void setTerminologyPropertiesList(java.util.Collection<TerminologyProperties> terminologyPropertiesList) {
        if (terminologyPropertiesList == null) {
            this.terminologyPropertiesList = null;
            return;
        }

        this.terminologyPropertiesList = new java.util.ArrayList<TerminologyProperties>(terminologyPropertiesList);
    }
310865
@Override
    public void setDescription(final String description) {
        if (this.description == null) {
            this.description = new SyndContentImpl();
        }
        this.description.setValue(description);
    }
1339697
public function createTerm($vocabulary, $name)
    {
        // @todo make this easily extensible.
        $term = (object) array(
        'name' => $name,
        'vocabulary_machine_name' => $vocabulary,
        'description' => $this->getRandom()->name(255),
        );
        $saved = $this->termCreate($term);

        // Set internal page on the term.
        $this->getSession()->visit($this->locatePath('/taxonomy/term/' . $saved->tid));
    }
293503
def set_description(self, description):
        """"""
        self._description = validate_type(description, type(None), *six.string_types)
1090250
@Override
	public void setDescription(String description, java.util.Locale locale) {
		_cpSpecificationOption.setDescription(description, locale);
	}
915503
public boolean addSnomedId(final Candidate candidate) throws SQLException {
        final SnomedTerm result = findFromCuiAndDesc(candidate.getCandidateCUI(), candidate.getCandidatePreferred());
        if (result != null) {
            candidate.setSnomedId(result.snomedId);
            candidate.setTermType(result.termType);
            return true;
        }
        else {
            // TODO: log this somewhere?
            System.err.printf("WARNING! Could not find the SNOMED CT concept id for UMLS CUI: %s: '%s'\n",
                              candidate.getCandidateCUI(), candidate.getCandidatePreferred());
            return false;
        }
    }