DaoSession.java
5.24 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
package com.lijinji.scan.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.lijinji.scan.bean.ActivityIslandBean;
import com.lijinji.scan.bean.LineBean;
import com.lijinji.scan.bean.MenuOperationBean;
import com.lijinji.scan.bean.ProductBean;
import com.lijinji.scan.bean.ProductTransBean;
import com.lijinji.scan.bean.WorkProcessBean;
import com.lijinji.scan.bean.WorkProcessDetailBean;
import com.lijinji.scan.wmsgreendao.ActivityIslandBeanDao;
import com.lijinji.scan.wmsgreendao.LineBeanDao;
import com.lijinji.scan.wmsgreendao.MenuOperationBeanDao;
import com.lijinji.scan.wmsgreendao.ProductBeanDao;
import com.lijinji.scan.wmsgreendao.ProductTransBeanDao;
import com.lijinji.scan.wmsgreendao.WorkProcessBeanDao;
import com.lijinji.scan.wmsgreendao.WorkProcessDetailBeanDao;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* {@inheritDoc}
*
* @see org.greenrobot.greendao.AbstractDaoSession
*/
public class DaoSession extends AbstractDaoSession {
private final DaoConfig activityIslandBeanDaoConfig;
private final DaoConfig lineBeanDaoConfig;
private final DaoConfig menuOperationBeanDaoConfig;
private final DaoConfig productBeanDaoConfig;
private final DaoConfig productTransBeanDaoConfig;
private final DaoConfig workProcessBeanDaoConfig;
private final DaoConfig workProcessDetailBeanDaoConfig;
private final ActivityIslandBeanDao activityIslandBeanDao;
private final LineBeanDao lineBeanDao;
private final MenuOperationBeanDao menuOperationBeanDao;
private final ProductBeanDao productBeanDao;
private final ProductTransBeanDao productTransBeanDao;
private final WorkProcessBeanDao workProcessBeanDao;
private final WorkProcessDetailBeanDao workProcessDetailBeanDao;
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
daoConfigMap) {
super(db);
activityIslandBeanDaoConfig = daoConfigMap.get(ActivityIslandBeanDao.class).clone();
activityIslandBeanDaoConfig.initIdentityScope(type);
lineBeanDaoConfig = daoConfigMap.get(LineBeanDao.class).clone();
lineBeanDaoConfig.initIdentityScope(type);
menuOperationBeanDaoConfig = daoConfigMap.get(MenuOperationBeanDao.class).clone();
menuOperationBeanDaoConfig.initIdentityScope(type);
productBeanDaoConfig = daoConfigMap.get(ProductBeanDao.class).clone();
productBeanDaoConfig.initIdentityScope(type);
productTransBeanDaoConfig = daoConfigMap.get(ProductTransBeanDao.class).clone();
productTransBeanDaoConfig.initIdentityScope(type);
workProcessBeanDaoConfig = daoConfigMap.get(WorkProcessBeanDao.class).clone();
workProcessBeanDaoConfig.initIdentityScope(type);
workProcessDetailBeanDaoConfig = daoConfigMap.get(WorkProcessDetailBeanDao.class).clone();
workProcessDetailBeanDaoConfig.initIdentityScope(type);
activityIslandBeanDao = new ActivityIslandBeanDao(activityIslandBeanDaoConfig, this);
lineBeanDao = new LineBeanDao(lineBeanDaoConfig, this);
menuOperationBeanDao = new MenuOperationBeanDao(menuOperationBeanDaoConfig, this);
productBeanDao = new ProductBeanDao(productBeanDaoConfig, this);
productTransBeanDao = new ProductTransBeanDao(productTransBeanDaoConfig, this);
workProcessBeanDao = new WorkProcessBeanDao(workProcessBeanDaoConfig, this);
workProcessDetailBeanDao = new WorkProcessDetailBeanDao(workProcessDetailBeanDaoConfig, this);
registerDao(ActivityIslandBean.class, activityIslandBeanDao);
registerDao(LineBean.class, lineBeanDao);
registerDao(MenuOperationBean.class, menuOperationBeanDao);
registerDao(ProductBean.class, productBeanDao);
registerDao(ProductTransBean.class, productTransBeanDao);
registerDao(WorkProcessBean.class, workProcessBeanDao);
registerDao(WorkProcessDetailBean.class, workProcessDetailBeanDao);
}
public void clear() {
activityIslandBeanDaoConfig.clearIdentityScope();
lineBeanDaoConfig.clearIdentityScope();
menuOperationBeanDaoConfig.clearIdentityScope();
productBeanDaoConfig.clearIdentityScope();
productTransBeanDaoConfig.clearIdentityScope();
workProcessBeanDaoConfig.clearIdentityScope();
workProcessDetailBeanDaoConfig.clearIdentityScope();
}
public ActivityIslandBeanDao getActivityIslandBeanDao() {
return activityIslandBeanDao;
}
public LineBeanDao getLineBeanDao() {
return lineBeanDao;
}
public MenuOperationBeanDao getMenuOperationBeanDao() {
return menuOperationBeanDao;
}
public ProductBeanDao getProductBeanDao() {
return productBeanDao;
}
public ProductTransBeanDao getProductTransBeanDao() {
return productTransBeanDao;
}
public WorkProcessBeanDao getWorkProcessBeanDao() {
return workProcessBeanDao;
}
public WorkProcessDetailBeanDao getWorkProcessDetailBeanDao() {
return workProcessDetailBeanDao;
}
}