Examples of externalType()


Examples of com.webobjects.eoaccess.EOAttribute.externalType()

              for (Enumeration attributesEnum = entity.attributes().objectEnumerator(); attributesEnum.hasMoreElements();) {
                EOAttribute attribute = (EOAttribute) attributesEnum.nextElement();
                if (!attribute.isFlattened()) {
                  String prototypeAttributeName = attribute.prototypeName();
                  if (prototypeAttributeName == null) {
                    if (attribute.externalType() == null) {
                      log.warn(model.name() + "/" + entity.name() + "/" + attribute.name() + " does not have a prototype attribute name.  This can occur if the model cannot resolve ANY prototypes when loaded.  There must be a stub prototype for the model to load with that can then be replaced with the appropriate database-specific model.");
                    }
                  }
                  else {
                    EOAttribute prototypeAttribute = prototypeEntity.attributeNamed(prototypeAttributeName);
View Full Code Here

Examples of com.webobjects.eoaccess.EOAttribute.externalType()

          EOEntity kpEntity = entityForKeyPath(kp);
          attribute = kpEntity.attributeNamed(kp.substring(lastDotIdx+1));
        }
        // AK: inet6 addresses get handed down as "xxx:xxx:...:xxx%y", not "xxx:xxx:...:xxx/y"
        // note that this might break if you hand over a host name that contains percent chars (not sure if possible)
      if(attribute != null && "inet".equals(attribute.externalType()) && v != null && v.toString().indexOf('%') > 0) {
        v = v.toString().replace('%', '/');
      }
        if(attribute != null && v != null && v != NSKeyValueCoding.NullValue) {
          String s = columnTypeStringForAttribute(attribute);
          return super.sqlStringForValue(v, kp) + "::" + s;
View Full Code Here

Examples of com.webobjects.eoaccess.EOAttribute.externalType()

              attributeName = attributeName.trim();
              EOAttribute attribute = entity.attributeNamed(attributeName);
              if (attribute == null) {
                attribute = ERXEOAccessUtilities.attributeWithColumnNameFromEntity(attributeName, entity);
              }
              if (attribute != null && externalTypesToIgnore.indexOfObject(attribute.externalType()) != NSArray.NotFound) {
                continue;
              }
              validIndex = true;
              String columnName = attribute == null ? attributeName : attribute.columnName();
              columnBuf.append(columnName);
View Full Code Here

Examples of com.webobjects.eoaccess.EOAttribute.externalType()

              EOAttribute attribute = entity.attributeNamed(attributeName);

              if (attribute == null) {
                attribute = ERXEOAccessUtilities.attributeWithColumnNameFromEntity(attributeName, entity);
              }
              if (attribute != null && externalTypesToIgnore.indexOfObject(attribute.externalType()) != NSArray.NotFound) {
                continue;
              }
              validIndex = true;

              String columnName = attribute == null ? attributeName : attribute.columnName();
View Full Code Here

Examples of com.webobjects.eoaccess.EOAttribute.externalType()

    NSMutableArray<EOAttribute> attributesToFetch = new NSMutableArray<EOAttribute>();
    StringBuilder sql = new StringBuilder();
    sql.append("VALUES (");
    for (int keyNum = 0; keyNum < keyBatchSize; keyNum++) {
      if (isNSData) {
        if (firstPrimaryKeyAttribute.externalType().startsWith("BIT")) {
          sql.append("NEW_UID(" + (firstPrimaryKeyAttribute.width() >> 3) + ")");
        }
        else {
          sql.append("NEW_UID(" + firstPrimaryKeyAttribute.width() + ")");
        }
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.