本文整理汇总了Java中nl.qbusict.cupboard.CupboardFactory类的典型用法代码示例。如果您正苦于以下问题:Java CupboardFactory类的具体用法?Java CupboardFactory怎么用?Java CupboardFactory使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
CupboardFactory类属于nl.qbusict.cupboard包,在下文中一共展示了CupboardFactory类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: withDefault
import nl.qbusict.cupboard.CupboardFactory; //导入依赖的package包/类
public static RxDatabase withDefault(SQLiteDatabase db) {
return new RxDatabase(CupboardFactory.cupboard(), CupboardFactory.cupboard().withDatabase(db), db);
}
示例2: putServer
import nl.qbusict.cupboard.CupboardFactory; //导入依赖的package包/类
public static Uri putServer(Context context, ServerEntity server) {
Uri uri = CupboardFactory.cupboard().withContext(context).put(AppContract.SERVER_URI, server);
return uri;
}
示例3: getServerByRowId
import nl.qbusict.cupboard.CupboardFactory; //导入依赖的package包/类
public static ServerEntity getServerByRowId(Context context, long rowId) {
Uri uri = ContentUris.withAppendedId(AppContract.SERVER_URI, rowId);
ServerEntity server = CupboardFactory.cupboard().withContext(context).get(uri, ServerEntity.class);
return server;
}
示例4: getServers
import nl.qbusict.cupboard.CupboardFactory; //导入依赖的package包/类
public static List<ServerEntity> getServers(Context context) {
ProviderCompartment.QueryBuilder queryBuilder = CupboardFactory.cupboard().withContext(context).query(AppContract.SERVER_URI, ServerEntity.class);
List<ServerEntity> serverList = queryBuilder.list();
queryBuilder.orderBy(BaseColumns._ID + " ASC");
return serverList;
}