How to do a select all using GreenDAO? How to do a select all using GreenDAO? sqlite sqlite

How to do a select all using GreenDAO?


GreenDAO already comes with a built-in method for achieve this task. In your case:

List<AppTimeUsage> items = appTimeUsageDao.loadAll();

This will select all records from APP_TIME_USAGE and return a List<AppTimeUsage> containing the entities.