本文整理汇总了Java中com.dao.ConfigDao类的典型用法代码示例。如果您正苦于以下问题:Java ConfigDao类的具体用法?Java ConfigDao怎么用?Java ConfigDao使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ConfigDao类属于com.dao包,在下文中一共展示了ConfigDao类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createAllTables
import com.dao.ConfigDao; //导入依赖的package包/类
/** Creates underlying database table using DAOs. */
public static void createAllTables(SQLiteDatabase db, boolean ifNotExists) {
ConfigDao.createTable(db, ifNotExists);
GroupDetalDao.createTable(db, ifNotExists);
UserInfoDao.createTable(db, ifNotExists);
UserDao.createTable(db, ifNotExists);
InviteMessageDao.createTable(db, ifNotExists);
}
示例2: dropAllTables
import com.dao.ConfigDao; //导入依赖的package包/类
/** Drops underlying database table using DAOs. */
public static void dropAllTables(SQLiteDatabase db, boolean ifExists) {
ConfigDao.dropTable(db, ifExists);
GroupDetalDao.dropTable(db, ifExists);
UserInfoDao.dropTable(db, ifExists);
UserDao.dropTable(db, ifExists);
InviteMessageDao.dropTable(db, ifExists);
}
示例3: DaoMaster
import com.dao.ConfigDao; //导入依赖的package包/类
public DaoMaster(SQLiteDatabase db) {
super(db, SCHEMA_VERSION);
registerDaoClass(ConfigDao.class);
registerDaoClass(GroupDetalDao.class);
registerDaoClass(UserInfoDao.class);
registerDaoClass(UserDao.class);
registerDaoClass(InviteMessageDao.class);
}
示例4: DaoSession
import com.dao.ConfigDao; //导入依赖的package包/类
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
daoConfigMap) {
super(db);
configDaoConfig = daoConfigMap.get(ConfigDao.class).clone();
configDaoConfig.initIdentityScope(type);
groupDetalDaoConfig = daoConfigMap.get(GroupDetalDao.class).clone();
groupDetalDaoConfig.initIdentityScope(type);
userInfoDaoConfig = daoConfigMap.get(UserInfoDao.class).clone();
userInfoDaoConfig.initIdentityScope(type);
userDaoConfig = daoConfigMap.get(UserDao.class).clone();
userDaoConfig.initIdentityScope(type);
inviteMessageDaoConfig = daoConfigMap.get(InviteMessageDao.class).clone();
inviteMessageDaoConfig.initIdentityScope(type);
configDao = new ConfigDao(configDaoConfig, this);
groupDetalDao = new GroupDetalDao(groupDetalDaoConfig, this);
userInfoDao = new UserInfoDao(userInfoDaoConfig, this);
userDao = new UserDao(userDaoConfig, this);
inviteMessageDao = new InviteMessageDao(inviteMessageDaoConfig, this);
registerDao(ConfigDO.class, configDao);
registerDao(GroupDetalDO.class, groupDetalDao);
registerDao(UserInfoDO.class, userInfoDao);
registerDao(UserDO.class, userDao);
registerDao(InviteMessageDO.class, inviteMessageDao);
}
示例5: getConfigDao
import com.dao.ConfigDao; //导入依赖的package包/类
public ConfigDao getConfigDao() {
return configDao;
}