code: protected void appendHavingClause(StringBuffer having, Criteria crit, StringBuffer stmt)
      {
          if (having.length() == 0)
          {
              having = null;
          }
  
          if (having != null || crit != null)
          {
              stmt.append(" HAVING ");
              appendClause(having, crit, stmt);
          }
      }
docs: appends a HAVING-clause to the Statement
  @param having
  @param crit
  @param stmt