package com.casic.br.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.br.model.LocaleMessageBean;

import com.casic.br.greendao.LocaleMessageBeanDao;

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

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

    private final DaoConfig localeMessageBeanDaoConfig;

    private final LocaleMessageBeanDao localeMessageBeanDao;

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

        localeMessageBeanDaoConfig = daoConfigMap.get(LocaleMessageBeanDao.class).clone();
        localeMessageBeanDaoConfig.initIdentityScope(type);

        localeMessageBeanDao = new LocaleMessageBeanDao(localeMessageBeanDaoConfig, this);

        registerDao(LocaleMessageBean.class, localeMessageBeanDao);
    }
    
    public void clear() {
        localeMessageBeanDaoConfig.clearIdentityScope();
    }

    public LocaleMessageBeanDao getLocaleMessageBeanDao() {
        return localeMessageBeanDao;
    }

}
