You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.2 KiB
49 lines
1.2 KiB
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;
|
|
}
|
|
|
|
}
|