MCPcopy Index your code
hub / github.com/Sopage/android-orm / queryList

Method queryList

library/src/main/java/com/sanders/db/DBProxy.java:501–509  ·  view source on GitHub ↗

更具条件插叙实体集合 @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)

Source from the content-addressed store, hash-verified

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 * 分页查询实体集合

Callers

nothing calls this directly

Calls 7

getClassInfoMethod · 0.95
getDatabaseMethod · 0.95
closeMethod · 0.95
putMapKeyValueMethod · 0.95
queryMethod · 0.80
getTableNameMethod · 0.80
getInstanceListMethod · 0.80

Tested by

no test coverage detected