掃二維碼與項目經(jīng)理溝通
我們在微信上24小時期待你的聲音
解答本文疑問/技術咨詢/運營咨詢/技術建議/互聯(lián)網(wǎng)交流

創(chuàng)新互聯(lián)公司專業(yè)為企業(yè)提供南開網(wǎng)站建設、南開做網(wǎng)站、南開網(wǎng)站設計、南開網(wǎng)站制作等企業(yè)網(wǎng)站建設、網(wǎng)頁設計與制作、南開企業(yè)網(wǎng)站模板建站服務,十年南開做網(wǎng)站經(jīng)驗,不只是建網(wǎng)站,更提供有價值的思路和整體網(wǎng)絡服務。
java.lang.Object
|---ohos.data.dataability.DataAbilityUtils
public class DataAbilityUtils
extends Object為數(shù)據(jù)庫操作提供靜態(tài)方法的實用程序類。
此類提供了從 DataAbilityPredicates 對象創(chuàng)建 OrmPredicates 和 RdbPredicates 對象的接口。
| 修飾符和類型 | 方法 | 描述 |
|---|---|---|
| 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 |
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ā)此異常。 |
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ā)此異常。 |

我們在微信上24小時期待你的聲音
解答本文疑問/技術咨詢/運營咨詢/技術建議/互聯(lián)網(wǎng)交流