String subText1 = fromElement.renderCollectionSelectFragment( nonscalarSize, k ); appender.append( SqlTokenTypes.SQL_TOKEN, subText1, false );
private void renderNonScalarProperties(ASTAppender appender, FromElement fromElement, int nonscalarSize, int k) { String text = fromElement.renderPropertySelect( nonscalarSize, k ); appender.append( SqlTokenTypes.SQL_TOKEN, text, false ); if ( fromElement.getQueryableCollection() != null && fromElement.isFetch() ) { text = fromElement.renderCollectionSelectFragment( nonscalarSize, k ); appender.append( SqlTokenTypes.SQL_TOKEN, text, false ); } // Look through the FromElement's children to find any collections of values that should be fetched... ASTIterator iter = new ASTIterator( fromElement ); while ( iter.hasNext() ) { FromElement child = ( FromElement ) iter.next(); if ( child.isCollectionOfValuesOrComponents() && child.isFetch() ) { // Need a better way to define the suffixes here... text = child.renderValueCollectionSelectFragment( nonscalarSize, nonscalarSize + k ); appender.append( SqlTokenTypes.SQL_TOKEN, text, false ); } } }
private void renderNonScalarProperties(ASTAppender appender, FromElement fromElement, int nonscalarSize, int k) { String text = fromElement.renderPropertySelect( nonscalarSize, k ); appender.append( SqlTokenTypes.SQL_TOKEN, text, false ); if ( fromElement.getQueryableCollection() != null && fromElement.isFetch() ) { text = fromElement.renderCollectionSelectFragment( nonscalarSize, k ); appender.append( SqlTokenTypes.SQL_TOKEN, text, false ); } // Look through the FromElement's children to find any collections of values that should be fetched... ASTIterator iter = new ASTIterator( fromElement ); while ( iter.hasNext() ) { FromElement child = ( FromElement ) iter.next(); if ( child.isCollectionOfValuesOrComponents() && child.isFetch() ) { // Need a better way to define the suffixes here... text = child.renderValueCollectionSelectFragment( nonscalarSize, nonscalarSize + k ); appender.append( SqlTokenTypes.SQL_TOKEN, text, false ); } } }