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