Package com.tll.dao

Examples of com.tll.dao.SearchResult


  protected static <E extends IEntity> List<SearchResult> transformEntityList(final List<E> entityList,
      final Collection<String> inclusionProperties) {
    final List<SearchResult> slist = new ArrayList<SearchResult>(entityList.size());
    for(final E e : entityList) {
      if(inclusionProperties != null) {
        slist.add(new SearchResult(scalarize(e, inclusionProperties)));
      }
      else {
        slist.add(new SearchResult(e));
      }
    }
    return slist;
  }
View Full Code Here


    if(list == null || list.size() != subids.size()) {
      throw new ListHandlerException("id and entity count mismatch");
    }
    final List<SearchResult> slist = new ArrayList<SearchResult>(list.size());
    for(final Object e : list) {
      slist.add(new SearchResult(e));
    }
    return slist;
  }
View Full Code Here

TOP

Related Classes of com.tll.dao.SearchResult

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.