Search in sources :

Example 1 with QueryBuilder

use of com.litesuits.orm.db.assit.QueryBuilder in project Meizhi by drakeet.

the class MainActivity method onCreate.

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    ButterKnife.bind(this);
    mMeizhiList = new ArrayList<>();
    QueryBuilder query = new QueryBuilder(Meizhi.class);
    query.appendOrderDescBy("publishedAt");
    query.limit(0, 10);
    mMeizhiList.addAll(App.sDb.query(query));
    setupRecyclerView();
    setupUmeng();
    AlarmManagers.register(this);
}
Also used : QueryBuilder(com.litesuits.orm.db.assit.QueryBuilder)

Aggregations

QueryBuilder (com.litesuits.orm.db.assit.QueryBuilder)1