parent
8aa4377ff0
commit
f7162a787d
@ -0,0 +1,48 @@
|
||||
package com.example.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.example.bean.QuestBean;
|
||||
|
||||
import com.example.greendao.QuestBeanDao;
|
||||
|
||||
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
|
||||
|
||||
/**
|
||||
* {@inheritDoc}
|
||||
*
|
||||
* @see org.greenrobot.greendao.AbstractDaoSession
|
||||
*/
|
||||
public class DaoSession extends AbstractDaoSession {
|
||||
|
||||
private final DaoConfig questBeanDaoConfig;
|
||||
|
||||
private final QuestBeanDao questBeanDao;
|
||||
|
||||
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
|
||||
daoConfigMap) {
|
||||
super(db);
|
||||
|
||||
questBeanDaoConfig = daoConfigMap.get(QuestBeanDao.class).clone();
|
||||
questBeanDaoConfig.initIdentityScope(type);
|
||||
|
||||
questBeanDao = new QuestBeanDao(questBeanDaoConfig, this);
|
||||
|
||||
registerDao(QuestBean.class, questBeanDao);
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
questBeanDaoConfig.clearIdentityScope();
|
||||
}
|
||||
|
||||
public QuestBeanDao getQuestBeanDao() {
|
||||
return questBeanDao;
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in new issue