this.queryString = spec.getQueryString();
this.queryObject = spec.getQueryObject();
this.sessionFactory = factory;
SQLQueryReturnProcessor processor = new SQLQueryReturnProcessor(spec.getQueryReturns(), factory);
processor.process();
customQueryReturns = Collections.unmodifiableList( processor.generateCustomReturns( false ) );
if ( spec.getQuerySpaces() != null ) {
@SuppressWarnings("unchecked")
Set<String> spaces = spec.getQuerySpaces();