Examples of immutableClone()


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

            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

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

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

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

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

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

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

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

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

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

    @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

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

      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

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

            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

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

  }

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

  public void createDummyData() {
    priorities = Priority.clazz.allObjects(ec).mutableClone();
    states = State.clazz.allObjects(ec).mutableClone();
View Full Code Here

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

                }
            }
        }
        if (rootNavigationItem == null)
            log.warn("No root navigation item set. You need one.");
        navigationItemsByName = itemsByName.immutableClone();
    }
   
    public void configureNavigation() {
        loadNavigationMenu();
        hasRegistered = true;
View Full Code Here

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

          if(value != null) {
            result.setObjectForKey(value, keyPath);
          }
        }
        result.setObjectForKey(entryName(), "ERXCachingWrapper.entryName");
        values = result.immutableClone();
      }
      return values;
    }
   
    @Override
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.