public List<DbModel> findDbModelAll(DbModelSelector selector) throws DbException { if (!tableIsExist(selector.getEntityType())) return null; List<DbModel> dbModelList = new ArrayList<DbModel>(); Cursor cursor = execQuery(selector.toString()); if (cursor != null) { try { while (cursor.moveToNext()) { dbModelList.add(CursorUtils.getDbModel(cursor)); } } catch (Throwable e) { throw new DbException(e); } finally { IOUtils.closeQuietly(cursor); } } return dbModelList; }