Package com.tll.criteria

Examples of com.tll.criteria.ISelectNamedQueryDef


  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());
    }
View Full Code Here

TOP

Related Classes of com.tll.criteria.ISelectNamedQueryDef

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.