當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。