| | |
| | | import org.greenrobot.greendao.identityscope.IdentityScopeType; |
| | | import org.greenrobot.greendao.internal.DaoConfig; |
| | | |
| | | import cn.flightfeather.thirdapp.bean.entity.ChangeAdvice; |
| | | import cn.flightfeather.thirdapp.bean.entity.ChangeEffect; |
| | | import cn.flightfeather.thirdapp.bean.entity.City; |
| | | import cn.flightfeather.thirdapp.bean.entity.District; |
| | | import cn.flightfeather.thirdapp.bean.entity.Domaincatalog; |
| | | import cn.flightfeather.thirdapp.bean.entity.Domainitem; |
| | | import cn.flightfeather.thirdapp.bean.entity.Evaluation; |
| | | import cn.flightfeather.thirdapp.bean.entity.Evaluationrule; |
| | | import cn.flightfeather.thirdapp.bean.entity.Evaluationsubrule; |
| | | import cn.flightfeather.thirdapp.bean.entity.Gitlist; |
| | | import cn.flightfeather.thirdapp.bean.entity.Gittype; |
| | | import cn.flightfeather.thirdapp.bean.entity.Inspection; |
| | | import cn.flightfeather.thirdapp.bean.entity.Itemevaluation; |
| | | import cn.flightfeather.thirdapp.bean.entity.Mediafile; |
| | | import cn.flightfeather.thirdapp.bean.entity.MediaTypeAlias; |
| | | import cn.flightfeather.thirdapp.bean.entity.Monitorobjectversion; |
| | | import cn.flightfeather.thirdapp.bean.entity.Problemlist; |
| | | import cn.flightfeather.thirdapp.bean.entity.Problemtype; |
| | | import cn.flightfeather.thirdapp.bean.entity.Province; |
| | | import cn.flightfeather.thirdapp.bean.entity.Scense; |
| | | import cn.flightfeather.thirdapp.bean.entity.Site; |
| | | import cn.flightfeather.thirdapp.bean.entity.Subtask; |
| | | import cn.flightfeather.thirdapp.bean.entity.Task; |
| | | import cn.flightfeather.thirdapp.bean.entity.Taskvertion; |
| | | import cn.flightfeather.thirdapp.bean.entity.Town; |
| | | import cn.flightfeather.thirdapp.bean.entity.Userinfo; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.ChangeAdvice; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.ChangeEffect; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.City; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.District; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Domaincatalog; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Domainitem; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Evaluation; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Evaluationrule; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Evaluationsubrule; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Gitlist; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Gittype; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Inspection; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Itemevaluation; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.MediaFileCache; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.MediaTypeAlias; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Mediafile; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Monitorobjectversion; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Problemlist; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Problemtype; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Province; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Scense; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Site; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Subtask; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Task; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Taskvertion; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Town; |
| | | import cn.flightfeather.thirdappmodule.bean.entity.Userinfo; |
| | | |
| | | import com.ping.greendao.gen.ChangeAdviceDao; |
| | | import com.ping.greendao.gen.ChangeEffectDao; |
| | |
| | | import com.ping.greendao.gen.GittypeDao; |
| | | import com.ping.greendao.gen.InspectionDao; |
| | | import com.ping.greendao.gen.ItemevaluationDao; |
| | | import com.ping.greendao.gen.MediafileDao; |
| | | import com.ping.greendao.gen.MediaFileCacheDao; |
| | | import com.ping.greendao.gen.MediaTypeAliasDao; |
| | | import com.ping.greendao.gen.MediafileDao; |
| | | import com.ping.greendao.gen.MonitorobjectversionDao; |
| | | import com.ping.greendao.gen.ProblemlistDao; |
| | | import com.ping.greendao.gen.ProblemtypeDao; |
| | |
| | | private final DaoConfig gittypeDaoConfig; |
| | | private final DaoConfig inspectionDaoConfig; |
| | | private final DaoConfig itemevaluationDaoConfig; |
| | | private final DaoConfig mediafileDaoConfig; |
| | | private final DaoConfig mediaFileCacheDaoConfig; |
| | | private final DaoConfig mediaTypeAliasDaoConfig; |
| | | private final DaoConfig mediafileDaoConfig; |
| | | private final DaoConfig monitorobjectversionDaoConfig; |
| | | private final DaoConfig problemlistDaoConfig; |
| | | private final DaoConfig problemtypeDaoConfig; |
| | |
| | | private final GittypeDao gittypeDao; |
| | | private final InspectionDao inspectionDao; |
| | | private final ItemevaluationDao itemevaluationDao; |
| | | private final MediafileDao mediafileDao; |
| | | private final MediaFileCacheDao mediaFileCacheDao; |
| | | private final MediaTypeAliasDao mediaTypeAliasDao; |
| | | private final MediafileDao mediafileDao; |
| | | private final MonitorobjectversionDao monitorobjectversionDao; |
| | | private final ProblemlistDao problemlistDao; |
| | | private final ProblemtypeDao problemtypeDao; |
| | |
| | | itemevaluationDaoConfig = daoConfigMap.get(ItemevaluationDao.class).clone(); |
| | | itemevaluationDaoConfig.initIdentityScope(type); |
| | | |
| | | mediafileDaoConfig = daoConfigMap.get(MediafileDao.class).clone(); |
| | | mediafileDaoConfig.initIdentityScope(type); |
| | | mediaFileCacheDaoConfig = daoConfigMap.get(MediaFileCacheDao.class).clone(); |
| | | mediaFileCacheDaoConfig.initIdentityScope(type); |
| | | |
| | | mediaTypeAliasDaoConfig = daoConfigMap.get(MediaTypeAliasDao.class).clone(); |
| | | mediaTypeAliasDaoConfig.initIdentityScope(type); |
| | | |
| | | mediafileDaoConfig = daoConfigMap.get(MediafileDao.class).clone(); |
| | | mediafileDaoConfig.initIdentityScope(type); |
| | | |
| | | monitorobjectversionDaoConfig = daoConfigMap.get(MonitorobjectversionDao.class).clone(); |
| | | monitorobjectversionDaoConfig.initIdentityScope(type); |
| | |
| | | gittypeDao = new GittypeDao(gittypeDaoConfig, this); |
| | | inspectionDao = new InspectionDao(inspectionDaoConfig, this); |
| | | itemevaluationDao = new ItemevaluationDao(itemevaluationDaoConfig, this); |
| | | mediafileDao = new MediafileDao(mediafileDaoConfig, this); |
| | | mediaFileCacheDao = new MediaFileCacheDao(mediaFileCacheDaoConfig, this); |
| | | mediaTypeAliasDao = new MediaTypeAliasDao(mediaTypeAliasDaoConfig, this); |
| | | mediafileDao = new MediafileDao(mediafileDaoConfig, this); |
| | | monitorobjectversionDao = new MonitorobjectversionDao(monitorobjectversionDaoConfig, this); |
| | | problemlistDao = new ProblemlistDao(problemlistDaoConfig, this); |
| | | problemtypeDao = new ProblemtypeDao(problemtypeDaoConfig, this); |
| | |
| | | registerDao(Gittype.class, gittypeDao); |
| | | registerDao(Inspection.class, inspectionDao); |
| | | registerDao(Itemevaluation.class, itemevaluationDao); |
| | | registerDao(Mediafile.class, mediafileDao); |
| | | registerDao(MediaFileCache.class, mediaFileCacheDao); |
| | | registerDao(MediaTypeAlias.class, mediaTypeAliasDao); |
| | | registerDao(Mediafile.class, mediafileDao); |
| | | registerDao(Monitorobjectversion.class, monitorobjectversionDao); |
| | | registerDao(Problemlist.class, problemlistDao); |
| | | registerDao(Problemtype.class, problemtypeDao); |
| | |
| | | gittypeDaoConfig.clearIdentityScope(); |
| | | inspectionDaoConfig.clearIdentityScope(); |
| | | itemevaluationDaoConfig.clearIdentityScope(); |
| | | mediafileDaoConfig.clearIdentityScope(); |
| | | mediaFileCacheDaoConfig.clearIdentityScope(); |
| | | mediaTypeAliasDaoConfig.clearIdentityScope(); |
| | | mediafileDaoConfig.clearIdentityScope(); |
| | | monitorobjectversionDaoConfig.clearIdentityScope(); |
| | | problemlistDaoConfig.clearIdentityScope(); |
| | | problemtypeDaoConfig.clearIdentityScope(); |
| | |
| | | return itemevaluationDao; |
| | | } |
| | | |
| | | public MediafileDao getMediafileDao() { |
| | | return mediafileDao; |
| | | public MediaFileCacheDao getMediaFileCacheDao() { |
| | | return mediaFileCacheDao; |
| | | } |
| | | |
| | | public MediaTypeAliasDao getMediaTypeAliasDao() { |
| | | return mediaTypeAliasDao; |
| | | } |
| | | |
| | | public MediafileDao getMediafileDao() { |
| | | return mediafileDao; |
| | | } |
| | | |
| | | public MonitorobjectversionDao getMonitorobjectversionDao() { |
| | | return monitorobjectversionDao; |
| | | } |