Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
swdev:android:database_sqlite [2018/05/01 16:08] smayr [MainActivity] |
swdev:android:database_sqlite [2018/05/02 20:30] (current) smayr [Database Utils] |
||
---|---|---|---|
Line 222: | Line 222: | ||
//String selection = DbContract.TeamEntry.COL_NAME + " = ?"; | //String selection = DbContract.TeamEntry.COL_NAME + " = ?"; | ||
//String[] selectionArgs = { "My Team" }; | //String[] selectionArgs = { "My Team" }; | ||
+ | String selection = null; // no filters | ||
+ | String[] selectionArgs = null; // no filters | ||
// How you want the results sorted in the resulting Cursor | // How you want the results sorted in the resulting Cursor | ||
Line 230: | Line 232: | ||
DbContract.TeamEntry.TABLE_NAME, | DbContract.TeamEntry.TABLE_NAME, | ||
projection, | projection, | ||
- | | + | selection, |
- | | + | selectionArgs, |
- | //selectionArgs, | + | |
- | null, | + | |
null, // don't group the rows | null, // don't group the rows | ||
null, // don't filter by row groups | null, // don't filter by row groups | ||
Line 270: | Line 270: | ||
//String selection = DbContract.TeamEntry.COL_NAME + " = ?"; | //String selection = DbContract.TeamEntry.COL_NAME + " = ?"; | ||
//String[] selectionArgs = { "My Team" }; | //String[] selectionArgs = { "My Team" }; | ||
+ | String selection = null; // no filters | ||
+ | String[] selectionArgs = null; // no filters | ||
// How you want the results sorted in the resulting Cursor | // How you want the results sorted in the resulting Cursor | ||
Line 279: | Line 281: | ||
projection, | projection, | ||
// | // | ||
- | null, | ||
// | // | ||
- | null, | ||
null, // don't group the rows | null, // don't group the rows | ||
null, // don't filter by row groups | null, // don't filter by row groups |