package sql.com.yz.db;

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.sxyz.rfid.greendao.model.Out;

import sql.com.yz.db.OutDao;

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

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

    private final DaoConfig outDaoConfig;

    private final OutDao outDao;

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

        outDaoConfig = daoConfigMap.get(OutDao.class).clone();
        outDaoConfig.initIdentityScope(type);

        outDao = new OutDao(outDaoConfig, this);

        registerDao(Out.class, outDao);
    }
    
    public void clear() {
        outDaoConfig.clearIdentityScope();
    }

    public OutDao getOutDao() {
        return outDao;
    }

}
