Package com.webobjects.foundation

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


      for (int i = 1; i < _alreadyJoined.count(); i++) {
        jc = _alreadyJoined.objectAtIndex(i);

        sb.append(jc.op);
        if (seenIt.objectForKey(jc.table1) == null) {
          sb.append(jc.table1);
          seenIt.setObjectForKey(Boolean.TRUE, jc.table1);
        }
        else if (seenIt.objectForKey(jc.table2) == null) {
          sb.append(jc.table2);
View Full Code Here


        sb.append(jc.op);
        if (seenIt.objectForKey(jc.table1) == null) {
          sb.append(jc.table1);
          seenIt.setObjectForKey(Boolean.TRUE, jc.table1);
        }
        else if (seenIt.objectForKey(jc.table2) == null) {
          sb.append(jc.table2);
          seenIt.setObjectForKey(Boolean.TRUE, jc.table2);
        }
        sb.append(jc.joinCondition);
      }
View Full Code Here

      jdbcInfo = super.jdbcInfo();
    }

    NSMutableDictionary<String, Object> mutableJdbcInfo = new NSMutableDictionary<String, Object>(jdbcInfo);
    NSMutableDictionary typeInfoDict = new NSMutableDictionary((NSDictionary) mutableJdbcInfo.objectForKey("typeInfo"));
    NSDictionary typeDict = (NSDictionary) typeInfoDict.objectForKey("CHARACTER");
    typeInfoDict.setObjectForKey(typeDict, "CHAR");
    typeDict = (NSDictionary) typeInfoDict.objectForKey("CHARACTER VARYING");
    typeInfoDict.setObjectForKey(typeDict, "VARCHAR");
    typeInfoDict.setObjectForKey(typeDict, "CHAR VARYING");
    typeDict = (NSDictionary) typeInfoDict.objectForKey("BIT");
View Full Code Here

    NSMutableDictionary<String, Object> mutableJdbcInfo = new NSMutableDictionary<String, Object>(jdbcInfo);
    NSMutableDictionary typeInfoDict = new NSMutableDictionary((NSDictionary) mutableJdbcInfo.objectForKey("typeInfo"));
    NSDictionary typeDict = (NSDictionary) typeInfoDict.objectForKey("CHARACTER");
    typeInfoDict.setObjectForKey(typeDict, "CHAR");
    typeDict = (NSDictionary) typeInfoDict.objectForKey("CHARACTER VARYING");
    typeInfoDict.setObjectForKey(typeDict, "VARCHAR");
    typeInfoDict.setObjectForKey(typeDict, "CHAR VARYING");
    typeDict = (NSDictionary) typeInfoDict.objectForKey("BIT");
    typeInfoDict.setObjectForKey(typeDict, "BYTE");
    typeDict = (NSDictionary) typeInfoDict.objectForKey("BIT VARYING");
View Full Code Here

    NSDictionary typeDict = (NSDictionary) typeInfoDict.objectForKey("CHARACTER");
    typeInfoDict.setObjectForKey(typeDict, "CHAR");
    typeDict = (NSDictionary) typeInfoDict.objectForKey("CHARACTER VARYING");
    typeInfoDict.setObjectForKey(typeDict, "VARCHAR");
    typeInfoDict.setObjectForKey(typeDict, "CHAR VARYING");
    typeDict = (NSDictionary) typeInfoDict.objectForKey("BIT");
    typeInfoDict.setObjectForKey(typeDict, "BYTE");
    typeDict = (NSDictionary) typeInfoDict.objectForKey("BIT VARYING");
    typeInfoDict.setObjectForKey(typeDict, "BYTE VARYING");

    mutableJdbcInfo.setObjectForKey(typeInfoDict, "typeInfo");
View Full Code Here

    typeDict = (NSDictionary) typeInfoDict.objectForKey("CHARACTER VARYING");
    typeInfoDict.setObjectForKey(typeDict, "VARCHAR");
    typeInfoDict.setObjectForKey(typeDict, "CHAR VARYING");
    typeDict = (NSDictionary) typeInfoDict.objectForKey("BIT");
    typeInfoDict.setObjectForKey(typeDict, "BYTE");
    typeDict = (NSDictionary) typeInfoDict.objectForKey("BIT VARYING");
    typeInfoDict.setObjectForKey(typeDict, "BYTE VARYING");

    mutableJdbcInfo.setObjectForKey(typeInfoDict, "typeInfo");
    if (!shouldUseBundledJdbcInfo) {
      JDBCContext jdbccontext = adaptor()._cachedAdaptorContext();
View Full Code Here

  }

  public static NSDictionary removeDefaultOptions(NSDictionary options) {
    // PROTOTYPE OPTIONS
    NSMutableDictionary mutableOptions = options.mutableClone();
    if ("'get'".equals(mutableOptions.objectForKey("method"))) {
      mutableOptions.removeObjectForKey("method");
    }
    if ("true".equals(mutableOptions.objectForKey("evalScripts"))) {
      mutableOptions.removeObjectForKey("evalScripts");
    }
View Full Code Here

    // PROTOTYPE OPTIONS
    NSMutableDictionary mutableOptions = options.mutableClone();
    if ("'get'".equals(mutableOptions.objectForKey("method"))) {
      mutableOptions.removeObjectForKey("method");
    }
    if ("true".equals(mutableOptions.objectForKey("evalScripts"))) {
      mutableOptions.removeObjectForKey("evalScripts");
    }
    if ("true".equals(mutableOptions.objectForKey("asynchronous"))) {
      mutableOptions.removeObjectForKey("asynchronous");
    }
View Full Code Here

      mutableOptions.removeObjectForKey("method");
    }
    if ("true".equals(mutableOptions.objectForKey("evalScripts"))) {
      mutableOptions.removeObjectForKey("evalScripts");
    }
    if ("true".equals(mutableOptions.objectForKey("asynchronous"))) {
      mutableOptions.removeObjectForKey("asynchronous");
    }
    return mutableOptions;
  }
View Full Code Here

   * @param model
   */
  public static void createPrototypes(EOModel model) {
    // Remove password for logging
    NSMutableDictionary dict = model.connectionDictionary().mutableClone();
    if (dict.objectForKey("password") != null) {
      dict.setObjectForKey("<deleted for log>", "password");
    }
    log.info("Creating prototypes for model: " + model.name() + "->" + dict);
    synchronized (_EOGlobalModelLock) {
      StringBuilder debugInfo = null;
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.