org.greenrobot.greendao.identityscope.IdentityScopeType Java Examples

The following examples show how to use org.greenrobot.greendao.identityscope.IdentityScopeType. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DaoSession.java    From Android-IM with Apache License 2.0 6 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

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

    searchAddDaoConfig = daoConfigMap.get(SearchAddDao.class).clone();
    searchAddDaoConfig.initIdentityScope(type);

    requestListDaoConfig = daoConfigMap.get(RequestListDao.class).clone();
    requestListDaoConfig.initIdentityScope(type);

    chatLogDaoConfig = daoConfigMap.get(ChatLogDao.class).clone();
    chatLogDaoConfig.initIdentityScope(type);

    userDao = new UserDao(userDaoConfig, this);
    searchAddDao = new SearchAddDao(searchAddDaoConfig, this);
    requestListDao = new RequestListDao(requestListDaoConfig, this);
    chatLogDao = new ChatLogDao(chatLogDaoConfig, this);

    registerDao(User.class, userDao);
    registerDao(SearchAdd.class, searchAddDao);
    registerDao(RequestList.class, requestListDao);
    registerDao(ChatLog.class, chatLogDao);
}
 
Example #2
Source File: DaoSession.java    From enjoyshop with Apache License 2.0 6 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    addressDaoConfig = daoConfigMap.get(AddressDao.class).clone();
    addressDaoConfig.initIdentityScope(type);

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

    addressDao = new AddressDao(addressDaoConfig, this);
    userDao = new UserDao(userDaoConfig, this);

    registerDao(Address.class, addressDao);
    registerDao(User.class, userDao);
}
 
Example #3
Source File: DaoSession.java    From likequanmintv with Apache License 2.0 6 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    itemColumnDaoConfig = daoConfigMap.get(ItemColumnDao.class).clone();
    itemColumnDaoConfig.initIdentityScope(type);

    liveCategoryDaoConfig = daoConfigMap.get(LiveCategoryDao.class).clone();
    liveCategoryDaoConfig.initIdentityScope(type);

    playBeanDaoConfig = daoConfigMap.get(PlayBeanDao.class).clone();
    playBeanDaoConfig.initIdentityScope(type);

    itemColumnDao = new ItemColumnDao(itemColumnDaoConfig, this);
    liveCategoryDao = new LiveCategoryDao(liveCategoryDaoConfig, this);
    playBeanDao = new PlayBeanDao(playBeanDaoConfig, this);

    registerDao(ItemColumn.class, itemColumnDao);
    registerDao(LiveCategory.class, liveCategoryDao);
    registerDao(PlayBean.class, playBeanDao);
}
 
Example #4
Source File: DaoSession.java    From MissZzzReader with Apache License 2.0 6 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    bookDaoConfig = daoConfigMap.get(BookDao.class).clone();
    bookDaoConfig.initIdentityScope(type);

    chapterDaoConfig = daoConfigMap.get(ChapterDao.class).clone();
    chapterDaoConfig.initIdentityScope(type);

    searchHistoryDaoConfig = daoConfigMap.get(SearchHistoryDao.class).clone();
    searchHistoryDaoConfig.initIdentityScope(type);

    bookDao = new BookDao(bookDaoConfig, this);
    chapterDao = new ChapterDao(chapterDaoConfig, this);
    searchHistoryDao = new SearchHistoryDao(searchHistoryDaoConfig, this);

    registerDao(Book.class, bookDao);
    registerDao(Chapter.class, chapterDao);
    registerDao(SearchHistory.class, searchHistoryDao);
}
 
Example #5
Source File: DaoSession.java    From easyweather with MIT License 6 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    cityEntityDaoConfig = daoConfigMap.get(CityEntityDao.class).clone();
    cityEntityDaoConfig.initIdentityScope(type);

    loveCityEntityDaoConfig = daoConfigMap.get(LoveCityEntityDao.class).clone();
    loveCityEntityDaoConfig.initIdentityScope(type);

    provinceEntityDaoConfig = daoConfigMap.get(ProvinceEntityDao.class).clone();
    provinceEntityDaoConfig.initIdentityScope(type);

    weatherEntityDaoConfig = daoConfigMap.get(WeatherEntityDao.class).clone();
    weatherEntityDaoConfig.initIdentityScope(type);

    cityEntityDao = new CityEntityDao(cityEntityDaoConfig, this);
    loveCityEntityDao = new LoveCityEntityDao(loveCityEntityDaoConfig, this);
    provinceEntityDao = new ProvinceEntityDao(provinceEntityDaoConfig, this);
    weatherEntityDao = new WeatherEntityDao(weatherEntityDaoConfig, this);

    registerDao(CityEntity.class, cityEntityDao);
    registerDao(LoveCityEntity.class, loveCityEntityDao);
    registerDao(ProvinceEntity.class, provinceEntityDao);
    registerDao(WeatherEntity.class, weatherEntityDao);
}
 
