package suda.sudamodweather.dao.greendao; import android.database.sqlite.SQLiteDatabase; import java.util.Map; import de.greenrobot.dao.AbstractDao; import de.greenrobot.dao.AbstractDaoSession; import de.greenrobot.dao.identityscope.IdentityScopeType; import de.greenrobot.dao.internal.DaoConfig; import suda.sudamodweather.dao.greendao.WeekForeCast; import suda.sudamodweather.dao.greendao.RealWeather; import suda.sudamodweather.dao.greendao.HourForeCast; import suda.sudamodweather.dao.greendao.Aqi; import suda.sudamodweather.dao.greendao.Zhishu; import suda.sudamodweather.dao.greendao.UseArea; import suda.sudamodweather.dao.greendao.Alarms; import suda.sudamodweather.dao.greendao.WeekForeCastDao; import suda.sudamodweather.dao.greendao.RealWeatherDao; import suda.sudamodweather.dao.greendao.HourForeCastDao; import suda.sudamodweather.dao.greendao.AqiDao; import suda.sudamodweather.dao.greendao.ZhishuDao; import suda.sudamodweather.dao.greendao.UseAreaDao; import suda.sudamodweather.dao.greendao.AlarmsDao; // THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT. /** * {@inheritDoc} * * @see de.greenrobot.dao.AbstractDaoSession */ public class DaoSession extends AbstractDaoSession { private final DaoConfig weekForeCastDaoConfig; private final DaoConfig realWeatherDaoConfig; private final DaoConfig hourForeCastDaoConfig; private final DaoConfig aqiDaoConfig; private final DaoConfig zhishuDaoConfig; private final DaoConfig useAreaDaoConfig; private final DaoConfig alarmsDaoConfig; private final WeekForeCastDao weekForeCastDao; private final RealWeatherDao realWeatherDao; private final HourForeCastDao hourForeCastDao; private final AqiDao aqiDao; private final ZhishuDao zhishuDao; private final UseAreaDao useAreaDao; private final AlarmsDao alarmsDao; public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig> daoConfigMap) { super(db); weekForeCastDaoConfig = daoConfigMap.get(WeekForeCastDao.class).clone(); weekForeCastDaoConfig.initIdentityScope(type); realWeatherDaoConfig = daoConfigMap.get(RealWeatherDao.class).clone(); realWeatherDaoConfig.initIdentityScope(type); hourForeCastDaoConfig = daoConfigMap.get(HourForeCastDao.class).clone(); hourForeCastDaoConfig.initIdentityScope(type); aqiDaoConfig = daoConfigMap.get(AqiDao.class).clone(); aqiDaoConfig.initIdentityScope(type); zhishuDaoConfig = daoConfigMap.get(ZhishuDao.class).clone(); zhishuDaoConfig.initIdentityScope(type); useAreaDaoConfig = daoConfigMap.get(UseAreaDao.class).clone(); useAreaDaoConfig.initIdentityScope(type); alarmsDaoConfig = daoConfigMap.get(AlarmsDao.class).clone(); alarmsDaoConfig.initIdentityScope(type); weekForeCastDao = new WeekForeCastDao(weekForeCastDaoConfig, this); realWeatherDao = new RealWeatherDao(realWeatherDaoConfig, this); hourForeCastDao = new HourForeCastDao(hourForeCastDaoConfig, this); aqiDao = new AqiDao(aqiDaoConfig, this); zhishuDao = new ZhishuDao(zhishuDaoConfig, this); useAreaDao = new UseAreaDao(useAreaDaoConfig, this); alarmsDao = new AlarmsDao(alarmsDaoConfig, this); registerDao(WeekForeCast.class, weekForeCastDao); registerDao(RealWeather.class, realWeatherDao); registerDao(HourForeCast.class, hourForeCastDao); registerDao(Aqi.class, aqiDao); registerDao(Zhishu.class, zhishuDao); registerDao(UseArea.class, useAreaDao); registerDao(Alarms.class, alarmsDao); } public void clear() { weekForeCastDaoConfig.getIdentityScope().clear(); realWeatherDaoConfig.getIdentityScope().clear(); hourForeCastDaoConfig.getIdentityScope().clear(); aqiDaoConfig.getIdentityScope().clear(); zhishuDaoConfig.getIdentityScope().clear(); useAreaDaoConfig.getIdentityScope().clear(); alarmsDaoConfig.getIdentityScope().clear(); } public WeekForeCastDao getWeekForeCastDao() { return weekForeCastDao; } public RealWeatherDao getRealWeatherDao() { return realWeatherDao; } public HourForeCastDao getHourForeCastDao() { return hourForeCastDao; } public AqiDao getAqiDao() { return aqiDao; } public ZhishuDao getZhishuDao() { return zhishuDao; } public UseAreaDao getUseAreaDao() { return useAreaDao; } public AlarmsDao getAlarmsDao() { return alarmsDao; } }