Examples of EOSortOrdering


Examples of com.webobjects.eocontrol.EOSortOrdering

    public String newApplicationName;

    public NSArray<MApplication> applications() {
      NSMutableArray<MApplication> applications = new NSMutableArray<MApplication>();
      applications.addObjectsFromArray(mySession().siteConfig().applicationArray());
      EOSortOrdering order= new EOSortOrdering("name", EOSortOrdering.CompareAscending);
      EOSortOrdering.sortArrayUsingKeyOrderArray(applications, new NSArray(order));
     
      calculateTotals(applications);
       return applications;
    }
View Full Code Here

Examples of com.webobjects.eocontrol.EOSortOrdering

            NSArray nonLocallist = choices == null ? ERXConstant.EmptyArray : (NSArray)valueForKeyPath(choices);
            if (nonLocallist!=null) {
                for (Enumeration e=nonLocallist.objectEnumerator(); e.hasMoreElements();) {
                    nonSortedLocalList.addObject(EOUtilities.localInstanceOfObject(objectContext, (EOEnterpriseObject) e.nextElement()));
               
                NSArray sortArray=new NSArray(new EOSortOrdering(choicesSortKey(),
                                                                 EOSortOrdering.CompareAscending));
                _list=EOSortOrdering.sortedArrayUsingKeyOrderArray(nonSortedLocalList, sortArray);
            }
        }
        return _list;
View Full Code Here

Examples of com.webobjects.eocontrol.EOSortOrdering

        NSArray<String> displayPropertyKeys = (NSArray<String>) d2wContext().valueForKey(Keys.displayPropertyKeys);
        for (int i = 0; i < sortOrderingDefinition.count();) {
          String sortKey = sortOrderingDefinition.objectAtIndex(i++);
          String sortSelectorKey = sortOrderingDefinition.objectAtIndex(i++);
          if (!checkSortOrderingKeys() || isValidSortKey(displayPropertyKeys, sortKey)) {
            EOSortOrdering sortOrdering = new EOSortOrdering(sortKey, ERXArrayUtilities.sortSelectorWithKey(sortSelectorKey));
            validatedSortOrderings.addObject(sortOrdering);
          }
        }
        sortOrderings = validatedSortOrderings;
        if (log.isDebugEnabled()) {
View Full Code Here

Examples of com.webobjects.eocontrol.EOSortOrdering

                if (!att.isGroup()) {
                    //OWDebug.println(1, "att: is not Group");
                    if (att.shouldSort()) {
                        //OWDebug.println(1, "att: shouldSort");
                        String attName = att.keyPath();
                        EOSortOrdering ord = new EOSortOrdering(attName, EOSortOrdering.CompareAscending);
                        arr.addObject(ord);
                    }
   
                }
   
View Full Code Here

Examples of com.webobjects.eocontrol.EOSortOrdering

     * @param key    Key to sort by
     * @see #reverseSortArrayWithKey
     */
    public static void sortArrayWithKey(NSMutableArray anArray, String key){
        NSMutableArray sortOrderings = new NSMutableArray();
        sortOrderings.addObject(new EOSortOrdering(key, EOSortOrdering.CompareAscending));
        EOSortOrdering.sortArrayUsingKeyOrderArray(anArray, sortOrderings);
    }
View Full Code Here

Examples of com.webobjects.eocontrol.EOSortOrdering

     * @param key    Key to sort by
     * @see #sortArrayWithKey
     */
    public static void reverseSortArrayWithKey(NSMutableArray anArray, String key){
        NSMutableArray sortOrderings = new NSMutableArray();
        sortOrderings.addObject(new EOSortOrdering(key, EOSortOrdering.CompareDescending));
        EOSortOrdering.sortArrayUsingKeyOrderArray(anArray, sortOrderings);
    }
View Full Code Here

Examples of com.webobjects.eocontrol.EOSortOrdering

     * @param key3    Key to sort by second
     * @see #reverseSortArrayWithKey1And2
     */
    public static void sortArrayWithKey1And2(NSMutableArray anArray, String key1, String key2){
        NSMutableArray sortOrderings = new NSMutableArray();
        sortOrderings.addObject(new EOSortOrdering(key1, EOSortOrdering.CompareAscending));
        sortOrderings.addObject(new EOSortOrdering(key2, EOSortOrdering.CompareAscending));
        EOSortOrdering.sortArrayUsingKeyOrderArray(anArray, sortOrderings);
    }
View Full Code Here

Examples of com.webobjects.eocontrol.EOSortOrdering

     * @param key3    Key to sort by second
     * @see #sortArrayWithKey1And2
     */
    public static void reverseSortArrayWithKey1And2(NSMutableArray anArray, String key1, String key2){
        NSMutableArray sortOrderings = new NSMutableArray();
        sortOrderings.addObject(new EOSortOrdering(key1, EOSortOrdering.CompareDescending));
        sortOrderings.addObject(new EOSortOrdering(key2, EOSortOrdering.CompareDescending));
        EOSortOrdering.sortArrayUsingKeyOrderArray(anArray, sortOrderings);
    }
View Full Code Here

Examples of com.webobjects.eocontrol.EOSortOrdering

     * @param key    Key to sort by
     * @see #reverseSortedArrayWithKey
     */
    public static NSArray sortedArrayWithKey(NSMutableArray anArray, String key){
        NSMutableArray sortOrderings = new NSMutableArray();
        sortOrderings.addObject(new EOSortOrdering(key, EOSortOrdering.CompareAscending));
        return EOSortOrdering.sortedArrayUsingKeyOrderArray(anArray, sortOrderings);
    }
View Full Code Here

Examples of com.webobjects.eocontrol.EOSortOrdering

     * @param key    Key to sort by
     * @see #sortedArrayWithKey
     */
    public static NSArray reverseSortedArrayWithKey(NSMutableArray anArray, String key){
        NSMutableArray sortOrderings = new NSMutableArray();
        sortOrderings.addObject(new EOSortOrdering(key, EOSortOrdering.CompareDescending));
        return EOSortOrdering.sortedArrayUsingKeyOrderArray(anArray, sortOrderings);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.