package com.hxs.xposedreddevil.greendao;

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.hxs.xposedreddevil.greendao.DbCarryList;
import com.hxs.xposedreddevil.greendao.WxChatInvokeMsg;

import com.hxs.xposedreddevil.greendao.DbCarryListDao;
import com.hxs.xposedreddevil.greendao.WxChatInvokeMsgDao;

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

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

    private final DaoConfig dbCarryListDaoConfig;
    private final DaoConfig wxChatInvokeMsgDaoConfig;

    private final DbCarryListDao dbCarryListDao;
    private final WxChatInvokeMsgDao wxChatInvokeMsgDao;

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

        dbCarryListDaoConfig = daoConfigMap.get(DbCarryListDao.class).clone();
        dbCarryListDaoConfig.initIdentityScope(type);

        wxChatInvokeMsgDaoConfig = daoConfigMap.get(WxChatInvokeMsgDao.class).clone();
        wxChatInvokeMsgDaoConfig.initIdentityScope(type);

        dbCarryListDao = new DbCarryListDao(dbCarryListDaoConfig, this);
        wxChatInvokeMsgDao = new WxChatInvokeMsgDao(wxChatInvokeMsgDaoConfig, this);

        registerDao(DbCarryList.class, dbCarryListDao);
        registerDao(WxChatInvokeMsg.class, wxChatInvokeMsgDao);
    }
    
    public void clear() {
        dbCarryListDaoConfig.clearIdentityScope();
        wxChatInvokeMsgDaoConfig.clearIdentityScope();
    }

    public DbCarryListDao getDbCarryListDao() {
        return dbCarryListDao;
    }

    public WxChatInvokeMsgDao getWxChatInvokeMsgDao() {
        return wxChatInvokeMsgDao;
    }

}
