当前位置: 首页>>代码示例>>Java>>正文


Java AbstractDao类代码示例

本文整理汇总了Java中de.greenrobot.dao.AbstractDao的典型用法代码示例。如果您正苦于以下问题:Java AbstractDao类的具体用法?Java AbstractDao怎么用?Java AbstractDao使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


AbstractDao类属于de.greenrobot.dao包,在下文中一共展示了AbstractDao类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: DaoSession

import de.greenrobot.dao.AbstractDao; //导入依赖的package包/类
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    beanDaoConfig = daoConfigMap.get(BeanDao.class).clone();
    beanDaoConfig.initIdentityScope(type);

    conversationDaoConfig = daoConfigMap.get(ConversationDao.class).clone();
    conversationDaoConfig.initIdentityScope(type);

    userDaoConfig = daoConfigMap.get(UserDao.class).clone();
    userDaoConfig.initIdentityScope(type);

    schoolmateDaoConfig = daoConfigMap.get(SchoolmateDao.class).clone();
    schoolmateDaoConfig.initIdentityScope(type);

    beanDao = new BeanDao(beanDaoConfig, this);
    conversationDao = new ConversationDao(conversationDaoConfig, this);
    userDao = new UserDao(userDaoConfig, this);
    schoolmateDao = new SchoolmateDao(schoolmateDaoConfig, this);

    registerDao(Bean.class, beanDao);
    registerDao(Conversation.class, conversationDao);
    registerDao(User.class, userDao);
    registerDao(Schoolmate.class, schoolmateDao);
}
 
开发者ID:zuoweitan,项目名称:Hitalk,代码行数:27,代码来源:DaoSession.java

示例2: DaoSession

import de.greenrobot.dao.AbstractDao; //导入依赖的package包/类
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    appDataDaoConfig = daoConfigMap.get(AppDataDao.class).clone();
    appDataDaoConfig.initIdentityScope(type);

    historyDataDaoConfig = daoConfigMap.get(HistoryDataDao.class).clone();
    historyDataDaoConfig.initIdentityScope(type);

    mineDataDaoConfig = daoConfigMap.get(MineDataDao.class).clone();
    mineDataDaoConfig.initIdentityScope(type);

    appDataDao = new AppDataDao(appDataDaoConfig, this);
    historyDataDao = new HistoryDataDao(historyDataDaoConfig, this);
    mineDataDao = new MineDataDao(mineDataDaoConfig, this);

    registerDao(AppData.class, appDataDao);
    registerDao(HistoryData.class, historyDataDao);
    registerDao(MineData.class, mineDataDao);
}
 
开发者ID:WeiMei-Tian,项目名称:editor-sql,代码行数:22,代码来源:DaoSession.java

示例3: DaoSession

import de.greenrobot.dao.AbstractDao; //导入依赖的package包/类
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    noteDaoConfig = daoConfigMap.get(NoteDao.class).clone();
    noteDaoConfig.initIdentityScope(type);

    tagDaoConfig = daoConfigMap.get(TagDao.class).clone();
    tagDaoConfig.initIdentityScope(type);

    noteDao = new NoteDao(noteDaoConfig, this);
    tagDao = new TagDao(tagDaoConfig, this);

    registerDao(Note.class, noteDao);
    registerDao(Tag.class, tagDao);
}
 
开发者ID:lpy19930103,项目名称:MinimalismJotter,代码行数:17,代码来源:DaoSession.java

示例4: DaoSession

import de.greenrobot.dao.AbstractDao; //导入依赖的package包/类
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    //MEMBERS ITEM
    restaurantImageDaoConfig = daoConfigMap.get(RestaurantImageDao.class).clone();
    restaurantImageDaoConfig.initIdentityScope(type);
    restaurantImageDao = new RestaurantImageDao(restaurantImageDaoConfig, this);
    registerDao(RestaurantImage.class, restaurantImageDao);

    //MEMBERS ITEM
    photoItemDaoConfig = daoConfigMap.get(PhotoItemDao.class).clone();
    photoItemDaoConfig.initIdentityScope(type);
    photoItemDao = new PhotoItemDao(photoItemDaoConfig, this);
    registerDao(PhotoItem.class, photoItemDao);

    //TODO ADD HERE
}
 
开发者ID:PacktPublishing,项目名称:Expert-Android-Programming,代码行数:19,代码来源:DaoSession.java

示例5: DaoSession

import de.greenrobot.dao.AbstractDao; //导入依赖的package包/类
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    userDaoConfig = daoConfigMap.get(UserDao.class).clone();
    userDaoConfig.initIdentityScope(type);

    userAuthDaoConfig = daoConfigMap.get(UserAuthDao.class).clone();
    userAuthDaoConfig.initIdentityScope(type);

    musicDaoConfig = daoConfigMap.get(MusicDao.class).clone();
    musicDaoConfig.initIdentityScope(type);

    userDao = new UserDao(userDaoConfig, this);
    userAuthDao = new UserAuthDao(userAuthDaoConfig, this);
    musicDao = new MusicDao(musicDaoConfig, this);

    registerDao(User.class, userDao);
    registerDao(UserAuth.class, userAuthDao);
    registerDao(Music.class, musicDao);
}
 
