Package org.apache.cayenne.query

Examples of org.apache.cayenne.query.SortOrder


            path = null;
        }
        boolean isDescending = "true".equalsIgnoreCase(descending);
        boolean isIgnoringCase = "true".equalsIgnoreCase(ignoreCase);

        SortOrder order;

        if (isDescending) {
            order = isIgnoringCase
                    ? SortOrder.DESCENDING_INSENSITIVE
                    : SortOrder.DESCENDING;
View Full Code Here


    for (String  keyPath : fetchSpec.prefetchingRelationshipKeyPaths()) {
      query.addPrefetch(keyPath);
    }
   
    for (EOSortOrdering sortOrdering : fetchSpec.sortOrderings()) {
      SortOrder order = SortOrder.ASCENDING;
      if (sortOrdering.selector().equals(EOSortOrdering.CompareCaseInsensitiveAscending)) {
        order = SortOrder.ASCENDING_INSENSITIVE;
      } else if (sortOrdering.selector().equals(EOSortOrdering.CompareCaseInsensitiveDescending)) {
        order = SortOrder.DESCENDING_INSENSITIVE;
      } else if (sortOrdering.selector().equals(EOSortOrdering.CompareDescending)) {
View Full Code Here

TOP

Related Classes of org.apache.cayenne.query.SortOrder

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.