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

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


  public EOFetchSpecsLabelProvider(String tableName) {
    super(tableName);
  }

  public Image getColumnImage(Object _element, String _property) {
    EOFetchSpecification fetchSpec = (EOFetchSpecification) _element;
    Image image;
    if (EOFetchSpecification.SHARES_OBJECTS.equals(_property)) {
      image = yesNoImage(fetchSpec.isSharesObjects(), Activator.getDefault().getImageRegistry().get(Activator.CHECK_ICON), null, null);
    } else {
      image = super.getColumnImage(_element, _property);
    }
    return image;
  }
View Full Code Here


  protected class FetchSpecChangeListener implements PropertyChangeListener {
    public void propertyChange(PropertyChangeEvent _event) {
      String propertyName = _event.getPropertyName();
      if (EOEntity.FETCH_SPECIFICATION == propertyName) {
        EOFetchSpecification fetchSpec = (EOFetchSpecification) _event.getNewValue();
        EOEntitySharedObjectsEditorSection.this.fetchSpecChanged(fetchSpec);

      } else if (EOEntity.FETCH_SPECIFICATIONS == propertyName) {
        EOEntitySharedObjectsEditorSection.this.fetchSpecsChanged();
      }
View Full Code Here

      text = relationshipPath.getChildRelationship().getName();
    } else if (_element instanceof EOAttributePath) {
      EOAttributePath attributePath = (EOAttributePath) _element;
      text = attributePath.getChildAttribute().getName();
    } else if (_element instanceof EOFetchSpecification) {
      EOFetchSpecification fetchSpec = (EOFetchSpecification) _element;
      text = fetchSpec.getName();
    } else if (_element instanceof EOArgument) {
      EOArgument argument = (EOArgument) _element;
      text = argument.getName();
    } else if (_element instanceof EOStoredProcedure) {
      EOStoredProcedure storedProcedure = (EOStoredProcedure) _element;
View Full Code Here

            EORelationship selectedRelationship = (EORelationship) selectedObject;
            setSelectedEntity(selectedRelationship.getEntity());
            getEntityEditor().setSelection(selection);
            setActivePage(getPageNum(EOModelEditor.EOENTITY_PAGE));
          } else if (selectedObject instanceof EOFetchSpecification) {
            EOFetchSpecification selectedFetchSpec = (EOFetchSpecification) selectedObject;
            setSelectedEntity(selectedFetchSpec.getEntity());
            getEntityEditor().setSelection(selection);
            // setActivePage(EOModelEditor.EOENTITY_PAGE);
          } else if (selectedObject instanceof AbstractEOAttributePath) {
            AbstractEOAttributePath selectedAttributePath = (AbstractEOAttributePath) selectedObject;
            setSelectedEntity(selectedAttributePath.getChildIEOAttribute().getEntity());
View Full Code Here

import org.eclipse.jface.viewers.Viewer;
import org.objectstyle.wolips.eomodeler.core.model.EOFetchSpecification;

public class EOSortOrderingsContentProvider implements IStructuredContentProvider {
  public Object[] getElements(Object _inputElement) {
    EOFetchSpecification fetchSpec = (EOFetchSpecification) _inputElement;
    Object[] sortOrderings = fetchSpec.getSortOrderings().toArray();
    return sortOrderings;
  }
View Full Code Here

  }

  public void setFetchSpecName(final String fetchSpec) {
    String _fetchSpec = fetchSpec;
    String oldFetchSpecName = getFetchSpecName();
    EOFetchSpecification myFetchSpec = null;

    if (fetchSpec != null && _entity != null) {
      myFetchSpec = _entity.getFetchSpecNamed(fetchSpec);
    }

    if (myFetchSpec != null) {
      _databaseDataSource.setFetchSpecification(myFetchSpec);
    }
    else {
      EOFetchSpecification newFetchSpec = new EOFetchSpecification(null);
      newFetchSpec.setEntity(_entity);
      newFetchSpec.setDeep(true);
      _databaseDataSource.setFetchSpecification(newFetchSpec);
    }

    if (fetchSpec == null && getFetchSpecList() != null) {
      _fetchSpec = FETCH_SPEC_NONE;
View Full Code Here

      text = relationshipPath.getChildRelationship().getName();
    } else if (_element instanceof EOAttributePath) {
      EOAttributePath attributePath = (EOAttributePath) _element;
      text = attributePath.getChildAttribute().getName();
    } else if (_element instanceof EOFetchSpecification) {
      EOFetchSpecification fetchSpec = (EOFetchSpecification) _element;
      text = fetchSpec.getName();
    } else if (_element instanceof EOArgument) {
      EOArgument argument = (EOArgument) _element;
      text = argument.getName();
    } else if (_element instanceof EOStoredProcedure) {
      EOStoredProcedure storedProcedure = (EOStoredProcedure) _element;
View Full Code Here

import org.eclipse.jface.viewers.Viewer;
import org.objectstyle.wolips.eomodeler.core.model.EOFetchSpecification;

public class PrefetchingKeyPathsContentProvider implements IStructuredContentProvider {
  public Object[] getElements(Object _inputElement) {
    EOFetchSpecification fetchSpec = (EOFetchSpecification) _inputElement;
    Collection<String> prefetchingRelationshipKeyPathsSet = fetchSpec.getPrefetchingRelationshipKeyPaths();
    Object[] prefetchingKeyPaths;
    if (prefetchingRelationshipKeyPathsSet == null) {
      prefetchingKeyPaths = new Object[0];
    } else {
      prefetchingKeyPaths = prefetchingRelationshipKeyPathsSet.toArray();
View Full Code Here

import org.eclipse.jface.viewers.Viewer;
import org.objectstyle.wolips.eomodeler.core.model.EOFetchSpecification;

public class RawRowKeyPathsContentProvider implements IStructuredContentProvider {
  public Object[] getElements(Object _inputElement) {
    EOFetchSpecification fetchSpec = (EOFetchSpecification) _inputElement;
    Collection<String> rawRowKeyPathsSet = fetchSpec.getRawRowKeyPaths();
    Object[] rawRowKeyPaths;
    if (rawRowKeyPathsSet == null) {
      rawRowKeyPaths = new Object[0];
    } else {
      rawRowKeyPaths = rawRowKeyPathsSet.toArray();
View Full Code Here

TOP

Related Classes of org.objectstyle.wolips.eomodeler.core.model.EOFetchSpecification

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.