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;
}
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;
}
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;
}
Aggregations