Example #6
Source File: DaoSession.java    From Pretty-Zhihu with Apache License 2.0 6 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    pictureDaoConfig = daoConfigMap.get(PictureDao.class).clone();
    pictureDaoConfig.initIdentityScope(type);

    questionDaoConfig = daoConfigMap.get(QuestionDao.class).clone();
    questionDaoConfig.initIdentityScope(type);

    pictureDao = new PictureDao(pictureDaoConfig, this);
    questionDao = new QuestionDao(questionDaoConfig, this);

    registerDao(Picture.class, pictureDao);
    registerDao(Question.class, questionDao);
}
 
Example #7
Source File: DaoSession.java    From Dictionary with Apache License 2.0 6 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    partDaoConfig = daoConfigMap.get(PartDao.class).clone();
    partDaoConfig.initIdentityScope(type);

    wordBeanDaoConfig = daoConfigMap.get(WordBeanDao.class).clone();
    wordBeanDaoConfig.initIdentityScope(type);

    partDao = new PartDao(partDaoConfig, this);
    wordBeanDao = new WordBeanDao(wordBeanDaoConfig, this);

    registerDao(Part.class, partDao);
    registerDao(WordBean.class, wordBeanDao);
}
 
Example #8
Source File: DaoSession.java    From KUtils-master with Apache License 2.0 6 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    isFirstEnterAppDaoConfig = daoConfigMap.get(IsFirstEnterAppDao.class).clone();
    isFirstEnterAppDaoConfig.initIdentityScope(type);

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

    isFirstEnterAppDao = new IsFirstEnterAppDao(isFirstEnterAppDaoConfig, this);
    userDao = new UserDao(userDaoConfig, this);

    registerDao(IsFirstEnterApp.class, isFirstEnterAppDao);
    registerDao(User.class, userDao);
}
 
Example #9
Source File: DaoSession.java    From KUtils with Apache License 2.0 6 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    isFirstEnterAppDaoConfig = daoConfigMap.get(IsFirstEnterAppDao.class).clone();
    isFirstEnterAppDaoConfig.initIdentityScope(type);

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

    isFirstEnterAppDao = new IsFirstEnterAppDao(isFirstEnterAppDaoConfig, this);
    userDao = new UserDao(userDaoConfig, this);

    registerDao(IsFirstEnterApp.class, isFirstEnterAppDao);
    registerDao(User.class, userDao);
}
 
Example #10
Source File: DaoSession.java    From PLDroidShortVideo with Apache License 2.0 6 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    magicPhotoEntityDaoConfig = daoConfigMap.get(MagicPhotoEntityDao.class).clone();
    magicPhotoEntityDaoConfig.initIdentityScope(type);

    avatarModelDaoConfig = daoConfigMap.get(AvatarModelDao.class).clone();
    avatarModelDaoConfig.initIdentityScope(type);

    magicPhotoEntityDao = new MagicPhotoEntityDao(magicPhotoEntityDaoConfig, this);
    avatarModelDao = new AvatarModelDao(avatarModelDaoConfig, this);

    registerDao(MagicPhotoEntity.class, magicPhotoEntityDao);
    registerDao(AvatarModel.class, avatarModelDao);
}
 
Example #11
Source File: DaoSession.java    From ClassSchedule with Apache License 2.0 6 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    courseGroupDaoConfig = daoConfigMap.get(CourseGroupDao.class).clone();
    courseGroupDaoConfig.initIdentityScope(type);

    courseV2DaoConfig = daoConfigMap.get(CourseV2Dao.class).clone();
    courseV2DaoConfig.initIdentityScope(type);

    courseGroupDao = new CourseGroupDao(courseGroupDaoConfig, this);
    courseV2Dao = new CourseV2Dao(courseV2DaoConfig, this);

    registerDao(CourseGroup.class, courseGroupDao);
    registerDao(CourseV2.class, courseV2Dao);
}
 
