新聞中心
DataAbilityUtils

創(chuàng)新互聯(lián)公司專業(yè)為企業(yè)提供南開網(wǎng)站建設(shè)、南開做網(wǎng)站、南開網(wǎng)站設(shè)計、南開網(wǎng)站制作等企業(yè)網(wǎng)站建設(shè)、網(wǎng)頁設(shè)計與制作、南開企業(yè)網(wǎng)站模板建站服務(wù),十年南開做網(wǎng)站經(jīng)驗,不只是建網(wǎng)站,更提供有價值的思路和整體網(wǎng)絡(luò)服務(wù)。
java.lang.Object
|---ohos.data.dataability.DataAbilityUtils
public class DataAbilityUtils
extends Object為數(shù)據(jù)庫操作提供靜態(tài)方法的實用程序類。
此類提供了從 DataAbilityPredicates 對象創(chuàng)建 OrmPredicates 和 RdbPredicates 對象的接口。
方法總結(jié)
| 修飾符和類型 | 方法 | 描述 |
|---|---|---|
| static |
createOrmPredicates(DataAbilityPredicates dataAbilityPredicates, Class |
從 DataAbilityPredicates 對象創(chuàng)建 OrmPredicates 對象。 |
| static RdbPredicates | createRdbPredicates(DataAbilityPredicates dataAbilityPredicates, String tableName) | 從 DataAbilityPredicates 對象創(chuàng)建 RdbPredicates 對象。 |
| 從類 java.lang.Object 繼承的方法 |
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
方法詳情
createRdbPredicates
public static RdbPredicates createRdbPredicates(DataAbilityPredicates dataAbilityPredicates, String tableName)
從 DataAbilityPredicates 對象創(chuàng)建 RdbPredicates 對象。
RdbPredicates 對象可用于執(zhí)行數(shù)據(jù)庫操作。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| dataAbilityPredicates | 指示用于創(chuàng)建 RdbPredicates 對象的 DataAbilityPredicates 對象。 |
| tableName | 表示表名。 |
返回:
返回 RdbPredicates 對象。
Throws:
| Throw名稱 | Throw描述 |
|---|---|
| IllegalArgumentException | 如果 tableName 為 null 或無法從 DataAbilityPredicates 對象創(chuàng)建 RdbPredicates 對象,則引發(fā)此異常。 |
createOrmPredicates
public static
從 DataAbilityPredicates 對象創(chuàng)建 OrmPredicates 對象。
OrmPredicates 對象可用于執(zhí)行數(shù)據(jù)庫操作。
參數(shù):
| 參數(shù)名稱 | 參數(shù)描述 |
|---|---|
| dataAbilityPredicates | 指示用于創(chuàng)建 OrmPredicates 對象的 DataAbilityPredicates 對象。 |
| klass | 表示類。 |
返回:
返回 OrmPredicates 對象。
Throws:
| Throw名稱 | Throw描述 |
|---|---|
| IllegalArgumentException | 如果 klass 為 null 或無法從 DataAbilityPredicates 對象創(chuàng)建 OrmPredicates 對象,則引發(fā)此異常。 |
網(wǎng)頁名稱:創(chuàng)新互聯(lián)鴻蒙OS教程:鴻蒙OSDataAbilityUtils
URL地址:http://www.fisionsoft.com.cn/article/djjicph.html


咨詢
建站咨詢
