Examples of allObjects()


Examples of com.webobjects.appserver.WODisplayGroup.allObjects()

        return name;
    }
       
    public String entityLabel() {
        WODisplayGroup dg = (WODisplayGroup)valueForBinding("displayGroup");
        if (dg.allObjects().count() == 1) {
            return _singularName();
        } else {
            return _pluralName();
        }
    }
View Full Code Here

Examples of com.webobjects.appserver.WODisplayGroup.allObjects()

      // correct, in case
      // the current index if out of range
      log.debug("dg.currentBatchIndex() " + dg.currentBatchIndex());
      dg.setCurrentBatchIndex(dg.currentBatchIndex());
      if (listSize() > 0 && displayGroup().selectsFirstObjectAfterFetch()) {
        d2wContext().takeValueForKey(dg.allObjects().objectAtIndex(0), "object");
      }
    }
  }

  public boolean isEntityInspectable() {
View Full Code Here

Examples of com.webobjects.appserver.WODisplayGroup.allObjects()

        if(dataSource == null) {
          if (displayGroup instanceof ERXBatchingDisplayGroup) {
        ERXBatchingDisplayGroup dg = (ERXBatchingDisplayGroup) displayGroup;
              dataSource = ERXEOControlUtilities.dataSourceForArray(displayGroup.displayedObjects());
      } else {
              dataSource = ERXEOControlUtilities.dataSourceForArray(displayGroup.allObjects());
      }
        }
        D2WContext newContext = ERD2WContext.newContext(session);
        String newTask = d2wContext.task().equals("edit") ? "inspect" : d2wContext.task();
        // for editable list pages...
View Full Code Here

Examples of com.webobjects.appserver.WODisplayGroup.allObjects()

      return erxdg.filteredObjects().count();
    }
        int result=0;
        EOQualifier q=dg.qualifier();
        if (q!=null) {
            result=EOQualifier.filteredArrayWithQualifier(dg.allObjects(),q).count();
        } else {
            result=dg.allObjects().count();
        }
        return result;
    }
View Full Code Here

Examples of com.webobjects.appserver.WODisplayGroup.allObjects()

        int result=0;
        EOQualifier q=dg.qualifier();
        if (q!=null) {
            result=EOQualifier.filteredArrayWithQualifier(dg.allObjects(),q).count();
        } else {
            result=dg.allObjects().count();
        }
        return result;
    }
   
View Full Code Here

Examples of com.webobjects.eocontrol.EOGlobalID.allObjects()

       Enumeration objEnum = gidful.objectEnumerator();
       while (allGIDs && objEnum.hasMoreElements()) {
         allGIDs = (objEnum.nextElement() instanceof EOGlobalID);
       }
       if (allGIDs) {
         result = new NSSet(ERXEOGlobalIDUtilities.fetchObjectsWithGlobalIDs(editingContext, gidful.allObjects()));
       }
       else {
         NSMutableSet eoful = new NSMutableSet();
         objEnum = gidful.objectEnumerator();
         while (objEnum.hasMoreElements()) {
View Full Code Here

Examples of com.webobjects.foundation.NSArray.allObjects()

       Enumeration objEnum = gidful.objectEnumerator();
       while (allGIDs && objEnum.hasMoreElements()) {
         allGIDs = (objEnum.nextElement() instanceof EOGlobalID);
       }
       if (allGIDs) {
         result = new NSSet(ERXEOGlobalIDUtilities.fetchObjectsWithGlobalIDs(editingContext, gidful.allObjects()));
       }
       else {
         NSMutableSet eoful = new NSMutableSet();
         objEnum = gidful.objectEnumerator();
         while (objEnum.hasMoreElements()) {
View Full Code Here

Examples of com.webobjects.foundation.NSMutableSet.allObjects()

            NSMutableSet<EOEnterpriseObject> result = new NSMutableSet();
            for (EOEnterpriseObject eo : objects) {
                NSArray targetObjects = indexableObjectsForObject(type, eo);
                result.addObjectsFromArray(targetObjects);
            }
            return result.allObjects();
        }

        private final NSMutableSet<String> _warned = new NSMutableSet();

        protected NSArray indexableObjectsForObject(String type, EOEnterpriseObject object) {
View Full Code Here

Examples of com.webobjects.foundation.NSMutableSet.allObjects()

                    }
                } else {
                    result.addObject(eo);
                }
            }
            return result.allObjects();
        }

    }

    private static ERXAsyncQueue<Transaction> _queue;
View Full Code Here

Examples of com.webobjects.foundation.NSMutableSet.allObjects()

                    throw NSForwardException._runtimeExceptionForThrowable(e);
                }
            }
        }

        return result.allObjects();
    }

    public IndexDocument documentForGlobalID(EOKeyGlobalID globalID) {
        return findDocument(globalID);
    }
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.