summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Brown <jeffbrown@android.com>2013-02-08 23:49:51 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2013-02-08 23:49:51 +0000
commit5262a1082663610a888d1145fd9676f7db41d397 (patch)
treeee42e9522d4c97ec966e38f06d8b4064b8a7127d
parentfa49a6b13ebf496ea01d5981f69084596d06d464 (diff)
parentfd02074fdd12039e905a515941ffd9a757f671c2 (diff)
downloadbase-jb-mr1-dev-plus-aosp.tar.gz
Merge "Complete documentation of whereArgs (Issue #43061)"jb-mr1-dev-plus-aosp
-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 e2d44f2ab37b..60ccc6180eb6 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
*/