我需要做的几行插入在一个事务中。我可以做它的ContentProvider?
I need to make insert of few rows in one transaction. Can I do it with ContentProvider?
在客户端, ContentResolver的
支持 bulkInsert()
方法。这些不一定会在一个事务中的的ContentProvider
,只是因为有可能不被执行的任何交易的ContentProvider 。
On the client side, ContentResolver
supports a bulkInsert()
method. Those will not necessarily be processed in a single transaction by the ContentProvider
, simply because there may not be any transactions performed by the ContentProvider
.