private void buildSelect ( final StringBuilder selectBuilder , final List < Projection > projections ) { selectBuilder . append ( "SELECT " ) ; if ( null == projections || projections . isEmpty ( ) ) { selectBuilder . append ( " * " ) ; return ; } selectBuilder . append ( projections . stream ( ) . map ( Projection :: getKey ) . collect ( Collectors . joining ( ", " ) ) ) ; }
Builds SELECT part with the specified select build and projections .