Examples of classDescriptionForDestinationKey()


Examples of com.webobjects.eocontrol.EOClassDescription.classDescriptionForDestinationKey()

            String keyName = remainingKey.key();
            if (nonModelClassDescription.attributeKeys().containsObject(keyName)) {
              _addAttributeNodeForKeyInObject(remainingKey, obj, keyFilter);
            }
            else if (nonModelClassDescription.toManyRelationshipKeys().containsObject(keyName)) {
              _addToManyRelationshipNodeForKeyOfEntityInObject(remainingKey, nonModelClassDescription.classDescriptionForDestinationKey(keyName), obj, keyFilter, context, visitedObjects);
            }
            else if (nonModelClassDescription.toOneRelationshipKeys().containsObject(keyName)) {
              _addToOneRelationshipNodeForKeyInObject(remainingKey, obj, nonModelClassDescription.classDescriptionForDestinationKey(keyName), keyFilter, context, visitedObjects);
            }
            else if (nonModelClassDescription instanceof BeanInfoClassDescription && ((BeanInfoClassDescription) nonModelClassDescription).isAttributeMethod(keyName)) {
View Full Code Here

Examples of com.webobjects.eocontrol.EOClassDescription.classDescriptionForDestinationKey()

            }
            else if (nonModelClassDescription.toManyRelationshipKeys().containsObject(keyName)) {
              _addToManyRelationshipNodeForKeyOfEntityInObject(remainingKey, nonModelClassDescription.classDescriptionForDestinationKey(keyName), obj, keyFilter, context, visitedObjects);
            }
            else if (nonModelClassDescription.toOneRelationshipKeys().containsObject(keyName)) {
              _addToOneRelationshipNodeForKeyInObject(remainingKey, obj, nonModelClassDescription.classDescriptionForDestinationKey(keyName), keyFilter, context, visitedObjects);
            }
            else if (nonModelClassDescription instanceof BeanInfoClassDescription && ((BeanInfoClassDescription) nonModelClassDescription).isAttributeMethod(keyName)) {
              _addAttributeNodeForKeyInObject(remainingKey, obj, keyFilter);
            }
            else if (nonModelClassDescription instanceof BeanInfoClassDescription && ((BeanInfoClassDescription) nonModelClassDescription).isToManyMethod(keyName)) {
View Full Code Here

Examples of com.webobjects.eocontrol.EOClassDescription.classDescriptionForDestinationKey()

            }
            else if (nonModelClassDescription instanceof BeanInfoClassDescription && ((BeanInfoClassDescription) nonModelClassDescription).isAttributeMethod(keyName)) {
              _addAttributeNodeForKeyInObject(remainingKey, obj, keyFilter);
            }
            else if (nonModelClassDescription instanceof BeanInfoClassDescription && ((BeanInfoClassDescription) nonModelClassDescription).isToManyMethod(keyName)) {
              _addToManyRelationshipNodeForKeyOfEntityInObject(remainingKey, nonModelClassDescription.classDescriptionForDestinationKey(keyName), obj, keyFilter, context, visitedObjects);
            }
            else if (nonModelClassDescription instanceof BeanInfoClassDescription && ((BeanInfoClassDescription) nonModelClassDescription).isToOneMethod(keyName)) {
              _addToOneRelationshipNodeForKeyInObject(remainingKey, obj, nonModelClassDescription.classDescriptionForDestinationKey(keyName), keyFilter, context, visitedObjects);
            }
            else if (!keyFilter.isUnknownKeyIgnored()) {
View Full Code Here

Examples of com.webobjects.eocontrol.EOClassDescription.classDescriptionForDestinationKey()

            }
            else if (nonModelClassDescription instanceof BeanInfoClassDescription && ((BeanInfoClassDescription) nonModelClassDescription).isToManyMethod(keyName)) {
              _addToManyRelationshipNodeForKeyOfEntityInObject(remainingKey, nonModelClassDescription.classDescriptionForDestinationKey(keyName), obj, keyFilter, context, visitedObjects);
            }
            else if (nonModelClassDescription instanceof BeanInfoClassDescription && ((BeanInfoClassDescription) nonModelClassDescription).isToOneMethod(keyName)) {
              _addToOneRelationshipNodeForKeyInObject(remainingKey, obj, nonModelClassDescription.classDescriptionForDestinationKey(keyName), keyFilter, context, visitedObjects);
            }
            else if (!keyFilter.isUnknownKeyIgnored()) {
              throw new IllegalArgumentException("This key filter specified that the key '" + keyName + "' should be included on '" + nonModelClassDescription.entityName() + "', but it does not exist.");
            }
          }
View Full Code Here

Examples of com.webobjects.eocontrol.EOClassDescription.classDescriptionForDestinationKey()

          if (!classDescription.toOneRelationshipKeys().containsObject(keyName) && classDescription instanceof EOEntityClassDescription) {
            EOClassDescription nonModelClassDescription = ERXRestClassDescriptionFactory.classDescriptionForObject(obj, true);
            if (!nonModelClassDescription.toOneRelationshipKeys().containsObject(keyName)) {
              throw new IllegalArgumentException("There is no to-one relationship named '" + key.key() + "' on '" + classDescription.entityName() + "'.");
            }
            destinationClassDescription = nonModelClassDescription.classDescriptionForDestinationKey(keyName);
          }
          else {
            destinationClassDescription = classDescription.classDescriptionForDestinationKey(keyName);
          }
          if (destinationClassDescription == null) {
View Full Code Here

Examples of com.webobjects.eocontrol.EOClassDescription.classDescriptionForDestinationKey()

    StringTokenizer keyPathTokenizer = new StringTokenizer(_keyPath, ".");
    while (keyPathTokenizer.hasMoreElements()) {
      String key = keyPathTokenizer.nextToken();
      if (keyPathTokenizer.hasMoreElements()) {
        EOClassDescription sourceClassDescription = classDescription;
        classDescription = sourceClassDescription.classDescriptionForDestinationKey(key);
        if (classDescription == null) {
          throw new IllegalStateException("Invalid key '" + key + "' for entity '" + sourceClassDescription.entityName() + "'.");
        }
      }
      else {
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.