summaryrefslogtreecommitdiff
path: root/libs/rs/rsg_ScriptJavaClass.cpp
diff options
context:
space:
mode:
authorVasu Nori <vnori@google.com>2010-01-27 14:31:24 -0800
committerVasu Nori <vnori@google.com>2010-01-29 12:24:28 -0800
commit6eb7c45a8fdb774c4094b5012c8496f2a009c032 (patch)
tree0763573ab8e0df9bb6e45a1cb02c66fc7023fe72 /libs/rs/rsg_ScriptJavaClass.cpp
parent35ec7863e18ce3d242010b76a50df5a8c285325b (diff)
make SqliteDatabase ConflictAlgorithm and associated methods public.
SQLiteDatabase.java has ConflictAlgorithm which allows callers to specify actions to take when insert or update causes constraint violations. These actions are documented at http://www.sqlite.org/lang_conflict.html. why make these public? usecase is the following: Gmail has a table with a column "_id" being the integer primary key and they let sqlite assign key values to the column. but there is another UNIQUE key column (message_id) in the table. so an insert could fail due to constraint violation on the message_id column (i.e., not on the primary key). and when that happens, they would like to get the value of _id that caused constraint violation. currently hidden method insertOnConflict() already provides the above functionality. that means exposing ConflictAlgorithm also.
Diffstat (limited to 'libs/rs/rsg_ScriptJavaClass.cpp')
0 files changed, 0 insertions, 0 deletions