Ejemplo n.º 1
0
  public DaoSession(
      SQLiteDatabase db,
      IdentityScopeType type,
      Map<Class<? extends AbstractDao<?, ?>>, DaoConfig> daoConfigMap) {
    super(db);

    employeeDaoConfig = daoConfigMap.get(EmployeeDao.class).clone();
    employeeDaoConfig.initIdentityScope(type);

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

    employeeDao = new EmployeeDao(employeeDaoConfig, this);
    userDao = new UserDao(userDaoConfig, this);

    registerDao(Employee.class, employeeDao);
    registerDao(User.class, userDao);
  }
Ejemplo n.º 2
0
  public DaoSession(
      SQLiteDatabase db,
      IdentityScopeType type,
      Map<Class<? extends AbstractDao<?, ?>>, DaoConfig> daoConfigMap) {
    super(db);

    classTableDaoConfig = daoConfigMap.get(ClassTableDao.class).clone();
    classTimeDaoConfig = daoConfigMap.get(ClassTimeDao.class).clone();
    subjectDaoConfig = daoConfigMap.get(SubjectDao.class).clone();
    noteDaoConfig = daoConfigMap.get(NoteDao.class).clone();
    teacherDaoConfig = daoConfigMap.get(TeacherDao.class).clone();
    taskDaoConfig = daoConfigMap.get(TaskDao.class).clone();
    classTableDaoConfig.initIdentityScope(type);
    classTimeDaoConfig.initIdentityScope(type);
    subjectDaoConfig.initIdentityScope(type);
    noteDaoConfig.initIdentityScope(type);
    teacherDaoConfig.initIdentityScope(type);
    taskDaoConfig.initIdentityScope(type);

    classTableDao = new ClassTableDao(classTableDaoConfig, this);
    classTimeDao = new ClassTimeDao(classTimeDaoConfig, this);
    subjectDao = new SubjectDao(subjectDaoConfig, this);
    noteDao = new NoteDao(noteDaoConfig, this);
    teacherDao = new TeacherDao(teacherDaoConfig, this);
    taskDao = new TaskDao(taskDaoConfig, this);

    registerDao(ClassTableEntity.class, classTableDao);
    registerDao(ClassTimeEntity.class, classTimeDao);
    registerDao(SubjectEntity.class, subjectDao);
    registerDao(NoteEntity.class, noteDao);
    registerDao(TeacherEntity.class, teacherDao);
    registerDao(TaskEntity.class, taskDao);
  }
Ejemplo n.º 3
0
  public DaoSession(
      SQLiteDatabase db,
      IdentityScopeType type,
      Map<Class<? extends AbstractDao<?, ?>>, DaoConfig> daoConfigMap) {
    super(db);

    orgDaoConfig = daoConfigMap.get(OrgDao.class).clone();
    orgDaoConfig.initIdentityScope(type);

    orgDao = new OrgDao(orgDaoConfig, this);

    registerDao(Org.class, orgDao);
  }
Ejemplo n.º 4
0
  public DaoSession(
      SQLiteDatabase db,
      IdentityScopeType type,
      Map<Class<? extends AbstractDao<?, ?>>, DaoConfig> daoConfigMap) {
    super(db);

    webDaoConfig = daoConfigMap.get(WebDao.class).clone();
    webDaoConfig.initIdentityScope(type);

    pageDaoConfig = daoConfigMap.get(PageDao.class).clone();
    pageDaoConfig.initIdentityScope(type);

    imageDaoConfig = daoConfigMap.get(ImageDao.class).clone();
    imageDaoConfig.initIdentityScope(type);

    webDao = new WebDao(webDaoConfig, this);
    pageDao = new PageDao(pageDaoConfig, this);
    imageDao = new ImageDao(imageDaoConfig, this);

    registerDao(Web.class, webDao);
    registerDao(Page.class, pageDao);
    registerDao(Image.class, imageDao);
  }
