Examples of qualifyWithRelationshipKey()


Examples of com.webobjects.eocontrol.EODetailDataSource.qualifyWithRelationshipKey()

        if (object().isToManyKey(relationshipKey))
            isRelationshipToMany = true;
        else
            relationshipDisplayGroup.setSelectsFirstObjectAfterFetch(true);
        EODetailDataSource ds = new EODetailDataSource(object().classDescription(), _relationshipKey);
        ds.qualifyWithRelationshipKey(_relationshipKey, localEO);
        setDataSource(ds);
        relationshipDisplayGroup.setDataSource(ds);
        relationshipDisplayGroup.fetch();
        setPropertyKey(displayKey());
    }
View Full Code Here

Examples of com.webobjects.eocontrol.EODetailDataSource.qualifyWithRelationshipKey()

        if (!object().isToManyKey(relationshipKey))
            throw new RuntimeException(relationshipKey+" is not a to-many relationship");
       
        EODetailDataSource relationshipDataSource = new EODetailDataSource(object().classDescription(), relationshipKey());
        relationshipDataSource.qualifyWithRelationshipKey(relationshipKey(), newObject);
        setDataSource(relationshipDataSource);
        relationshipDisplayGroup.setDataSource(relationshipDataSource);

        if(isSortedRelationship()){
            EOSortOrdering indexOrdering = EOSortOrdering.sortOrderingWithKey(indexKey(),
View Full Code Here

Examples of com.webobjects.eocontrol.EODetailDataSource.qualifyWithRelationshipKey()

     * @param key relationship key
     * @return detail data source for the given object-key pair.
     */
    public static EODetailDataSource dataSourceForObjectAndKey(EOEnterpriseObject object, String key) {
        EODetailDataSource eodetaildatasource = new EODetailDataSource(EOClassDescription.classDescriptionForEntityName(object.entityName()), key);
        eodetaildatasource.qualifyWithRelationshipKey(key, object);
        return eodetaildatasource;
    }

    /**
     * Creates a new, editable instance of the supplied object. Takes into account if the object is
View Full Code Here

Examples of com.webobjects.eocontrol.EODetailDataSource.qualifyWithRelationshipKey()

    _selectedObject = (EOEnterpriseObject) in.readObject();
    _relationshipKey = (String) in.readObject();
    isRelationshipToMany = in.readBoolean();
    _dataSource = (EODataSource) in.readObject();
    EODetailDataSource ds = (EODetailDataSource) in.readObject();
    ds.qualifyWithRelationshipKey(_relationshipKey, _masterObject);
    _relationshipDisplayGroup = (WODisplayGroup) in.readObject();
    _selectDataSource = (EODataSource) in.readObject();
    String inlineTask = (String) in.readObject();
    if(inlineTask != null) {
      d2wContext().takeValueForKey(inlineTask, "inlineTask");
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.