Example #12
Source File: DaoSession.java    From FimiX8-RE with MIT License 6 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig> daoConfigMap) {
    super(db);
    this.dataStaticInfoDaoConfig = ((DaoConfig) daoConfigMap.get(DataStaticInfoDao.class)).clone();
    this.dataStaticInfoDaoConfig.initIdentityScope(type);
    this.gH2DataStaticInfoDaoConfig = ((DaoConfig) daoConfigMap.get(GH2DataStaticInfoDao.class)).clone();
    this.gH2DataStaticInfoDaoConfig.initIdentityScope(type);
    this.mediaDownloadInfoDaoConfig = ((DaoConfig) daoConfigMap.get(MediaDownloadInfoDao.class)).clone();
    this.mediaDownloadInfoDaoConfig.initIdentityScope(type);
    this.studentDaoConfig = ((DaoConfig) daoConfigMap.get(StudentDao.class)).clone();
    this.studentDaoConfig.initIdentityScope(type);
    this.x8AiLinePointInfoDaoConfig = ((DaoConfig) daoConfigMap.get(X8AiLinePointInfoDao.class)).clone();
    this.x8AiLinePointInfoDaoConfig.initIdentityScope(type);
    this.x8AiLinePointLatlngInfoDaoConfig = ((DaoConfig) daoConfigMap.get(X8AiLinePointLatlngInfoDao.class)).clone();
    this.x8AiLinePointLatlngInfoDaoConfig.initIdentityScope(type);
    registerDao(DataStaticInfo.class, this.dataStaticInfoDao);
    registerDao(GH2DataStaticInfo.class, this.gH2DataStaticInfoDao);
    registerDao(MediaDownloadInfo.class, this.mediaDownloadInfoDao);
    registerDao(Student.class, this.studentDao);
    registerDao(X8AiLinePointInfo.class, this.x8AiLinePointInfoDao);
    registerDao(X8AiLinePointLatlngInfo.class, this.x8AiLinePointLatlngInfoDao);
}
 
Example #13
Source File: DaoSession.java    From AndroidFrame with Apache License 2.0 5 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    meiziDaoConfig = daoConfigMap.get(MeiziDao.class).clone();
    meiziDaoConfig.initIdentityScope(type);

    meiziDao = new MeiziDao(meiziDaoConfig, this);

    registerDao(Meizi.class, meiziDao);
}
 
Example #14
Source File: DaoSession.java    From GreenDaoSample with Apache License 2.0 5 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

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

    userDao = new UserDao(userDaoConfig, this);

    registerDao(User.class, userDao);
}
 
Example #15
Source File: DaoSession.java    From Memory-capsule with Apache License 2.0 5 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    noteBeanDaoConfig = daoConfigMap.get(NoteBeanDao.class).clone();
    noteBeanDaoConfig.initIdentityScope(type);

    noteBeanDao = new NoteBeanDao(noteBeanDaoConfig, this);

    registerDao(NoteBean.class, noteBeanDao);
}
 
Example #16
Source File: DaoSession.java    From SoloPi with Apache License 2.0 5 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    recordCaseInfoDaoConfig = daoConfigMap.get(RecordCaseInfoDao.class).clone();
    recordCaseInfoDaoConfig.initIdentityScope(type);

    recordCaseInfoDao = new RecordCaseInfoDao(recordCaseInfoDaoConfig, this);

    registerDao(RecordCaseInfo.class, recordCaseInfoDao);
}
 
Example #17
Source File: DaoSession.java    From CoolChat with Apache License 2.0 5 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    chatDaoConfig = daoConfigMap.get(ChatDao.class).clone();
    chatDaoConfig.initIdentityScope(type);

    contactDaoConfig = daoConfigMap.get(ContactDao.class).clone();
    contactDaoConfig.initIdentityScope(type);

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

    groupDaoConfig = daoConfigMap.get(GroupDao.class).clone();
    groupDaoConfig.initIdentityScope(type);

    groupUsersDaoConfig = daoConfigMap.get(GroupUsersDao.class).clone();
    groupUsersDaoConfig.initIdentityScope(type);

    chatDao = new ChatDao(chatDaoConfig, this);
    contactDao = new ContactDao(contactDaoConfig, this);
    conversationDao = new ConversationDao(conversationDaoConfig, this);
    groupDao = new GroupDao(groupDaoConfig, this);
    groupUsersDao = new GroupUsersDao(groupUsersDaoConfig, this);

    registerDao(Chat.class, chatDao);
    registerDao(Contact.class, contactDao);
    registerDao(Conversation.class, conversationDao);
    registerDao(Group.class, groupDao);
    registerDao(GroupUsers.class, groupUsersDao);
}
 