开发者ID:DroidKOF,项目名称:pineapple,代码行数:22,代码来源:DaoSession.java

示例6: DaoSession

import de.greenrobot.dao.AbstractDao; //导入依赖的package包/类
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    operatorsDaoConfig = daoConfigMap.get(operatorsDao.class).clone();
    operatorsDaoConfig.initIdentityScope(type);

    alloperatorsDaoConfig = daoConfigMap.get(alloperatorsDao.class).clone();
    alloperatorsDaoConfig.initIdentityScope(type);

    operatorsDao = new operatorsDao(operatorsDaoConfig, this);
    alloperatorsDao = new alloperatorsDao(alloperatorsDaoConfig, this);

    registerDao(operators.class, operatorsDao);
    registerDao(alloperators.class, alloperatorsDao);
}
 
开发者ID:cowthan,项目名称:AyoRxJava,代码行数:17,代码来源:DaoSession.java

示例7: DaoSession

import de.greenrobot.dao.AbstractDao; //导入依赖的package包/类
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    configDaoConfig = daoConfigMap.get(ConfigDao.class).clone();
    configDaoConfig.initIdentityScope(type);

    parentDaoConfig = daoConfigMap.get(ParentDao.class).clone();
    parentDaoConfig.initIdentityScope(type);

    configDao = new ConfigDao(configDaoConfig, this);
    parentDao = new ParentDao(parentDaoConfig, this);

    registerDao(Config.class, configDao);
    registerDao(Parent.class, parentDao);
}
 
开发者ID:tengbinlive,项目名称:ooooim_android,代码行数:17,代码来源:DaoSession.java

示例8: DaoSession

import de.greenrobot.dao.AbstractDao; //导入依赖的package包/类
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    htmlCacheDaoConfig = daoConfigMap.get(HtmlCacheDao.class).clone();
    htmlCacheDaoConfig.initIdentityScope(type);

    articleTypeDaoConfig = daoConfigMap.get(ArticleTypeDao.class).clone();
    articleTypeDaoConfig.initIdentityScope(type);

    articleItemCacheDaoConfig = daoConfigMap.get(ArticleItemCacheDao.class).clone();
    articleItemCacheDaoConfig.initIdentityScope(type);

    htmlCacheDao = new HtmlCacheDao(htmlCacheDaoConfig, this);
    articleTypeDao = new ArticleTypeDao(articleTypeDaoConfig, this);
    articleItemCacheDao = new ArticleItemCacheDao(articleItemCacheDaoConfig, this);

    registerDao(HtmlCache.class, htmlCacheDao);
    registerDao(ArticleType.class, articleTypeDao);
    registerDao(ArticleItemCache.class, articleItemCacheDao);
}
 
开发者ID:Thereisnospon,项目名称:BlogReader,代码行数:22,代码来源:DaoSession.java

示例9: DaoSession

import de.greenrobot.dao.AbstractDao; //导入依赖的package包/类
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    htmlEntityDaoConfig = daoConfigMap.get(HtmlEntityDao.class).clone();
    htmlEntityDaoConfig.initIdentityScope(type);

    collectEntityDaoConfig = daoConfigMap.get(CollectEntityDao.class).clone();
    collectEntityDaoConfig.initIdentityScope(type);

    htmlEntityDao = new HtmlEntityDao(htmlEntityDaoConfig, this);
    collectEntityDao = new CollectEntityDao(collectEntityDaoConfig, this);

    registerDao(HtmlEntity.class, htmlEntityDao);
    registerDao(CollectEntity.class, collectEntityDao);
}
 
开发者ID:qq137712630,项目名称:MeiZiNews,代码行数:17,代码来源:DaoSession.java

示例10: DaoSession

import de.greenrobot.dao.AbstractDao; //导入依赖的package包/类
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    resultEntityDaoConfig = daoConfigMap.get(ResultEntityDao.class).clone();
    resultEntityDaoConfig.initIdentityScope(type);

    channelEntityDaoConfig = daoConfigMap.get(ChannelEntityDao.class).clone();
    channelEntityDaoConfig.initIdentityScope(type);

    resultEntityDao = new ResultEntityDao(resultEntityDaoConfig, this);
    channelEntityDao = new ChannelEntityDao(channelEntityDaoConfig, this);

    registerDao(ResultEntity.class, resultEntityDao);
    registerDao(ChannelEntity.class, channelEntityDao);
}
 
开发者ID:yuqirong,项目名称:RxNews,代码行数:17,代码来源:DaoSession.java

示例11: DaoSession

