Package com.webobjects.eoaccess

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


            }

            attribute.setClassName(type);
          }
        }
        entity.addAttribute(attribute);
      }
      classDescription = new EOEntityClassDescription(entity);
      NSKeyValueCoding.Utility.takeValueForKey(entity, classDescription, "classDescription");
      EOClassDescription.registerClassDescription(classDescription, clazz);
      pojoModel.addEntity(entity);
View Full Code Here


        itemFKAttribute.setClassName(itemPrimaryKey.className());
        itemFKAttribute.setWidth(itemPrimaryKey.width());
        itemFKAttribute.setPrecision(itemPrimaryKey.precision());
        itemFKAttribute.setScale(itemPrimaryKey.scale());
        itemFKAttribute.setAllowsNull(false);
        joinEntity.addAttribute(itemFKAttribute);

        EOJoin join = new EOJoin(itemFKAttribute, itemPrimaryKey);
        joinToItemRelationship.addJoin(join);
      }
View Full Code Here

        tagFKAttribute.setClassName(tagPrimaryKey.className());
        tagFKAttribute.setWidth(tagPrimaryKey.width());
        tagFKAttribute.setPrecision(tagPrimaryKey.precision());
        tagFKAttribute.setScale(tagPrimaryKey.scale());
        tagFKAttribute.setAllowsNull(false);
        joinEntity.addAttribute(tagFKAttribute);

        joinToTagRelationship.addJoin(new EOJoin(tagFKAttribute, tagPrimaryKey));
      }

      joinEntity.setPrimaryKeyAttributes(joinEntity.attributes());
View Full Code Here

      modelNameAttribute.setName("modelName");
      modelNameAttribute.setColumnName("modelname");
      modelNameAttribute.setClassName("java.lang.String");
      modelNameAttribute.setWidth(100);
      modelNameAttribute.setAllowsNull(false);
      dbUpdaterEntity.addAttribute(modelNameAttribute);
      dbUpdaterEntity.setPrimaryKeyAttributes(new NSArray<EOAttribute>(modelNameAttribute));

      EOAttribute versionAttribute = new EOAttribute();
      if (isWonderPrototype) {
        versionAttribute.setExternalType(prototypeEntity.attributeNamed("intNumber").externalType());
View Full Code Here

      versionAttribute.setName("version");
      versionAttribute.setColumnName("version");
      versionAttribute.setClassName("java.lang.Number");
      versionAttribute.setValueType("i");
      versionAttribute.setAllowsNull(false);
      dbUpdaterEntity.addAttribute(versionAttribute);

      EOAttribute updateLockAttribute = new EOAttribute();
      if (isWonderPrototype) {
        updateLockAttribute.setExternalType(prototypeEntity.attributeNamed("intNumber").externalType());
      }
View Full Code Here

      updateLockAttribute.setName("updateLock");
      updateLockAttribute.setColumnName("updatelock");
      updateLockAttribute.setClassName("java.lang.Number");
      updateLockAttribute.setValueType("i");
      updateLockAttribute.setAllowsNull(false);
      dbUpdaterEntity.addAttribute(updateLockAttribute);

      EOAttribute lockOwnerAttribute = new EOAttribute();
      if (isWonderPrototype) {
        lockOwnerAttribute.setExternalType(prototypeEntity.attributeNamed("varchar100").externalType());
      }
View Full Code Here

      lockOwnerAttribute.setName("lockOwner");
      lockOwnerAttribute.setColumnName("lockowner");
      lockOwnerAttribute.setClassName("java.lang.String");
      lockOwnerAttribute.setWidth(100);
      lockOwnerAttribute.setAllowsNull(true);
      dbUpdaterEntity.addAttribute(lockOwnerAttribute);

      _lastUpdatedModel = model;
      _dbUpdaterModelCache = dbUpdaterModel;
    }
    return dbUpdaterModel;
View Full Code Here

                if ("EOFactoryMethodArgumentIsString".equals(factoryMethodArgumentType)) {
                  attributePropertyList.setObjectForKey("EOFactoryMethodArgumentIsNSString", "factoryMethodArgumentType");
                }
                EOAttribute primaryAttribute = new EOAttribute(attributePropertyList, partialEntity);
                primaryAttribute.awakeWithPropertyList(attributePropertyList);
                partialEntity.addAttribute(primaryAttribute);
              }
              else {
                ERXModelGroup.log.debug("Skipping partial attribute " + partialExtensionEntity.name() + "." + partialAttribute.name() + " because " + partialEntity.name() + " already has an attribute of the same name.");
              }
            }
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.