Package com.avaje.ebeaninternal.util.SortByClause

Examples of com.avaje.ebeaninternal.util.SortByClause.Property


   
    SortByClause sortBy = new SortByClause();
   
    String[] sections = rawSortBy.split(",");
    for (int i = 0; i < sections.length; i++) {
      Property p = parseSection(sections[i].trim());
      if (p == null){
        break;
      } else {
        sortBy.add(p);
      }
View Full Code Here


      } else {
        ascending = isAscending(words[2]);
      }
    }
   
    return new Property(propName, ascending, nullsHigh);
  }
View Full Code Here

    // create a compound comparator based on the list of properties
    ElComparator<T>[] comparators = new ElComparator[sortBy.size()];

    List<Property> sortProps = sortBy.getProperties();
    for (int i = 0; i < sortProps.size(); i++) {
      Property sortProperty = sortProps.get(i);
      comparators[i] = createPropertyComparator(sortProperty);
    }

    return new ElComparatorCompound<T>(comparators);
  }
View Full Code Here

TOP

Related Classes of com.avaje.ebeaninternal.util.SortByClause.Property

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.