Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSMutableDictionary.immutableClone()


    else
    {
      tmp = new NSMutableDictionary("1", "any");
    }

    return tmp.immutableClone();
  }

  public boolean isJsonComplex()
  {
    boolean complex = booleanValueForBinding("jsonComplex", false);
View Full Code Here


          abdictionary.setObjectForKey(NSKeyValueCoding.NullValue, key);
        }
      }
      NSDictionary finalDictionary = abdictionary;
      if (immutableClone) {
        finalDictionary = abdictionary.immutableClone();
      }
      state.setSerialized(o, finalDictionary);
      return finalDictionary;
    }
    catch (UnmarshallException e) {
View Full Code Here

  private NSDictionary optionsWithPrimaryKeySupportDisabled(NSDictionary options) {
    NSMutableDictionary mutableOptions = options.mutableClone();
    mutableOptions.setObjectForKey("NO", EOSchemaGeneration.CreatePrimaryKeySupportKey);
    mutableOptions.setObjectForKey("NO", EOSchemaGeneration.DropPrimaryKeySupportKey);
    return mutableOptions.immutableClone();
  }

  private void createPrimaryKeySupportForModel(EOModel eomodel, EOAdaptorChannel channel, EOSynchronizationFactory syncFactory) {
    try {
      // AK: the (Object) cast is needed, because in 5.4 new NSArray(obj)
View Full Code Here

            if (changesFromSnapshot!= null && changesFromSnapshot.count() > 0) {
                combinedKeyChanges.addEntriesFromDictionary(changesFromSnapshot);
            }

            return combinedKeyChanges.immutableClone();
        }

        public void clearPendingChanges() {
            final NSDictionary changesFromSnapshot = massChangeEO().changesFromCommittedSnapshot();
            if (changesFromSnapshot != null && changesFromSnapshot.count() > 0) {
View Full Code Here

     */
    protected IndexAttribute createAttribute(String propertyName, NSDictionary propertyDefinition) {
        IndexAttribute attribute = new IndexAttribute(this, propertyName, propertyDefinition);
        NSMutableDictionary attributes = _attributes.mutableClone();
        attributes.setObjectForKey(attribute, propertyName);
        _attributes = attributes.immutableClone();
        return attribute;
    }

    private Directory indexDirectory() {
        if(_indexDirectory == null) {
View Full Code Here

                    _entryCount++;
                }
            }
        }
        ec.unlock();
        return result.immutableClone();
    }

    public NSDictionary globalIDsGroupedByEntity(NSArray objects) {
        if (objects == nullreturn NSDictionary.EmptyDictionary;
   
View Full Code Here

                }
                globalIDsForEntity.addObject(globalID);
                _entryCount++;
            }
        }
        return result.immutableClone();
    }

    @Override
    public String toString() {
        if (_toString == null) {
View Full Code Here

    @SuppressWarnings("unchecked")
  @Override
    public NSDictionary settings() {
      NSMutableDictionary settings = super.settings().mutableClone();
      settings.setObjectForKey(object(), "object");
      return settings.immutableClone();
    }
   
    public String container() {
      if (container == null) container = d2wContext().valueForKey("id") + "_container";
      return container;
View Full Code Here

      NSMutableDictionary dict = new NSMutableDictionary();
      dict.setObjectForKey(pageConfiguration(), RequestParams.PageConfiguration);
      dict.setObjectForKey(selectedSavedQuery.name(), RequestParams.SavedQueryName);
      dict.setObjectForKey(d2wContext().entity().name(), RequestParams.EntityName);
     
      return dict.immutableClone();
  }
 
  /**
   * For this method to work properly, a valid action should be passed in as a binding for key: directActionNameToFetchSavedQueryResults
   * @return {@link String} - link to the DA which knows how to fetch the query results given the saved query name
View Full Code Here

            stylesFromClass.addEntriesFromDictionary(current);
          }
        }
        stylesFromClass = ERXDictionaryUtilities.dictionaryFromObjectWithKeys(stylesFromClass, STYLE_KEYS).mutableClone();
        stylesFromClass.addEntriesFromDictionary(dict);
        dict = stylesFromClass.immutableClone();
      }
      if(log.isDebugEnabled()) {
          log.debug("after - " + cellClass + ": " + dict);
      }
     
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.