code: public void addQueryCriterion(QueryCriterion criterion){
          if( criteria == null){
              criteria = new ArrayList<QueryCriterion>();
          }
          criteria.add(criterion);
      }
docs: Add a QueryCriterion.
  
  @param criterion
  the QueryCriterion.