Package com.webobjects.eoaccess

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


    }
    NSMutableArray mutableClassProperties = classProperties.mutableClone();
    NSMutableArray mutableAttributesUsedForLocking = attributesUsedForLocking.mutableClone();
    for (Enumeration e = attributes.objectEnumerator(); e.hasMoreElements();) {
      EOAttribute attribute = (EOAttribute) e.nextElement();
      NSDictionary userInfo = attribute.userInfo();
      String name = attribute.name();
      if (userInfo != null) {
        Object l = userInfo.valueForKey("ERXLanguages");
        if (l != null && !(l instanceof NSArray)) {
          l = (entity.model().userInfo() != null ? entity.model().userInfo().valueForKey("ERXLanguages") : null);
View Full Code Here


    }
    NSMutableArray mutableClassProperties = classProperties.mutableClone();
    NSMutableArray mutableAttributesUsedForLocking = attributesUsedForLocking.mutableClone();
    for (Enumeration e = attributes.objectEnumerator(); e.hasMoreElements();) {
      EOAttribute attribute = (EOAttribute) e.nextElement();
      NSDictionary userInfo = attribute.userInfo();
      String name = attribute.name();
      if (userInfo != null) {
        Object l = userInfo.valueForKey("ERXLanguages");
        if (l != null && !(l instanceof NSArray)) {
          l = (entity.model().userInfo() != null ? entity.model().userInfo().valueForKey("ERXLanguages") : null);
View Full Code Here

      ERXEntityClassDescription ecd = (ERXEntityClassDescription) cd;
      EOAttribute attribute = ecd.entity().attributeNamed(key);
      if (attribute == null) {
        attribute = ecd.entity().attributeNamed(localizedKey(key));
      }
      return (NSArray<String>) attribute.userInfo().objectForKey("ERXLanguages");
    }
    return result;
  }

  /**
 
View Full Code Here

            for( Enumeration e = entity.attributes().objectEnumerator(); e.hasMoreElements();) {
                EOAttribute attr = (EOAttribute)e.nextElement();
                String defaultValue = null;

                if(attr.userInfo() != null)
                    defaultValue = (String)attr.userInfo().objectForKey(defaultKey);

                if(defaultValue == null && entityInfo != null) {
                    defaultValue = (String)entityInfo.objectForKey(attr.name());
                }
View Full Code Here

            for( Enumeration e = entity.attributes().objectEnumerator(); e.hasMoreElements();) {
                EOAttribute attr = (EOAttribute)e.nextElement();
                String defaultValue = null;

                if(attr.userInfo() != null)
                    defaultValue = (String)attr.userInfo().objectForKey(defaultKey);

                if(defaultValue == null && entityInfo != null) {
                    defaultValue = (String)entityInfo.objectForKey(attr.name());
                }
                if(defaultValue != null)
View Full Code Here

    }

  @Override
  public Class _enforcedKVCNumberClassForKey(String key) {
    EOAttribute attribute = entity().attributeNamed(key);
    if(attribute != null && attribute.userInfo() != null) {
      String className = (String) attribute.userInfo().objectForKey("ERXConstantClassName");
      if(className != null) {
                Class c = ERXPatcher.classForName(className);
        return c;
      }
View Full Code Here

  @Override
  public Class _enforcedKVCNumberClassForKey(String key) {
    EOAttribute attribute = entity().attributeNamed(key);
    if(attribute != null && attribute.userInfo() != null) {
      String className = (String) attribute.userInfo().objectForKey("ERXConstantClassName");
      if(className != null) {
                Class c = ERXPatcher.classForName(className);
        return c;
      }
    }
View Full Code Here

            Object property=entity.attributeNamed(lastKey);
            property=property==null ? entity.relationshipNamed(lastKey) : property;
            //BOOGIE
            EOAttribute a=entity.attributeNamed(lastKey);
            NSDictionary userInfo=null;
            if (a!=null) userInfo=a.userInfo();
            else {
                EORelationship r=entity.relationshipNamed(lastKey);
                if (r!=null) userInfo=r.userInfo();
            }
            //
View Full Code Here

     * @param c current D2W context
     * @return the entity.
     */
    public Object attributeConstants(D2WContext c) {
      EOAttribute attr = (EOAttribute)c.valueForKey("smartAttribute");
      if(attr != null && attr.userInfo() != null) {
        String clazzName = (String)attr.userInfo().objectForKey("ERXConstantClassName");
        if(clazzName != null) {
          return ERXConstant.constantsForClassName(clazzName);
        }
      }
View Full Code Here

     * @return the entity.
     */
    public Object attributeConstants(D2WContext c) {
      EOAttribute attr = (EOAttribute)c.valueForKey("smartAttribute");
      if(attr != null && attr.userInfo() != null) {
        String clazzName = (String)attr.userInfo().objectForKey("ERXConstantClassName");
        if(clazzName != null) {
          return ERXConstant.constantsForClassName(clazzName);
        }
      }
        return 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.