use of com.robotoworks.mechanoid.db.sqliteModel.DDLStatement in project mechanoid by robotoworks.
the class ModelUtil method getConfigInitViews.
public static Collection<CreateViewStatement> getConfigInitViews(final Model model) {
final ArrayList<CreateViewStatement> items = Lists.<CreateViewStatement>newArrayList();
DatabaseBlock _database = model.getDatabase();
InitBlock _init = _database.getInit();
boolean _notEquals = (!Objects.equal(_init, null));
if (_notEquals) {
DatabaseBlock _database_1 = model.getDatabase();
InitBlock _init_1 = _database_1.getInit();
EList<DDLStatement> _statements = _init_1.getStatements();
Iterable<CreateViewStatement> _filter = Iterables.<CreateViewStatement>filter(_statements, CreateViewStatement.class);
Iterables.<CreateViewStatement>addAll(items, _filter);
}
return items;
}
Aggregations