@Override
public void transactionSuccess() {
try {
ContentProviderResult[] cpr = context.getContentResolver().applyBatch(
dsUri.getAuthority(), trans);
if(cpr == null || cpr.length != trans.size()){
throw new DaoException();
}
for (int i = 0; i < cpr.length; i++) {
if (cpr[i] == null || ( cpr[i].count == null && cpr[i].uri == null)) {
throw new DaoException();
}
}
} catch (RemoteException | OperationApplicationException e) {
throw new DaoException();
} finally {
trans = null;
}
}
ContentProviderEngine.java 文件源码
java
阅读 39
收藏 0
点赞 0
评论 0
项目:sorm
作者:
评论列表
文章目录