class QueryUtils {

    public static String parseSelectFields( List<String> fields )
    {
        if ( fields == null || fields.isEmpty() )
        {
            return " * ";
        }
        else
        {
            String str = StringUtils.EMPTY;
            for ( int i = 0; i < fields.size(); i++ )
            {
                str += fields.get( i );
                if ( i < fields.size() - 1 )
                {
                    str += ",";
                }
            }
            return str;
        }
    }

}