Examples of mutableClone()


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

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

      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

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

    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

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

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

      }
View Full Code Here

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

                 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

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

              ((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

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

  }

  @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

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

    }
    else if (userInfo instanceof NSMutableDictionary) {
      mutableUserInfo = (NSMutableDictionary) userInfo;
    }
    else {
      mutableUserInfo = userInfo.mutableClone();
      _userInfo = mutableUserInfo;
    }
    return mutableUserInfo;
  }
}
View Full Code Here

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

      NSMutableDictionary mutableUserInfo;
      if (userInfo == null) {
        mutableUserInfo = new NSMutableDictionary();
      }
      else {
        mutableUserInfo = userInfo.mutableClone();
      }
      mutableUserInfo.setObjectForKey(_defaultValue, "default");
      attribute.setUserInfo(mutableUserInfo);
    }
View Full Code Here

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

      NSMutableDictionary<String, NSDictionary> typeInfo = ((NSDictionary<String, NSDictionary>)mutableInfo.objectForKey("typeInfo")).mutableClone();
      NSDictionary textTypeInfo = typeInfo.objectForKey("TEXT");
      if(textTypeInfo != null) {
        Object rawCreateParams = textTypeInfo.objectForKey("createParams");
        if(!rawCreateParams.equals("1")) {
          NSMutableDictionary newRawTypeInfo = textTypeInfo.mutableClone();
          newRawTypeInfo.setObjectForKey("1", "createParams");
          typeInfo.setObjectForKey(newRawTypeInfo, "RAW");
        }
      }
      JDBCPlugIn._takeValueForKeyPath(typeInfo, "0", "BLOB", "createParams");
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.