DaoSession.java
1.22 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
package com.locus.town.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.lotus.town.dao.HubNotes;
import com.locus.town.greendao.HubNotesDao;
// THIS CODE IS GENERATED BY greenDAO, DO NOT EDIT.
/**
* {@inheritDoc}
*
* @see org.greenrobot.greendao.AbstractDaoSession
*/
public class DaoSession extends AbstractDaoSession {
private final DaoConfig hubNotesDaoConfig;
private final HubNotesDao hubNotesDao;
public DaoSession(Database db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
daoConfigMap) {
super(db);
hubNotesDaoConfig = daoConfigMap.get(HubNotesDao.class).clone();
hubNotesDaoConfig.initIdentityScope(type);
hubNotesDao = new HubNotesDao(hubNotesDaoConfig, this);
registerDao(HubNotes.class, hubNotesDao);
}
public void clear() {
hubNotesDaoConfig.clearIdentityScope();
}
public HubNotesDao getHubNotesDao() {
return hubNotesDao;
}
}