Package com.tll.common.search

Examples of com.tll.common.search.INamedQuerySearch


  @Override
  public final Criteria<? extends IEntity> translateListingSearchCriteria(ListingContext context,
      IListingSearch listingSearch) throws IllegalArgumentException {
    if(listingSearch instanceof INamedQuerySearch) {
      // named query search
      final INamedQuerySearch nqs = (INamedQuerySearch) listingSearch;
      final ISelectNamedQueryDef queryDef = context.getNamedQueryResolver().resolveNamedQuery(nqs.getQueryName());
      if(queryDef == null) {
        throw new IllegalArgumentException("Unable to resolve named query: " + nqs.getQueryName());
      }
      return translateNamedQuerySearch(queryDef, nqs.getQueryParams());
    }
    // non-named query search
    return translateNonNamedQuery(context, listingSearch);
  }
View Full Code Here

TOP

Related Classes of com.tll.common.search.INamedQuerySearch

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.