import de.greenrobot.dao.AbstractDao; //导入依赖的package包/类
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    provinceDaoConfig = daoConfigMap.get(ProvinceDao.class).clone();
    provinceDaoConfig.initIdentityScope(type);

    cityDaoConfig = daoConfigMap.get(CityDao.class).clone();
    cityDaoConfig.initIdentityScope(type);

    districtDaoConfig = daoConfigMap.get(DistrictDao.class).clone();
    districtDaoConfig.initIdentityScope(type);

    provinceDao = new ProvinceDao(provinceDaoConfig, this);
    cityDao = new CityDao(cityDaoConfig, this);
    districtDao = new DistrictDao(districtDaoConfig, this);

    registerDao(Province.class, provinceDao);
    registerDao(City.class, cityDao);
    registerDao(District.class, districtDao);
}
 
开发者ID:xsingHu,项目名称:xs-android-architecture,代码行数:22,代码来源:DaoSession.java

示例12: DaoSession

import de.greenrobot.dao.AbstractDao; //导入依赖的package包/类
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    blackListDaoConfig = daoConfigMap.get(BlackListDao.class).clone();
    blackListDaoConfig.initIdentityScope(type);

    interceptListDaoConfig = daoConfigMap.get(InterceptListDao.class).clone();
    interceptListDaoConfig.initIdentityScope(type);

    blackListDao = new BlackListDao(blackListDaoConfig, this);
    interceptListDao = new InterceptListDao(interceptListDaoConfig, this);

    registerDao(BlackList.class, blackListDao);
    registerDao(InterceptList.class, interceptListDao);
}
 
开发者ID:CytQ,项目名称:NotificationManageTool,代码行数:17,代码来源:DaoSession.java

示例13: DaoSession

import de.greenrobot.dao.AbstractDao; //导入依赖的package包/类
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    configDaoConfig = daoConfigMap.get(ConfigDao.class).clone();
    configDaoConfig.initIdentityScope(type);

    userActionDaoConfig = daoConfigMap.get(UserActionDao.class).clone();
    userActionDaoConfig.initIdentityScope(type);

    parentDaoConfig = daoConfigMap.get(ParentDao.class).clone();
    parentDaoConfig.initIdentityScope(type);

    configDao = new ConfigDao(configDaoConfig, this);
    userActionDao = new UserActionDao(userActionDaoConfig, this);
    parentDao = new ParentDao(parentDaoConfig, this);

    registerDao(Config.class, configDao);
    registerDao(UserAction.class, userActionDao);
    registerDao(Parent.class, parentDao);
}
 
开发者ID:tengbinlive,项目名称:aibao_demo,代码行数:22,代码来源:DaoSession.java

示例14: DaoSession

import de.greenrobot.dao.AbstractDao; //导入依赖的package包/类
public DaoSession(SQLiteDatabase db, IdentityScopeType type,
                  Map<Class<? extends AbstractDao<?, ?>>, DaoConfig> daoConfigMap) {
    super(db);

    WordDaoConfig = daoConfigMap.get(WordDao.class).clone();
    WordDaoConfig.initIdentityScope(type);

    FavDaoConfig = daoConfigMap.get(FavDao.class).clone();
    FavDaoConfig.initIdentityScope(type);

    AntDaoConfig = daoConfigMap.get(AntDao.class).clone();
    AntDaoConfig.initIdentityScope(type);

    wordDao = new WordDao(WordDaoConfig, this);
    favDao = new FavDao(FavDaoConfig, this);
    antDao = new AntDao(AntDaoConfig, this);

    registerDao(Word.class, wordDao);
    registerDao(Favourite.class, favDao);
    registerDao(Antonym.class, antDao);

}
 
开发者ID:angeldove,项目名称:vocabpedia,代码行数:23,代码来源:DaoSession.java

示例15: DaoSession

import de.greenrobot.dao.AbstractDao; //导入依赖的package包/类
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    categoryDaoConfig = daoConfigMap.get(CategoryDao.class).clone();
    categoryDaoConfig.initIdentityScope(type);

    startPointDaoConfig = daoConfigMap.get(StartPointDao.class).clone();
    startPointDaoConfig.initIdentityScope(type);

    creatorDaoConfig = daoConfigMap.get(CreatorDao.class).clone();
    creatorDaoConfig.initIdentityScope(type);

    bikesParkingPoisDaoConfig = daoConfigMap.get(BikesParkingPoisDao.class).clone();
    bikesParkingPoisDaoConfig.initIdentityScope(type);

    categoryDao = new CategoryDao(categoryDaoConfig, this);
    startPointDao = new StartPointDao(startPointDaoConfig, this);
    creatorDao = new CreatorDao(creatorDaoConfig, this);
    bikesParkingPoisDao = new BikesParkingPoisDao(bikesParkingPoisDaoConfig, this);

    registerDao(Category.class, categoryDao);
    registerDao(StartPoint.class, startPointDao);
    registerDao(Creator.class, creatorDao);
    registerDao(BikesParkingPois.class, bikesParkingPoisDao);
}
 
开发者ID:premsot,项目名称:CreativeTourismThessaloniki,代码行数:27,代码来源:DaoSession.java


注:本文中的de.greenrobot.dao.AbstractDao类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。