package com.sheep.gamegroup.greendao.download;

import java.util.Map;

import org.greenrobot.greendao.AbstractDao;
import org.greenrobot.greendao.AbstractDaoSession;
import org.greenrobot.greendao.database.Database;
import org.greenrobot.greendao.identityscope.IdentityScopeType;
import org.greenrobot.greendao.internal.DaoConfig;

import com.sheep.gamegroup.greendao.download.ProcessRecord;
import com.sheep.gamegroup.greendao.download.AppdownloadBean;
import com.sheep.gamegroup.greendao.download.SdkLoginUser;
import com.sheep.gamegroup.greendao.download.ScreenShotRecord;
import com.sheep.gamegroup.greendao.download.AcceptTaskRecord;
import com.sheep.gamegroup.greendao.download.Account;
import com.sheep.gamegroup.greendao.download.SearchRecord;
import com.sheep.gamegroup.greendao.download.DownLoadInfo;

import com.sheep.gamegroup.greendao.download.ProcessRecordDao;
import com.sheep.gamegroup.greendao.download.AppdownloadBeanDao;
import com.sheep.gamegroup.greendao.download.SdkLoginUserDao;
import com.sheep.gamegroup.greendao.download.ScreenShotRecordDao;
import com.sheep.gamegroup.greendao.download.AcceptTaskRecordDao;
import com.sheep.gamegroup.greendao.download.AccountDao;
import com.sheep.gamegroup.greendao.download.SearchRecordDao;
import com.sheep.gamegroup.greendao.download.DownLoadInfoDao;

// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.

/**
 * {@inheritDoc}
 * 
 * @see org.greenrobot.greendao.AbstractDaoSession
 */
public class DaoSession extends AbstractDaoSession {

    private final DaoConfig processRecordDaoConfig;
    private final DaoConfig appdownloadBeanDaoConfig;
    private final DaoConfig sdkLoginUserDaoConfig;
    private final DaoConfig screenShotRecordDaoConfig;
    private final DaoConfig acceptTaskRecordDaoConfig;
    private final DaoConfig accountDaoConfig;
    private final DaoConfig searchRecordDaoConfig;
    private final DaoConfig downLoadInfoDaoConfig;

    private final ProcessRecordDao processRecordDao;
    private final AppdownloadBeanDao appdownloadBeanDao;
    private final SdkLoginUserDao sdkLoginUserDao;
    private final ScreenShotRecordDao screenShotRecordDao;
    private final AcceptTaskRecordDao acceptTaskRecordDao;
    private final AccountDao accountDao;
    private final SearchRecordDao searchRecordDao;
    private final DownLoadInfoDao downLoadInfoDao;

    public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
            daoConfigMap) {
        super(db);

        processRecordDaoConfig = daoConfigMap.get(ProcessRecordDao.class).clone();
        processRecordDaoConfig.initIdentityScope(type);

        appdownloadBeanDaoConfig = daoConfigMap.get(AppdownloadBeanDao.class).clone();
        appdownloadBeanDaoConfig.initIdentityScope(type);

        sdkLoginUserDaoConfig = daoConfigMap.get(SdkLoginUserDao.class).clone();
        sdkLoginUserDaoConfig.initIdentityScope(type);

        screenShotRecordDaoConfig = daoConfigMap.get(ScreenShotRecordDao.class).clone();
        screenShotRecordDaoConfig.initIdentityScope(type);

        acceptTaskRecordDaoConfig = daoConfigMap.get(AcceptTaskRecordDao.class).clone();
        acceptTaskRecordDaoConfig.initIdentityScope(type);

        accountDaoConfig = daoConfigMap.get(AccountDao.class).clone();
        accountDaoConfig.initIdentityScope(type);

        searchRecordDaoConfig = daoConfigMap.get(SearchRecordDao.class).clone();
        searchRecordDaoConfig.initIdentityScope(type);

        downLoadInfoDaoConfig = daoConfigMap.get(DownLoadInfoDao.class).clone();
        downLoadInfoDaoConfig.initIdentityScope(type);

        processRecordDao = new ProcessRecordDao(processRecordDaoConfig, this);
        appdownloadBeanDao = new AppdownloadBeanDao(appdownloadBeanDaoConfig, this);
        sdkLoginUserDao = new SdkLoginUserDao(sdkLoginUserDaoConfig, this);
        screenShotRecordDao = new ScreenShotRecordDao(screenShotRecordDaoConfig, this);
        acceptTaskRecordDao = new AcceptTaskRecordDao(acceptTaskRecordDaoConfig, this);
        accountDao = new AccountDao(accountDaoConfig, this);
        searchRecordDao = new SearchRecordDao(searchRecordDaoConfig, this);
        downLoadInfoDao = new DownLoadInfoDao(downLoadInfoDaoConfig, this);

        registerDao(ProcessRecord.class, processRecordDao);
        registerDao(AppdownloadBean.class, appdownloadBeanDao);
        registerDao(SdkLoginUser.class, sdkLoginUserDao);
        registerDao(ScreenShotRecord.class, screenShotRecordDao);
        registerDao(AcceptTaskRecord.class, acceptTaskRecordDao);
        registerDao(Account.class, accountDao);
        registerDao(SearchRecord.class, searchRecordDao);
        registerDao(DownLoadInfo.class, downLoadInfoDao);
    }
    
    public void clear() {
        processRecordDaoConfig.clearIdentityScope();
        appdownloadBeanDaoConfig.clearIdentityScope();
        sdkLoginUserDaoConfig.clearIdentityScope();
        screenShotRecordDaoConfig.clearIdentityScope();
        acceptTaskRecordDaoConfig.clearIdentityScope();
        accountDaoConfig.clearIdentityScope();
        searchRecordDaoConfig.clearIdentityScope();
        downLoadInfoDaoConfig.clearIdentityScope();
    }

    public ProcessRecordDao getProcessRecordDao() {
        return processRecordDao;
    }

    public AppdownloadBeanDao getAppdownloadBeanDao() {
        return appdownloadBeanDao;
    }

    public SdkLoginUserDao getSdkLoginUserDao() {
        return sdkLoginUserDao;
    }

    public ScreenShotRecordDao getScreenShotRecordDao() {
        return screenShotRecordDao;
    }

    public AcceptTaskRecordDao getAcceptTaskRecordDao() {
        return acceptTaskRecordDao;
    }

    public AccountDao getAccountDao() {
        return accountDao;
    }

    public SearchRecordDao getSearchRecordDao() {
        return searchRecordDao;
    }

    public DownLoadInfoDao getDownLoadInfoDao() {
        return downLoadInfoDao;
    }

}
