package com.casic.dcms.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.casic.dcms.bean.NoticeBean;

import com.casic.dcms.greendao.NoticeBeanDao;

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

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

    private final DaoConfig noticeBeanDaoConfig;

    private final NoticeBeanDao noticeBeanDao;

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

        noticeBeanDaoConfig = daoConfigMap.get(NoticeBeanDao.class).clone();
        noticeBeanDaoConfig.initIdentityScope(type);

        noticeBeanDao = new NoticeBeanDao(noticeBeanDaoConfig, this);

        registerDao(NoticeBean.class, noticeBeanDao);
    }
    
    public void clear() {
        noticeBeanDaoConfig.clearIdentityScope();
    }

    public NoticeBeanDao getNoticeBeanDao() {
        return noticeBeanDao;
    }

}
