DaoSession.java
3.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
package com.huaheng.wms.wmsgreendao;
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.huaheng.wms.menu.ModulesBean;
import com.huaheng.wms.work.collectgoods.ReceiptInfo;
import com.huaheng.wms.work.login.UserInfo;
import com.huaheng.wms.work.onshell.ContainerInfo;
import com.huaheng.wms.wmsgreendao.ModulesBeanDao;
import com.huaheng.wms.wmsgreendao.ReceiptInfoDao;
import com.huaheng.wms.wmsgreendao.UserInfoDao;
import com.huaheng.wms.wmsgreendao.ContainerInfoDao;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* {@inheritDoc}
*
* @see org.greenrobot.greendao.AbstractDaoSession
*/
public class DaoSession extends AbstractDaoSession {
private final DaoConfig modulesBeanDaoConfig;
private final DaoConfig receiptInfoDaoConfig;
private final DaoConfig userInfoDaoConfig;
private final DaoConfig containerInfoDaoConfig;
private final ModulesBeanDao modulesBeanDao;
private final ReceiptInfoDao receiptInfoDao;
private final UserInfoDao userInfoDao;
private final ContainerInfoDao containerInfoDao;
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
daoConfigMap) {
super(db);
modulesBeanDaoConfig = daoConfigMap.get(ModulesBeanDao.class).clone();
modulesBeanDaoConfig.initIdentityScope(type);
receiptInfoDaoConfig = daoConfigMap.get(ReceiptInfoDao.class).clone();
receiptInfoDaoConfig.initIdentityScope(type);
userInfoDaoConfig = daoConfigMap.get(UserInfoDao.class).clone();
userInfoDaoConfig.initIdentityScope(type);
containerInfoDaoConfig = daoConfigMap.get(ContainerInfoDao.class).clone();
containerInfoDaoConfig.initIdentityScope(type);
modulesBeanDao = new ModulesBeanDao(modulesBeanDaoConfig, this);
receiptInfoDao = new ReceiptInfoDao(receiptInfoDaoConfig, this);
userInfoDao = new UserInfoDao(userInfoDaoConfig, this);
containerInfoDao = new ContainerInfoDao(containerInfoDaoConfig, this);
registerDao(ModulesBean.class, modulesBeanDao);
registerDao(ReceiptInfo.class, receiptInfoDao);
registerDao(UserInfo.class, userInfoDao);
registerDao(ContainerInfo.class, containerInfoDao);
}
public void clear() {
modulesBeanDaoConfig.clearIdentityScope();
receiptInfoDaoConfig.clearIdentityScope();
userInfoDaoConfig.clearIdentityScope();
containerInfoDaoConfig.clearIdentityScope();
}
public ModulesBeanDao getModulesBeanDao() {
return modulesBeanDao;
}
public ReceiptInfoDao getReceiptInfoDao() {
return receiptInfoDao;
}
public UserInfoDao getUserInfoDao() {
return userInfoDao;
}
public ContainerInfoDao getContainerInfoDao() {
return containerInfoDao;
}
}