Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSMutableArray.valueForKey()


      for (Enumeration e = ERXSystem.getProperties().keys(); e.hasMoreElements();) {
        String key = (String) e.nextElement();
        String object = "" + ERXSystem.getProperty(key);
        props.addObject(new Property(key, object));
      }
      return (NSArray) props.valueForKey("@sortAsc.key");
     }

    /**
     * <span class="en">
     * Returns the full path to the Properties file under the
View Full Code Here


    result.remove("ERD2WStatelessCustomComponentWithArgs");
    result.remove("D2WCustomComponent");
    result.remove("D2WCustomQueryComponent");
    //result.remove("ERDEditStringWithChoices");
    //result.remove("ERDDisplayYearsMonths");
    result = (NSMutableArray) result.valueForKey("@unique");
    return result;
  }

  public NSDictionary editors() {
    NSMutableDictionary result = new NSMutableDictionary();
View Full Code Here

                    relationshipCache.addObject(relationship);
                }
            }
            if (relationshipCache.count() != 2)
                throw new RuntimeException("Did not find two relationships with user info entries: " +
                                           SortedJoinRelationshipUserInfoKey + " found: " + relationshipCache.valueForKey("name")
                                           + " for entity: " + entity.name());
            joinRelationships = relationshipCache;
        }
        return joinRelationships;
    }
View Full Code Here

            if (possibleEntities.count() > 0) {
                result = (EOEntity) possibleEntities.lastObject();
            }
           
            if (log.isEnabledFor(Level.WARN) && possibleEntities.count() > 1)
                log.warn("Found multiple entities: " + possibleEntities.valueForKey("name") + " for table name: " + tableName);

            if (log.isDebugEnabled())
                log.debug("Found possible entities: " + possibleEntities.valueForKey("name") + " for table name: " + tableName + " result: " + result);
        }
        return result;
View Full Code Here

           
            if (log.isEnabledFor(Level.WARN) && possibleEntities.count() > 1)
                log.warn("Found multiple entities: " + possibleEntities.valueForKey("name") + " for table name: " + tableName);

            if (log.isDebugEnabled())
                log.debug("Found possible entities: " + possibleEntities.valueForKey("name") + " for table name: " + tableName + " result: " + result);
        }
        return result;
    }

    /**
 
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.