更具条件插叙实体集合 @param clazz @param selection @param selectionArgs @param groupBy @param having @param orderBy @param limit @param @return
(Class<T> clazz, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit)
| 499 | * @return |
| 500 | */ |
| 501 | public <T extends IDColumn> List<T> queryList(Class<T> clazz, String selection, String[] selectionArgs, String groupBy, String having, String orderBy, String limit) { |
| 502 | ClassInfo<T> classInfo = getClassInfo(clazz); |
| 503 | SQLiteDatabase database = getDatabase(); |
| 504 | Cursor cursor = database.query(classInfo.getTableName(), null, selection, selectionArgs, groupBy, having, orderBy, limit); |
| 505 | List<T> list = classInfo.getInstanceList(cursor); |
| 506 | close(cursor); |
| 507 | close(database); |
| 508 | return list; |
| 509 | } |
| 510 | |
| 511 | /** |
| 512 | * 分页查询实体集合 |
nothing calls this directly
no test coverage detected