本文介绍了多行插入带的ContentProvider的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要做的几行插入在一个事务中。我可以做它的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.

这篇关于多行插入带的ContentProvider的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-20 15:06