Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSDictionary$_JavaNSDictionaryMapEntry


    }
    _database.dispose();
  }

  public synchronized void _notifyCacheChange(CacheChange cacheChange) {
    NSNotificationCenter.defaultCenter().postNotification(ERXDatabase.SnapshotCacheChanged, this, new NSDictionary(cacheChange, ERXDatabase.CacheChangeKey));
  }
View Full Code Here


      }
      else {
        throw new IllegalArgumentException("Unknown value type '" + valueType + "' for '" + object + "' of entity '" + entity.name() + "'.");
      }
    }
    NSDictionary pk = new NSDictionary<String, Object>(pkValue, pkAttribute.name());
    return pk;
  }
View Full Code Here

      throw new IllegalArgumentException("Can handle only entities with one PK: " + entityName + " has " + entity.primaryKeyAttributeNames());
    }

    Long pk = getNextPkValueForEntity(entityName);
    String pkName = entity.primaryKeyAttributeNames().objectAtIndex(0);
    return new NSDictionary(new Object[] { pk}, new Object[] { pkName});
  }
View Full Code Here

      try {
        EOAdaptorChannel channel = dbc.availableChannel().adaptorChannel();
        if (eomodel.adaptorName().contains("JDBC")) {
          EOSynchronizationFactory syncFactory = (EOSynchronizationFactory) channel.adaptorContext().adaptor().synchronizationFactory();
          ERXSQLHelper helper = ERXSQLHelper.newSQLHelper(channel);
          NSDictionary options = helper.defaultOptionDictionary(true, dropTables);

          // Primary key support creation throws an unwanted exception
          // if
          // EO_PK_TABLE already
          // exists (e.g. in case of MySQL), so we add pk support in a
View Full Code Here

        strValue = _value.toString();
      }
    }
    else if (type == AjaxOption.DICTIONARY) {
      if (_value instanceof NSDictionary) {
        NSDictionary dictValue = (NSDictionary) _value;
        StringBuilder sb = new StringBuilder();
        sb.append('{');
        Enumeration keyEnum = dictValue.keyEnumerator();
        while (keyEnum.hasMoreElements()) {
          Object key = keyEnum.nextElement();
          Object value = dictValue.objectForKey(key);
          sb.append(new AjaxValue(key).javascriptValue());
          sb.append(':');
          sb.append(new AjaxValue(value).javascriptValue());
          if (keyEnum.hasMoreElements()) {
            sb.append(',');
View Full Code Here

    response.appendContentString("new Rico.Effect.Round('");
    response.appendContentString(elementName);
    response.appendContentString("', '");
    response.appendContentString(className);
    response.appendContentString("', ");
    NSDictionary options = createAjaxOptions(component);
    AjaxOptions.appendToResponse(options, response, context);
    response.appendContentString(");");
    AjaxUtils.appendScriptFooter(response);
  }
View Full Code Here

    public InRangeOperator(int value) {
      _instanceNumber = value;
    }

    public NSDictionary<String, String> compute(String key, String value, String parameters) {
      NSDictionary computedProperties = null;
      if (parameters != null && parameters.length() > 0) {
        if (ERXStringUtilities.isValueInRange(_instanceNumber, parameters)) {
          computedProperties = new NSDictionary(value, key);
        }
        else {
          computedProperties = NSDictionary.EmptyDictionary;
        }
      }
View Full Code Here

        public EOEnterpriseObject object() { return object;}
    }
    public static class QualiferValidation implements EOQualifierEvaluation {
        protected EOQualifier qualifier;
        public QualiferValidation(Object info) {
            NSDictionary dict =(NSDictionary)info;
            qualifier = EOQualifier.qualifierWithQualifierFormat((String)dict.objectForKey("qualifier"), null);
        }
View Full Code Here

            if(availablePages.length() > 0 && !availablePages.contains(pageName)) {
              isAllowed = false;
            }
                    }
                    if(isAllowed) {
                      NSDictionary branch = branchChoiceDictionary(method.getName(), null);
                      methodChoices.addObject(branch);     
                    }
                }
            }
            choices = ERXArrayUtilities.sortedArraySortedWithKey(methodChoices, BRANCH_LABEL);
View Full Code Here

     * @param choices
     */
    protected NSArray choiceByRemovingKeys(NSArray keys, NSArray choices) {
        NSMutableArray result = new NSMutableArray(choices.count());
        for (Enumeration e = choices.objectEnumerator(); e.hasMoreElements();) {
            NSDictionary choice = (NSDictionary) e.nextElement();
            if(!keys.containsObject(choice.objectForKey(BRANCH_NAME))) {
                result.addObject(choice);
            }
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of com.webobjects.foundation.NSDictionary$_JavaNSDictionaryMapEntry

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.