Package com.webobjects.eoaccess

Examples of com.webobjects.eoaccess.EORelationship


        String restrictedChoiceKey = stringValueForBinding(Keys.restrictedChoiceKey);
        if( restrictedChoiceKey!=null &&  restrictedChoiceKey.length()>0 )
            return valueForKeyPath(restrictedChoiceKey);
        String fetchSpecName = stringValueForBinding(Keys.restrictingFetchSpecification);
        if(fetchSpecName != null) {
            EORelationship relationship = ERXUtilities.relationshipWithObjectAndKeyPath(object(),
                                                                                        (String)d2wContext().valueForKey(Keys.propertyKey));
            return EOUtilities.objectsWithFetchSpecificationAndBindings(object().editingContext(), relationship.destinationEntity().name(),fetchSpecName,null);
        }
        return null;
    }
View Full Code Here


        EODataSource ds = dataSource();
        if (ds!= null && ds instanceof EODetailDataSource) {
          EODetailDataSource dds = (EODetailDataSource)ds;
          EOEnterpriseObject masterObj = (EOEnterpriseObject)dds.masterObject();
          EOEntity masterEntity = ERXEOAccessUtilities.entityForEo(masterObj);
          EORelationship relationship = masterEntity.relationshipNamed(dds.detailKey());
          EORelationship reverseRelationship = relationship.inverseRelationship();
          if(isRemoveable) {
            if(reverseRelationship == null) {
              _showRemoveButton = Boolean.TRUE;
            } else {
              _showRemoveButton = !reverseRelationship.isMandatory();
            }
          } else {
            _showRemoveButton = Boolean.FALSE;
          }
        } else {
View Full Code Here

TOP

Related Classes of com.webobjects.eoaccess.EORelationship

Copyright © 2018 www.massapicom. 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.