diff options
author | Tim Roes <tim.roes88@googlemail.com> | 2013-01-22 23:12:11 +0100 |
---|---|---|
committer | Tim Roes <tim.roes88@googlemail.com> | 2013-01-25 16:58:47 +0000 |
commit | fd02074fdd12039e905a515941ffd9a757f671c2 (patch) | |
tree | 0a86a07471e4d2f2ef9ed46cbadb9e2072e2ad0b /core/java/android | |
parent | 6458d9b1b283590b5ced3c8982c4ea2e2a39cf2e (diff) | |
download | frameworks_base-fd02074fdd12039e905a515941ffd9a757f671c2.zip frameworks_base-fd02074fdd12039e905a515941ffd9a757f671c2.tar.gz frameworks_base-fd02074fdd12039e905a515941ffd9a757f671c2.tar.bz2 |
Complete documentation of whereArgs (Issue #43061)
Complete the missing documentation for the
whereArgs argument in delete, update and
updateWithOnConflict
Update: Removed trailing spaces
Change-Id: I451ec9e0747c7655c612a4506f40152af0adcf3a
Signed-off-by: Tim Roes <tim.roes88@googlemail.com>
Diffstat (limited to 'core/java/android')
-rw-r--r-- | core/java/android/database/sqlite/SQLiteDatabase.java | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/core/java/android/database/sqlite/SQLiteDatabase.java b/core/java/android/database/sqlite/SQLiteDatabase.java index e2d44f2..60ccc61 100644 --- a/core/java/android/database/sqlite/SQLiteDatabase.java +++ b/core/java/android/database/sqlite/SQLiteDatabase.java @@ -1481,6 +1481,9 @@ public final class SQLiteDatabase extends SQLiteClosable { * @param table the table to delete from * @param whereClause the optional WHERE clause to apply when deleting. * Passing null will delete all rows. + * @param whereArgs You may include ?s in the where clause, which + * will be replaced by the values from whereArgs. The values + * will be bound as Strings. * @return the number of rows affected if a whereClause is passed in, 0 * otherwise. To remove all rows and get a count pass "1" as the * whereClause. @@ -1508,6 +1511,9 @@ public final class SQLiteDatabase extends SQLiteClosable { * valid value that will be translated to NULL. * @param whereClause the optional WHERE clause to apply when updating. * Passing null will update all rows. + * @param whereArgs You may include ?s in the where clause, which + * will be replaced by the values from whereArgs. The values + * will be bound as Strings. * @return the number of rows affected */ public int update(String table, ContentValues values, String whereClause, String[] whereArgs) { @@ -1522,6 +1528,9 @@ public final class SQLiteDatabase extends SQLiteClosable { * valid value that will be translated to NULL. * @param whereClause the optional WHERE clause to apply when updating. * Passing null will update all rows. + * @param whereArgs You may include ?s in the where clause, which + * will be replaced by the values from whereArgs. The values + * will be bound as Strings. * @param conflictAlgorithm for update conflict resolver * @return the number of rows affected */ |