code: private void appendSubQuery(Query subQuery, StringBuffer buf)
      {
          buf.append(" (");
          buf.append(getSubQuerySQL(subQuery));
          buf.append(") ");
      }
docs: Append a SubQuery the SQL-Clause
  @param subQuery the subQuery value of SelectionCriteria