Search in sources :

Example 1 with JoinSource

use of com.robotoworks.mechanoid.db.sqliteModel.JoinSource in project mechanoid by robotoworks.

the class ModelUtil method findAllSingleSources.

public static ArrayList<SingleSource> findAllSingleSources(final SelectExpression expr) {
    final ArrayList<SingleSource> items = Lists.<SingleSource>newArrayList();
    JoinSource _source = expr.getSource();
    SingleSource _source_1 = _source.getSource();
    items.add(_source_1);
    JoinSource _source_2 = expr.getSource();
    EList<JoinStatement> _joinStatements = _source_2.getJoinStatements();
    for (final JoinStatement join : _joinStatements) {
        SingleSource _singleSource = join.getSingleSource();
        items.add(_singleSource);
    }
    return items;
}
Also used : JoinSource(com.robotoworks.mechanoid.db.sqliteModel.JoinSource) SingleSource(com.robotoworks.mechanoid.db.sqliteModel.SingleSource) JoinStatement(com.robotoworks.mechanoid.db.sqliteModel.JoinStatement)

Example 2 with JoinSource

use of com.robotoworks.mechanoid.db.sqliteModel.JoinSource in project mechanoid by robotoworks.

the class SelectExpressionImpl method basicSetSource.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public NotificationChain basicSetSource(JoinSource newSource, NotificationChain msgs) {
    JoinSource oldSource = source;
    source = newSource;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SqliteModelPackage.SELECT_EXPRESSION__SOURCE, oldSource, newSource);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : JoinSource(com.robotoworks.mechanoid.db.sqliteModel.JoinSource) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Example 3 with JoinSource

use of com.robotoworks.mechanoid.db.sqliteModel.JoinSource in project mechanoid by robotoworks.

the class SingleSourceJoinImpl method basicSetJoinSource.

/**
   * <!-- begin-user-doc -->
   * <!-- end-user-doc -->
   * @generated
   */
public NotificationChain basicSetJoinSource(JoinSource newJoinSource, NotificationChain msgs) {
    JoinSource oldJoinSource = joinSource;
    joinSource = newJoinSource;
    if (eNotificationRequired()) {
        ENotificationImpl notification = new ENotificationImpl(this, Notification.SET, SqliteModelPackage.SINGLE_SOURCE_JOIN__JOIN_SOURCE, oldJoinSource, newJoinSource);
        if (msgs == null)
            msgs = notification;
        else
            msgs.add(notification);
    }
    return msgs;
}
Also used : JoinSource(com.robotoworks.mechanoid.db.sqliteModel.JoinSource) ENotificationImpl(org.eclipse.emf.ecore.impl.ENotificationImpl)

Aggregations

JoinSource (com.robotoworks.mechanoid.db.sqliteModel.JoinSource)3 ENotificationImpl (org.eclipse.emf.ecore.impl.ENotificationImpl)2 JoinStatement (com.robotoworks.mechanoid.db.sqliteModel.JoinStatement)1 SingleSource (com.robotoworks.mechanoid.db.sqliteModel.SingleSource)1