public void clearPostTerms(final long postId, final String taxonomy) throws SQLException {
      List<TaxonomyTerm> terms = selectPostTerms(postId, taxonomy);
      for(TaxonomyTerm term : terms) {
         clearPostTerm(postId, term.id);
      }
   }
public void clearPostTerms ( final long postId , final String taxonomy ) throws SQLException { List < TaxonomyTerm > terms = selectPostTerms ( postId , taxonomy ) ; for ( TaxonomyTerm term : terms ) { clearPostTerm ( postId , term . id ) ; } }
Clears all terms associated with a post with a specified taxonomy.
@param postId The post id.
@param taxonomy The taxonomy.
@throws SQLException on database error.