Package org.objectstyle.wolips.eomodeler.core.model

Examples of org.objectstyle.wolips.eomodeler.core.model.EORelationship


 
  public void setDetailKeyName(final String key) {
    String oldDetailKeyName = _detailKeyName;
    _detailKeyName = key;
    if (key != null && isHasMasterDetail()) {
      EORelationship relation = _masterEntity.getRelationshipNamed(key);
      if (relation != null) {
        setEntity(relation.getDestination().getEntity());
      }
      else {
        setEntity(_masterEntity);
      }
    }
View Full Code Here


      text = entity.getName();
    } else if (_element instanceof EOAttribute) {
      EOAttribute attribute = (EOAttribute) _element;
      text = attribute.getName();
    } else if (_element instanceof EORelationship) {
      EORelationship relationship = (EORelationship) _element;
      text = relationship.getName();
    } else if (_element instanceof EORelationshipPath) {
      EORelationshipPath relationshipPath = (EORelationshipPath) _element;
      text = relationshipPath.getChildRelationship().getName();
    } else if (_element instanceof EOAttributePath) {
      EOAttributePath attributePath = (EOAttributePath) _element;
View Full Code Here

import org.objectstyle.wolips.eomodeler.core.model.EOJoin;
import org.objectstyle.wolips.eomodeler.core.model.EORelationship;

public class EOJoinsContentProvider implements IStructuredContentProvider {
  public Object[] getElements(Object _inputElement) {
    EORelationship relationship = (EORelationship) _inputElement;
    List<EOJoin> joinsList = relationship.getJoins();
    EOJoin[] joins = joinsList.toArray(new EOJoin[joinsList.size()]);
    return joins;
  }
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.eomodeler.core.model.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.