Example #18
Source File: DaoSession.java    From frpc-Android with Apache License 2.0 5 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    suiDaoDaoConfig = daoConfigMap.get(SuiDaoDao.class).clone();
    suiDaoDaoConfig.initIdentityScope(type);

    suiDaoDao = new SuiDaoDao(suiDaoDaoConfig, this);

    registerDao(SuiDao.class, suiDaoDao);
}
 
Example #19
Source File: DaoSession.java    From Study_Android_Demo with Apache License 2.0 5 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    userEntityDaoConfig = daoConfigMap.get(UserEntityDao.class).clone();
    userEntityDaoConfig.initIdentityScope(type);

    userEntityDao = new UserEntityDao(userEntityDaoConfig, this);

    registerDao(UserEntity.class, userEntityDao);
}
 
Example #20
Source File: DaoSession.java    From Awesome-WanAndroid with Apache License 2.0 5 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

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

    historyDataDao = new HistoryDataDao(historyDataDaoConfig, this);

    registerDao(HistoryData.class, historyDataDao);
}
 
Example #21
Source File: DaoSession.java    From GreenDAO3_Demo with Apache License 2.0 5 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    studentDaoConfig = daoConfigMap.get(StudentDao.class).clone();
    studentDaoConfig.initIdentityScope(type);

    studentDao = new StudentDao(studentDaoConfig, this);

    registerDao(Student.class, studentDao);
}
 
Example #22
Source File: DaoSession.java    From MaoWanAndoidClient with Apache License 2.0 5 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    searchHistoryDataDaoConfig = daoConfigMap.get(SearchHistoryDataDao.class).clone();
    searchHistoryDataDaoConfig.initIdentityScope(type);

    searchHistoryDataDao = new SearchHistoryDataDao(searchHistoryDataDaoConfig, this);

    registerDao(SearchHistoryData.class, searchHistoryDataDao);
}
 
Example #23
Source File: DaoSession.java    From Android-Architecture with Apache License 2.0 5 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    userModelDaoConfig = daoConfigMap.get(UserModelDao.class).clone();
    userModelDaoConfig.initIdentityScope(type);

    userModelDao = new UserModelDao(userModelDaoConfig, this);

    registerDao(UserModel.class, userModelDao);
}
 
Example #24
Source File: DaoSession.java    From PocketEOS-Android with GNU Lesser General Public License v3.0 5 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    userBeanDaoConfig = daoConfigMap.get(UserBeanDao.class).clone();
    userBeanDaoConfig.initIdentityScope(type);

    userBeanDao = new UserBeanDao(userBeanDaoConfig, this);

    registerDao(UserBean.class, userBeanDao);
}
 
Example #25
Source File: DaoSession.java    From CrazyDaily with Apache License 2.0 5 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    noteEntityDaoConfig = daoConfigMap.get(NoteEntityDao.class).clone();
    noteEntityDaoConfig.initIdentityScope(type);

    noteEntityDao = new NoteEntityDao(noteEntityDaoConfig, this);

    registerDao(NoteEntity.class, noteEntityDao);
}
 
Example #26
Source File: DaoSession.java    From KotlinMVPRxJava2Dagger2GreenDaoRetrofitDemo with Apache License 2.0 5 votes vote down vote up
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    myFavoriteDaoConfig = daoConfigMap.get(MyFavoriteDao.class).clone();
    myFavoriteDaoConfig.initIdentityScope(type);

    myFavoriteDao = new MyFavoriteDao(myFavoriteDaoConfig, this);

    registerDao(MyFavorite.class, myFavoriteDao);
}
 
Example #27
Source File: DaoMaster.java    From enjoyshop with Apache License 2.0 4 votes vote down vote up
public DaoSession newSession(IdentityScopeType type) {
    return new DaoSession(db, type, daoConfigMap);
}
 
Example #28
Source File: DaoMaster.java    From ClassSchedule with Apache License 2.0 4 votes vote down vote up
public DaoSession newSession(IdentityScopeType type) {
    return new DaoSession(db, type, daoConfigMap);
}
 
Example #29
Source File: DaoMaster.java    From Android-IM with Apache License 2.0 4 votes vote down vote up
public DaoSession newSession() {
    return new DaoSession(db, IdentityScopeType.Session, daoConfigMap);
}
 
Example #30
Source File: DaoMaster.java    From OpenHub with GNU General Public License v3.0 4 votes vote down vote up
public DaoSession newSession(IdentityScopeType type) {
    return new DaoSession(db, type, daoConfigMap);
}