Examples of objectEnumerator()


Examples of com.webobjects.eocontrol.EOEnterpriseObject.objectEnumerator()

       result = ((IERXEOContainer)obj).toGIDContainer();
     }
     else if (obj instanceof NSArray) {
       NSArray eoful = (NSArray)obj;
       NSMutableArray gidful = new NSMutableArray();
       Enumeration objEnum = eoful.objectEnumerator();
       while (objEnum.hasMoreElements()) {
         gidful.addObject(ERXEOControlUtilities.convertEOtoGID(objEnum.nextElement()));
       }
       result = gidful;
     }
View Full Code Here

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

       result = ((IERXGIDContainer)obj).toEOContainer(editingContext);
     }
     else if (obj instanceof NSArray) {
       NSArray gidful = (NSArray)obj;
       boolean allGIDs = true;
       Enumeration objEnum = gidful.objectEnumerator();
       while (allGIDs && objEnum.hasMoreElements()) {
         allGIDs = (objEnum.nextElement() instanceof EOGlobalID);
       }
       if (allGIDs) {
         result = ERXEOGlobalIDUtilities.fetchObjectsWithGlobalIDs(editingContext, gidful);
View Full Code Here

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

      }
      result = map;
    } else if (obj instanceof NSArray) {
      List list = new LinkedList();
      NSArray nsArray = (NSArray) obj;
      Enumeration valuesEnum = nsArray.objectEnumerator();
      while (valuesEnum.hasMoreElements()) {
        Object value = valuesEnum.nextElement();
        value = toJavaCollections(value);
        list.add(value);
      }
View Full Code Here

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

      }
      result = map;
    } else if (obj instanceof NSArray) {
      List list = new LinkedList();
      NSArray nsArray = (NSArray) obj;
      Enumeration valuesEnum = nsArray.objectEnumerator();
      while (valuesEnum.hasMoreElements()) {
        Object value = valuesEnum.nextElement();
        value = toJavaCollections(value);
        list.add(value);
      }
View Full Code Here

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

    super.appendToResponse(response, context);
    WOComponent component = context.component();
    NSArray updateContainerIDs = (NSArray) _updateContainerIDs.valueInComponent(component);
    if (updateContainerIDs != null && updateContainerIDs.count() > 0) {
      AjaxUtils.appendScriptHeader(response);
      Enumeration updateContainerIDEnum = updateContainerIDs.objectEnumerator();
      while (updateContainerIDEnum.hasMoreElements()) {
        String updateContainerID = (String) updateContainerIDEnum.nextElement();
        // PROTOTYPE FUNCTIONS
        Object evalScripts = ERXComponentUtilities.valueForBinding("evalScripts", "true", _associations, component);
        response.appendContentString("if ($wi('" + updateContainerID + "')) { ");
View Full Code Here

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

            NSArray list=(NSArray)valueForBinding("list");
            _itemsPerSection=new NSMutableDictionary();
            if (list!=null) {
                boolean ignoreNulls = booleanValueForBinding("ignoreNulls", false);
               
                for (Enumeration e=list.objectEnumerator(); e.hasMoreElements();) {
                    Object item=e.nextElement();
                    if(log.isDebugEnabled()) log.debug("item = "+item);
                   
                    // push value up, so parent can tell us the group
                    setValueForBinding(item,"item");
View Full Code Here

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

    if (declarationBodyLength <= 2) {
      return associations;
    }
    trimmedDeclarationBody = trimmedDeclarationBody.substring(1, declarationBodyLength - 1).trim();
    NSArray bindings = NSArray.componentsSeparatedByString(trimmedDeclarationBody, ";");
    Enumeration bindingsEnum = bindings.objectEnumerator();
    do {
      if (!bindingsEnum.hasMoreElements()) {
        break;
      }
      String binding = ((String) bindingsEnum.nextElement()).trim();
View Full Code Here

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

              try {
              ERXFetchSpecification fetchSpec = new ERXFetchSpecification(entityName(), qualifier(), null);
              fetchSpec.setRefreshesRefetchedObjects(true);
              fetchSpec.setIsDeep(true);
              NSArray objects = ec.objectsWithFetchSpecification(fetchSpec);
                  for (Enumeration enumeration = objects.objectEnumerator(); enumeration.hasMoreElements();) {
                      T eo = (T) enumeration.nextElement();
                      addObject(eo);
                  }
              } finally {
                  ec.unlock();
View Full Code Here

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

        NSArray pkDicts = ec.objectsWithFetchSpecification(pkSpec);
        NSMutableArray pks = new NSMutableArray();
        String pkAtttributeName = entity.primaryKeyAttributes().lastObject().name();

        for ( Enumeration rowEnumerator = pkDicts.objectEnumerator(); rowEnumerator.hasMoreElements(); ) {
            NSDictionary row = (NSDictionary) rowEnumerator.nextElement();
            pks.addObject( row.objectForKey( pkAtttributeName ));
        }

        EOFetchSpecification spec = new EOFetchSpecification(entityName, null, sortOrderings);
View Full Code Here

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

        if( positions.count() != bindings.length ) {
            throw new RuntimeException("Binding placeholders count (" + positions.count() + ") does not match binding wrappers count (" + bindings.length + ").");
        }

        for ( Enumeration positionEnumerator = positions.objectEnumerator(); positionEnumerator.hasMoreElements(); ) {
            Integer position = (Integer) positionEnumerator.nextElement();
            if( position > currentOffset ) {
                processedQueryBuffer.append( query.substring( currentOffset, position ) );
            }
            ERXSQLBinding binding = bindings[bindingCount];
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.