protected void ensureColumns ( List columns , List existingColumns ) { if ( columns == null || columns . isEmpty ( ) ) { return ; } Iterator iter = columns . iterator ( ) ; while ( iter . hasNext ( ) ) { FieldHelper cf = ( FieldHelper ) iter . next ( ) ; if ( ! existingColumns . contains ( cf . name ) ) { getAttributeInfo ( cf . name , false , null , getQuery ( ) . getPathClasses ( ) ) ; } } }
Builds the Join for columns if they are not found among the existingColumns .