summaryrefslogtreecommitdiffstats
path: root/core/java/android/database
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@android.com>2013-02-08 17:03:42 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2013-02-08 17:03:42 -0800
commiteaf2ec0c6a50f9e24d36f6d1fac9c2e6543fc5f2 (patch)
tree7e14a267c70ddbc0b7a8d073d29cfc179ff230bc /core/java/android/database
parentd5c921f2cf3bc5a33d4d3b650b220cafbdfb6813 (diff)
parent4fd60792473711a10dc9b27faa1a35efe9e4d6a0 (diff)
downloadframeworks_base-eaf2ec0c6a50f9e24d36f6d1fac9c2e6543fc5f2.zip
frameworks_base-eaf2ec0c6a50f9e24d36f6d1fac9c2e6543fc5f2.tar.gz
frameworks_base-eaf2ec0c6a50f9e24d36f6d1fac9c2e6543fc5f2.tar.bz2
am 4fd60792: am 5262a108: Merge "Complete documentation of whereArgs (Issue #43061)"
# By Tim Roes # Via Android Git Automerger (1) and others * commit '4fd60792473711a10dc9b27faa1a35efe9e4d6a0': Complete documentation of whereArgs (Issue #43061)
Diffstat (limited to 'core/java/android/database')
-rw-r--r--core/java/android/database/sqlite/SQLiteDatabase.java9
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
*/