Ejemplo n.º 5
0
  public DaoSession(
      SQLiteDatabase db,
      IdentityScopeType type,
      Map<Class<? extends AbstractDao<?, ?>>, DaoConfig> daoConfigMap) {
    super(db);

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

    itemDaoConfig = daoConfigMap.get(ItemDao.class).clone();
    itemDaoConfig.initIdentityScope(type);

    bidDaoConfig = daoConfigMap.get(BidDao.class).clone();
    bidDaoConfig.initIdentityScope(type);

    userDao = new UserDao(userDaoConfig, this);
    itemDao = new ItemDao(itemDaoConfig, this);
    bidDao = new BidDao(bidDaoConfig, this);

    registerDao(User.class, userDao);
    registerDao(Item.class, itemDao);
    registerDao(Bid.class, bidDao);
  }
Ejemplo n.º 6
0
  public DaoSession(
      SQLiteDatabase db,
      IdentityScopeType type,
      Map<Class<? extends AbstractDao<?, ?>>, DaoConfig> daoConfigMap) {
    super(db);

    newsDaoConfig = daoConfigMap.get(NewsDao.class).clone();
    newsDaoConfig.initIdentityScope(type);

    authorDaoConfig = daoConfigMap.get(AuthorDao.class).clone();
    authorDaoConfig.initIdentityScope(type);

    contentDaoConfig = daoConfigMap.get(ContentDao.class).clone();
    contentDaoConfig.initIdentityScope(type);

    imagesDaoConfig = daoConfigMap.get(ImagesDao.class).clone();
    imagesDaoConfig.initIdentityScope(type);

    linksDaoConfig = daoConfigMap.get(LinksDao.class).clone();
    linksDaoConfig.initIdentityScope(type);

    videosDaoConfig = daoConfigMap.get(VideosDao.class).clone();
    videosDaoConfig.initIdentityScope(type);

    audiosDaoConfig = daoConfigMap.get(AudiosDao.class).clone();
    audiosDaoConfig.initIdentityScope(type);

    newsDao = new NewsDao(newsDaoConfig, this);
    authorDao = new AuthorDao(authorDaoConfig, this);
    contentDao = new ContentDao(contentDaoConfig, this);
    imagesDao = new ImagesDao(imagesDaoConfig, this);
    linksDao = new LinksDao(linksDaoConfig, this);
    videosDao = new VideosDao(videosDaoConfig, this);
    audiosDao = new AudiosDao(audiosDaoConfig, this);

    registerDao(News.class, newsDao);
    registerDao(Author.class, authorDao);
    registerDao(Content.class, contentDao);
    registerDao(Images.class, imagesDao);
    registerDao(Links.class, linksDao);
    registerDao(Videos.class, videosDao);
    registerDao(Audios.class, audiosDao);
  }
  public DaoSession(
      SQLiteDatabase db,
      IdentityScopeType type,
      Map<Class<? extends AbstractDao<?, ?>>, DaoConfig> daoConfigMap) {
    super(db);

    bE_PUB_LESSONDaoConfig = daoConfigMap.get(BE_PUB_LESSONDao.class).clone();
    bE_PUB_LESSONDaoConfig.initIdentityScope(type);

    bE_LOCAl_LESSONDaoConfig = daoConfigMap.get(BE_LOCAl_LESSONDao.class).clone();
    bE_LOCAl_LESSONDaoConfig.initIdentityScope(type);

    bE_STATISTICDaoConfig = daoConfigMap.get(BE_STATISTICDao.class).clone();
    bE_STATISTICDaoConfig.initIdentityScope(type);

    bE_TOUCH_RECORDDaoConfig = daoConfigMap.get(BE_TOUCH_RECORDDao.class).clone();
    bE_TOUCH_RECORDDaoConfig.initIdentityScope(type);

    bE_TASK_WORDDaoConfig = daoConfigMap.get(BE_TASK_WORDDao.class).clone();
    bE_TASK_WORDDaoConfig.initIdentityScope(type);

    bE_RongUserDaoConfig = daoConfigMap.get(BE_RongUserDao.class).clone();
    bE_RongUserDaoConfig.initIdentityScope(type);

    bE_PUB_LESSONDao = new BE_PUB_LESSONDao(bE_PUB_LESSONDaoConfig, this);
    bE_LOCAl_LESSONDao = new BE_LOCAl_LESSONDao(bE_LOCAl_LESSONDaoConfig, this);
    bE_STATISTICDao = new BE_STATISTICDao(bE_STATISTICDaoConfig, this);
    bE_TOUCH_RECORDDao = new BE_TOUCH_RECORDDao(bE_TOUCH_RECORDDaoConfig, this);
    bE_TASK_WORDDao = new BE_TASK_WORDDao(bE_TASK_WORDDaoConfig, this);

    bE_RongUserDao = new BE_RongUserDao(bE_RongUserDaoConfig, this);

    registerDao(BE_PUB_LESSON.class, bE_PUB_LESSONDao);
    registerDao(BE_LOCAl_LESSON.class, bE_LOCAl_LESSONDao);
    registerDao(BE_STATISTIC.class, bE_STATISTICDao);
    registerDao(BE_TOUCH_RECORD.class, bE_TOUCH_RECORDDao);
    registerDao(BE_TASK_WORD.class, bE_TASK_WORDDao);

    registerDao(BE_RongUser.class, bE_RongUserDao);
  }
  public DaoSession(
      SQLiteDatabase db,
      IdentityScopeType type,
      Map<Class<? extends AbstractDao<?, ?>>, DaoConfig> daoConfigMap) {
    super(db);

    aPCachedRequestDaoConfig = daoConfigMap.get(APCachedRequestDao.class).clone();
    aPCachedRequestDaoConfig.initIdentityScope(type);

    aPObjectsAPCachedRequestsDaoConfig =
        daoConfigMap.get(APObjectsAPCachedRequestsDao.class).clone();
    aPObjectsAPCachedRequestsDaoConfig.initIdentityScope(type);

    capitalMarketsActivityDaoConfig = daoConfigMap.get(CapitalMarketsActivityDao.class).clone();
    capitalMarketsActivityDaoConfig.initIdentityScope(type);

    capitalMarketsContactDaoConfig = daoConfigMap.get(CapitalMarketsContactDao.class).clone();
    capitalMarketsContactDaoConfig.initIdentityScope(type);

    capitalMarketsContentServiceDaoConfig =
        daoConfigMap.get(CapitalMarketsContentServiceDao.class).clone();
    capitalMarketsContentServiceDaoConfig.initIdentityScope(type);

    capitalMarketsLoginDaoConfig = daoConfigMap.get(CapitalMarketsLoginDao.class).clone();
    capitalMarketsLoginDaoConfig.initIdentityScope(type);

    capitalMarketsOrderDaoConfig = daoConfigMap.get(CapitalMarketsOrderDao.class).clone();
    capitalMarketsOrderDaoConfig.initIdentityScope(type);

    capitalMarketsRevenueDaoConfig = daoConfigMap.get(CapitalMarketsRevenueDao.class).clone();
    capitalMarketsRevenueDaoConfig.initIdentityScope(type);

    corporatePaymentsAccountDaoConfig = daoConfigMap.get(CorporatePaymentsAccountDao.class).clone();
    corporatePaymentsAccountDaoConfig.initIdentityScope(type);

    corporatePaymentsBeneficiaryDaoConfig =
        daoConfigMap.get(CorporatePaymentsBeneficiaryDao.class).clone();
    corporatePaymentsBeneficiaryDaoConfig.initIdentityScope(type);

    corporatePaymentsCrossBorderFxBookingDaoConfig =
        daoConfigMap.get(CorporatePaymentsCrossBorderFxBookingDao.class).clone();
    corporatePaymentsCrossBorderFxBookingDaoConfig.initIdentityScope(type);

    corporatePaymentsCrossBorderFxPaymentDaoConfig =
        daoConfigMap.get(CorporatePaymentsCrossBorderFxPaymentDao.class).clone();
    corporatePaymentsCrossBorderFxPaymentDaoConfig.initIdentityScope(type);

    corporatePaymentsCrossBorderFxQuoteDaoConfig =
        daoConfigMap.get(CorporatePaymentsCrossBorderFxQuoteDao.class).clone();
    corporatePaymentsCrossBorderFxQuoteDaoConfig.initIdentityScope(type);

    corporatePaymentsLoginDaoConfig = daoConfigMap.get(CorporatePaymentsLoginDao.class).clone();
    corporatePaymentsLoginDaoConfig.initIdentityScope(type);

    corporatePaymentsPaymentDaoConfig = daoConfigMap.get(CorporatePaymentsPaymentDao.class).clone();
    corporatePaymentsPaymentDaoConfig.initIdentityScope(type);

    retailBankingAccountDaoConfig = daoConfigMap.get(RetailBankingAccountDao.class).clone();
    retailBankingAccountDaoConfig.initIdentityScope(type);

    retailBankingAccountBalanceDaoConfig =
        daoConfigMap.get(RetailBankingAccountBalanceDao.class).clone();
    retailBankingAccountBalanceDaoConfig.initIdentityScope(type);

    retailBankingAccountFundTransferDaoConfig =
        daoConfigMap.get(RetailBankingAccountFundTransferDao.class).clone();
    retailBankingAccountFundTransferDaoConfig.initIdentityScope(type);

    retailBankingAccountTransactionDaoConfig =
        daoConfigMap.get(RetailBankingAccountTransactionDao.class).clone();
    retailBankingAccountTransactionDaoConfig.initIdentityScope(type);

    retailBankingForeignCurrencyDaoConfig =
        daoConfigMap.get(RetailBankingForeignCurrencyDao.class).clone();
    retailBankingForeignCurrencyDaoConfig.initIdentityScope(type);

    retailBankingLocationDaoConfig = daoConfigMap.get(RetailBankingLocationDao.class).clone();
    retailBankingLocationDaoConfig.initIdentityScope(type);

    retailBankingLoginDaoConfig = daoConfigMap.get(RetailBankingLoginDao.class).clone();
    retailBankingLoginDaoConfig.initIdentityScope(type);

    retailBankingPayeeDaoConfig = daoConfigMap.get(RetailBankingPayeeDao.class).clone();
    retailBankingPayeeDaoConfig.initIdentityScope(type);

    retailBankingPayeeTypeDaoConfig = daoConfigMap.get(RetailBankingPayeeTypeDao.class).clone();
    retailBankingPayeeTypeDaoConfig.initIdentityScope(type);

    retailBankingRewardsCatalogDaoConfig =
        daoConfigMap.get(RetailBankingRewardsCatalogDao.class).clone();
    retailBankingRewardsCatalogDaoConfig.initIdentityScope(type);

    retailBankingRewardsRedemptionDaoConfig =
        daoConfigMap.get(RetailBankingRewardsRedemptionDao.class).clone();
    retailBankingRewardsRedemptionDaoConfig.initIdentityScope(type);

    aPCachedRequestDao = new APCachedRequestDao(aPCachedRequestDaoConfig, this);
    aPObjectsAPCachedRequestsDao =
        new APObjectsAPCachedRequestsDao(aPObjectsAPCachedRequestsDaoConfig, this);
    capitalMarketsActivityDao =
        new CapitalMarketsActivityDao(capitalMarketsActivityDaoConfig, this);
    capitalMarketsContactDao = new CapitalMarketsContactDao(capitalMarketsContactDaoConfig, this);
    capitalMarketsContentServiceDao =
        new CapitalMarketsContentServiceDao(capitalMarketsContentServiceDaoConfig, this);
    capitalMarketsLoginDao = new CapitalMarketsLoginDao(capitalMarketsLoginDaoConfig, this);
    capitalMarketsOrderDao = new CapitalMarketsOrderDao(capitalMarketsOrderDaoConfig, this);
    capitalMarketsRevenueDao = new CapitalMarketsRevenueDao(capitalMarketsRevenueDaoConfig, this);
    corporatePaymentsAccountDao =
        new CorporatePaymentsAccountDao(corporatePaymentsAccountDaoConfig, this);
    corporatePaymentsBeneficiaryDao =
        new CorporatePaymentsBeneficiaryDao(corporatePaymentsBeneficiaryDaoConfig, this);
    corporatePaymentsCrossBorderFxBookingDao =
        new CorporatePaymentsCrossBorderFxBookingDao(
            corporatePaymentsCrossBorderFxBookingDaoConfig, this);
    corporatePaymentsCrossBorderFxPaymentDao =
        new CorporatePaymentsCrossBorderFxPaymentDao(
            corporatePaymentsCrossBorderFxPaymentDaoConfig, this);
    corporatePaymentsCrossBorderFxQuoteDao =
        new CorporatePaymentsCrossBorderFxQuoteDao(
            corporatePaymentsCrossBorderFxQuoteDaoConfig, this);
    corporatePaymentsLoginDao =
        new CorporatePaymentsLoginDao(corporatePaymentsLoginDaoConfig, this);
    corporatePaymentsPaymentDao =
        new CorporatePaymentsPaymentDao(corporatePaymentsPaymentDaoConfig, this);
    retailBankingAccountDao = new RetailBankingAccountDao(retailBankingAccountDaoConfig, this);
    retailBankingAccountBalanceDao =
        new RetailBankingAccountBalanceDao(retailBankingAccountBalanceDaoConfig, this);
    retailBankingAccountFundTransferDao =
        new RetailBankingAccountFundTransferDao(retailBankingAccountFundTransferDaoConfig, this);
    retailBankingAccountTransactionDao =
        new RetailBankingAccountTransactionDao(retailBankingAccountTransactionDaoConfig, this);
    retailBankingForeignCurrencyDao =
        new RetailBankingForeignCurrencyDao(retailBankingForeignCurrencyDaoConfig, this);
    retailBankingLocationDao = new RetailBankingLocationDao(retailBankingLocationDaoConfig, this);
    retailBankingLoginDao = new RetailBankingLoginDao(retailBankingLoginDaoConfig, this);
    retailBankingPayeeDao = new RetailBankingPayeeDao(retailBankingPayeeDaoConfig, this);
    retailBankingPayeeTypeDao =
        new RetailBankingPayeeTypeDao(retailBankingPayeeTypeDaoConfig, this);
    retailBankingRewardsCatalogDao =
        new RetailBankingRewardsCatalogDao(retailBankingRewardsCatalogDaoConfig, this);
    retailBankingRewardsRedemptionDao =
        new RetailBankingRewardsRedemptionDao(retailBankingRewardsRedemptionDaoConfig, this);

    registerDao(APCachedRequest.class, aPCachedRequestDao);
    registerDao(APObjectsAPCachedRequests.class, aPObjectsAPCachedRequestsDao);
    registerDao(CapitalMarketsActivity.class, capitalMarketsActivityDao);
    registerDao(CapitalMarketsContact.class, capitalMarketsContactDao);
    registerDao(CapitalMarketsContentService.class, capitalMarketsContentServiceDao);
    registerDao(CapitalMarketsLogin.class, capitalMarketsLoginDao);
    registerDao(CapitalMarketsOrder.class, capitalMarketsOrderDao);
    registerDao(CapitalMarketsRevenue.class, capitalMarketsRevenueDao);
    registerDao(CorporatePaymentsAccount.class, corporatePaymentsAccountDao);
    registerDao(CorporatePaymentsBeneficiary.class, corporatePaymentsBeneficiaryDao);
    registerDao(
        CorporatePaymentsCrossBorderFxBooking.class, corporatePaymentsCrossBorderFxBookingDao);
    registerDao(
        CorporatePaymentsCrossBorderFxPayment.class, corporatePaymentsCrossBorderFxPaymentDao);
    registerDao(CorporatePaymentsCrossBorderFxQuote.class, corporatePaymentsCrossBorderFxQuoteDao);
    registerDao(CorporatePaymentsLogin.class, corporatePaymentsLoginDao);
    registerDao(CorporatePaymentsPayment.class, corporatePaymentsPaymentDao);
    registerDao(RetailBankingAccount.class, retailBankingAccountDao);
    registerDao(RetailBankingAccountBalance.class, retailBankingAccountBalanceDao);
    registerDao(RetailBankingAccountFundTransfer.class, retailBankingAccountFundTransferDao);
    registerDao(RetailBankingAccountTransaction.class, retailBankingAccountTransactionDao);
    registerDao(RetailBankingForeignCurrency.class, retailBankingForeignCurrencyDao);
    registerDao(RetailBankingLocation.class, retailBankingLocationDao);
    registerDao(RetailBankingLogin.class, retailBankingLoginDao);
    registerDao(RetailBankingPayee.class, retailBankingPayeeDao);
    registerDao(RetailBankingPayeeType.class, retailBankingPayeeTypeDao);
    registerDao(RetailBankingRewardsCatalog.class, retailBankingRewardsCatalogDao);
    registerDao(RetailBankingRewardsRedemption.class, retailBankingRewardsRedemptionDao);
  }