Package com.webobjects.foundation

Examples of com.webobjects.foundation.NSDictionary.mutableClone()


    }

    // MS: Remove jdbc2Info prior to SQL generation
    NSDictionary connectionDictionary = _model.connectionDictionary();
    if (connectionDictionary != null) {
      NSMutableDictionary mutableConnectionDictionary = connectionDictionary.mutableClone();
      mutableConnectionDictionary.removeObjectForKey("jdbc2Info");
      _model.setConnectionDictionary(mutableConnectionDictionary);
    }

    // MS: Add the "inEntityModeler" flag so that plugins can adjust their
View Full Code Here


      NSDictionary entityModelerDict = (NSDictionary) modelUserInfo.valueForKey("_EntityModeler");
      NSMutableDictionary mutableEntityModelerDict;
      if (entityModelerDict == null) {
        mutableEntityModelerDict = new NSMutableDictionary();
      } else {
        mutableEntityModelerDict = entityModelerDict.mutableClone();
      }
      mutableEntityModelerDict.takeValueForKey(Boolean.TRUE, "inEntityModeler");
      modelUserInfo.takeValueForKey(mutableEntityModelerDict, "_EntityModeler");
      _model.setUserInfo(modelUserInfo);
    }
View Full Code Here

    }

    // MS: Remove jdbc2Info prior to SQL generation
    NSDictionary connectionDictionary = _model.connectionDictionary();
    if (connectionDictionary != null) {
      NSMutableDictionary mutableConnectionDictionary = connectionDictionary.mutableClone();
      mutableConnectionDictionary.removeObjectForKey("jdbc2Info");
      _model.setConnectionDictionary(mutableConnectionDictionary);
    }

    // MS: Add the "inEntityModeler" flag so that plugins can adjust their
View Full Code Here

      NSDictionary entityModelerDict = (NSDictionary) modelUserInfo.valueForKey("_EntityModeler");
      NSMutableDictionary mutableEntityModelerDict;
      if (entityModelerDict == null) {
        mutableEntityModelerDict = new NSMutableDictionary();
      } else {
        mutableEntityModelerDict = entityModelerDict.mutableClone();
      }
      mutableEntityModelerDict.takeValueForKey(Boolean.TRUE, "inEntityModeler");
      modelUserInfo.takeValueForKey(mutableEntityModelerDict, "_EntityModeler");
      _model.setUserInfo(modelUserInfo);
    }
View Full Code Here

    protected void pushQueryBindingsForName(String name) {
        NSDictionary queryBindings = queryBindings();
        if (queryBindings != null && (queryBindings instanceof NSMutableDictionary)) {
            NSMutableDictionary mutableQueryBindings = (NSMutableDictionary) queryBindings;
            NSDictionary source = (NSDictionary) NSKeyValueCoding.Utility.valueForKey(displayGroup, name);
            mutableQueryBindings.setObjectForKey(source.mutableClone(), name);
        }
    }

    @Override
    public void takeValuesFromRequest(WORequest request, WOContext context) {
View Full Code Here

            }
            prototypesFixed = true;
          }
        }
       
        NSMutableDictionary mutableUserInfo = userInfo.mutableClone();
        mutableUserInfo.setObjectForKey(Boolean.valueOf(prototypesFixed), prototypesFixedKey);
        model.setUserInfo(mutableUserInfo);
        dumpSchemaSQL(model);

      }
View Full Code Here

                 if (snapshot != null) {
                   EOQualifier gidQualifier = entity.qualifierForPrimaryKey(entity.primaryKeyForGlobalID(gid));
                   EOFetchSpecification gidFetchSpec = new EOFetchSpecification(entityName, gidQualifier, null);

                   NSMutableDictionary databaseSnapshotClone;
                   NSMutableDictionary memorySnapshotClone = snapshot.mutableClone();
                   EOAdaptorChannel channel = databaseContext.availableChannel().adaptorChannel();
                   channel.openChannel();
                   channel.selectAttributes(entity.attributesToFetch(), gidFetchSpec, false, entity);
                   try {
                     databaseSnapshotClone = channel.fetchRow().mutableClone();
View Full Code Here

              ((Assignment) eokeyvalueunarchiver.decodeObjectForKey("rhs")));
        NSDictionary dict = (NSDictionary)eokeyvalueunarchiver.decodeObjectForKey("userInfo");
        setAuthor(eokeyvalueunarchiver.decodeIntForKey("author"));
        assignmentClassName = (String)eokeyvalueunarchiver.decodeObjectForKey("assignmentClassName");
        if(dict != null)
            setMutableUserInfo(dict.mutableClone());
    }

    public static Object  decodeWithKeyValueUnarchiver(EOKeyValueUnarchiver eokeyvalueunarchiver) {
        ERD2WExtendedRule rule = null;
        try {
View Full Code Here

  }

  @Override
  public NSDictionary statistics() {
    NSDictionary stats = super.statistics();
    NSMutableDictionary fixed = stats.mutableClone();
    for (Enumeration enumerator = stats.keyEnumerator(); enumerator.hasMoreElements();) {
      Object key = enumerator.nextElement();
      Object value = stats.objectForKey(key);
      fixed.setObjectForKey(fix(value), key);
    }
View Full Code Here

    }
    else if (userInfo instanceof NSMutableDictionary) {
      mutableUserInfo = (NSMutableDictionary) userInfo;
    }
    else {
      mutableUserInfo = userInfo.mutableClone();
      _userInfo = mutableUserInfo;
    }
    return mutableUserInfo;
  }
}
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.