code: public QueryResult printQuery( Session session,
                                     String jcrSql2 ) throws RepositoryException {
          return printQuery(session, jcrSql2, Query.JCR_SQL2, -1, null);
      }
docs: Execute the supplied JCR-SQL2 query and, if printing is enabled, print out the results.
  
  @param session the session
  @param jcrSql2 the JCR-SQL2 query
  @return the results
  @throws RepositoryException