Search in sources :

Example 1 with JoinStatement

use of com.robotoworks.mechanoid.db.sqliteModel.JoinStatement 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)

Aggregations

JoinSource (com.robotoworks.mechanoid.db.sqliteModel.JoinSource)1 JoinStatement (com.robotoworks.mechanoid.db.sqliteModel.JoinStatement)1 SingleSource (com.robotoworks.mechanoid.db.sqliteModel.SingleSource)1