Package com.webobjects.eoaccess

Examples of com.webobjects.eoaccess.EOEntity.userInfo()


    public NSArray<EOSQLExpression> dropTableStatementsForEntityGroup(NSArray<EOEntity> entityGroup) {
      NSLog.debug.appendln("In dropTableStatementsForEntityGroup (no s)");
      EOEntity entity = entityGroup.objectAtIndex(0);
      String dropType = " CASCADE";

      if (entity.userInfo() != null) {
        NSDictionary dictionary = entity.userInfo();
        if (dictionary.valueForKey("Restrict") != null && ((String) dictionary.valueForKey("Restrict")).equals("true"))
          dropType = " RESTRICT";
      }
View Full Code Here


      NSLog.debug.appendln("In dropTableStatementsForEntityGroup (no s)");
      EOEntity entity = entityGroup.objectAtIndex(0);
      String dropType = " CASCADE";

      if (entity.userInfo() != null) {
        NSDictionary dictionary = entity.userInfo();
        if (dictionary.valueForKey("Restrict") != null && ((String) dictionary.valueForKey("Restrict")).equals("true"))
          dropType = " RESTRICT";
      }

      EOSQLExpression expression = _expressionForString("DROP TABLE " + quoteTableName(entity.externalName()) + dropType);
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.