de.greenrobot.dao.AbstractDao Java Examples

The following examples show how to use de.greenrobot.dao.AbstractDao. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: DaoSession.java    From NBAPlus with Apache License 2.0 6 votes vote down vote up
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    greenNewsDaoConfig = daoConfigMap.get(GreenNewsDao.class).clone();
    greenNewsDaoConfig.initIdentityScope(type);

    greenStatDaoConfig = daoConfigMap.get(GreenStatDao.class).clone();
    greenStatDaoConfig.initIdentityScope(type);

    greenNewsDao = new GreenNewsDao(greenNewsDaoConfig, this);
    greenStatDao = new GreenStatDao(greenStatDaoConfig, this);

    registerDao(GreenNews.class, greenNewsDao);
    registerDao(GreenStat.class, greenStatDao);
}
 
Example #2
Source File: DaoSession.java    From iBeebo with GNU General Public License v3.0 6 votes vote down vote up
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    green_AccountBeanDaoConfig = daoConfigMap.get(Green_AccountBeanDao.class).clone();
    green_AccountBeanDaoConfig.initIdentityScope(type);

    green_AtUsersBeanDaoConfig = daoConfigMap.get(Green_AtUsersBeanDao.class).clone();
    green_AtUsersBeanDaoConfig.initIdentityScope(type);

    green_TimeLineStatusDaoConfig = daoConfigMap.get(Green_TimeLineStatusDao.class).clone();
    green_TimeLineStatusDaoConfig.initIdentityScope(type);

    green_AccountBeanDao = new Green_AccountBeanDao(green_AccountBeanDaoConfig, this);
    green_AtUsersBeanDao = new Green_AtUsersBeanDao(green_AtUsersBeanDaoConfig, this);
    green_TimeLineStatusDao = new Green_TimeLineStatusDao(green_TimeLineStatusDaoConfig, this);

    registerDao(Green_AccountBean.class, green_AccountBeanDao);
    registerDao(Green_AtUsersBean.class, green_AtUsersBeanDao);
    registerDao(Green_TimeLineStatus.class, green_TimeLineStatusDao);
}
 
Example #3
Source File: DaoSession.java    From AndroidDatabaseLibraryComparison with MIT License 6 votes vote down vote up
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    simpleAddressItemDaoConfig = daoConfigMap.get(SimpleAddressItemDao.class).clone();
    simpleAddressItemDaoConfig.initIdentityScope(type);

    addressItemDaoConfig = daoConfigMap.get(AddressItemDao.class).clone();
    addressItemDaoConfig.initIdentityScope(type);

    contactDaoConfig = daoConfigMap.get(ContactDao.class).clone();
    contactDaoConfig.initIdentityScope(type);

    addressBookDaoConfig = daoConfigMap.get(AddressBookDao.class).clone();
    addressBookDaoConfig.initIdentityScope(type);

    simpleAddressItemDao = new SimpleAddressItemDao(simpleAddressItemDaoConfig, this);
    addressItemDao = new AddressItemDao(addressItemDaoConfig, this);
    contactDao = new ContactDao(contactDaoConfig, this);
    addressBookDao = new AddressBookDao(addressBookDaoConfig, this);

    registerDao(SimpleAddressItem.class, simpleAddressItemDao);
    registerDao(AddressItem.class, addressItemDao);
    registerDao(Contact.class, contactDao);
    registerDao(AddressBook.class, addressBookDao);
}
 
Example #4
Source File: DaoSession.java    From RxJavaApp with Apache License 2.0 6 votes vote down vote up
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    operatorsDaoConfig = daoConfigMap.get(operatorsDao.class).clone();
    operatorsDaoConfig.initIdentityScope(type);

    alloperatorsDaoConfig = daoConfigMap.get(alloperatorsDao.class).clone();
    alloperatorsDaoConfig.initIdentityScope(type);

    operatorsDao = new operatorsDao(operatorsDaoConfig, this);
    alloperatorsDao = new alloperatorsDao(alloperatorsDaoConfig, this);

    registerDao(operators.class, operatorsDao);
    registerDao(alloperators.class, alloperatorsDao);
}
 
Example #5
Source File: DaoSession.java    From SweetMusicPlayer with Apache License 2.0 6 votes vote down vote up
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    musicInfoDaoConfig = daoConfigMap.get(MusicInfoDao.class).clone();
    musicInfoDaoConfig.initIdentityScope(type);

    albumInfoDaoConfig = daoConfigMap.get(AlbumInfoDao.class).clone();
    albumInfoDaoConfig.initIdentityScope(type);

    artistInfoDaoConfig = daoConfigMap.get(ArtistInfoDao.class).clone();
    artistInfoDaoConfig.initIdentityScope(type);

    musicInfoDao = new MusicInfoDao(musicInfoDaoConfig, this);
    albumInfoDao = new AlbumInfoDao(albumInfoDaoConfig, this);
    artistInfoDao = new ArtistInfoDao(artistInfoDaoConfig, this);

    registerDao(MusicInfo.class, musicInfoDao);
    registerDao(AlbumInfo.class, albumInfoDao);
    registerDao(ArtistInfo.class, artistInfoDao);
}
 
Example #6
Source File: DaoSession.java    From Maps with GNU General Public License v2.0 6 votes vote down vote up
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    bJCameraDaoConfig = daoConfigMap.get(BJCameraDao.class).clone();
    bJCameraDaoConfig.initIdentityScope(type);

    poiSearchTipDaoConfig = daoConfigMap.get(PoiSearchTipDao.class).clone();
    poiSearchTipDaoConfig.initIdentityScope(type);

    bJCameraDao = new BJCameraDao(bJCameraDaoConfig, this);
    poiSearchTipDao = new PoiSearchTipDao(poiSearchTipDaoConfig, this);

    registerDao(BJCamera.class, bJCameraDao);
    registerDao(PoiSearchTip.class, poiSearchTipDao);
}
 
Example #7
Source File: DaoSession.java    From sealtalk-android with MIT License 6 votes vote down vote up
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    friendDaoConfig = daoConfigMap.get(FriendDao.class).clone();
    friendDaoConfig.initIdentityScope(type);

    groupsDaoConfig = daoConfigMap.get(GroupsDao.class).clone();
    groupsDaoConfig.initIdentityScope(type);

    blackListDaoConfig = daoConfigMap.get(BlackListDao.class).clone();
    blackListDaoConfig.initIdentityScope(type);

    friendDao = new FriendDao(friendDaoConfig, this);
    groupsDao = new GroupsDao(groupsDaoConfig, this);
    blackListDao = new BlackListDao(blackListDaoConfig, this);

    registerDao(Friend.class, friendDao);
    registerDao(Groups.class, groupsDao);
    registerDao(BlackList.class, blackListDao);
}
 
Example #8
Source File: DaoSession.java    From Expert-Android-Programming with MIT License 6 votes vote down vote up
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    //MEMBERS ITEM
    restaurantImageDaoConfig = daoConfigMap.get(RestaurantImageDao.class).clone();
    restaurantImageDaoConfig.initIdentityScope(type);
    restaurantImageDao = new RestaurantImageDao(restaurantImageDaoConfig, this);
    registerDao(RestaurantImage.class, restaurantImageDao);

    //MEMBERS ITEM
    photoItemDaoConfig = daoConfigMap.get(PhotoItemDao.class).clone();
    photoItemDaoConfig.initIdentityScope(type);
    photoItemDao = new PhotoItemDao(photoItemDaoConfig, this);
    registerDao(PhotoItem.class, photoItemDao);

    //TODO ADD HERE
}
 
Example #9
Source File: DaoSession.java    From iBeebo with GNU General Public License v3.0 6 votes vote down vote up
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    green_AccountBeanDaoConfig = daoConfigMap.get(Green_AccountBeanDao.class).clone();
    green_AccountBeanDaoConfig.initIdentityScope(type);

    green_AtUsersBeanDaoConfig = daoConfigMap.get(Green_AtUsersBeanDao.class).clone();
    green_AtUsersBeanDaoConfig.initIdentityScope(type);

    green_TimeLineStatusDaoConfig = daoConfigMap.get(Green_TimeLineStatusDao.class).clone();
    green_TimeLineStatusDaoConfig.initIdentityScope(type);

    green_AccountBeanDao = new Green_AccountBeanDao(green_AccountBeanDaoConfig, this);
    green_AtUsersBeanDao = new Green_AtUsersBeanDao(green_AtUsersBeanDaoConfig, this);
    green_TimeLineStatusDao = new Green_TimeLineStatusDao(green_TimeLineStatusDaoConfig, this);

    registerDao(Green_AccountBean.class, green_AccountBeanDao);
    registerDao(Green_AtUsersBean.class, green_AtUsersBeanDao);
    registerDao(Green_TimeLineStatus.class, green_TimeLineStatusDao);
}
 
Example #10
Source File: GreenDaoUtils.java    From UltimateAndroid with Apache License 2.0 5 votes vote down vote up
/**
 * Executes the query and returns the result as a list containing all entities loaded into memory.
 * @param dao
 * @param isAsc
 * @param orderProperty
 * @return
 */
public static List getList(AbstractDao dao, boolean isAsc, Property... orderProperty) {
    setIfLog();
    QueryBuilder queryBuilder = dao.queryBuilder();
    if (isAsc) {
        queryBuilder = queryBuilder.orderAsc(orderProperty);
    } else {
        queryBuilder = queryBuilder.orderDesc(orderProperty);
    }
    List indexFavList = queryBuilder.list();
    return indexFavList;
}
 
Example #11
Source File: DaoSession.java    From sctalk with Apache License 2.0 5 votes vote down vote up
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    departmentDaoConfig = daoConfigMap.get(DepartmentDao.class).clone();
    departmentDaoConfig.initIdentityScope(type);

    userDaoConfig = daoConfigMap.get(UserDao.class).clone();
    userDaoConfig.initIdentityScope(type);

    groupDaoConfig = daoConfigMap.get(GroupDao.class).clone();
    groupDaoConfig.initIdentityScope(type);

    messageDaoConfig = daoConfigMap.get(MessageDao.class).clone();
    messageDaoConfig.initIdentityScope(type);

    sessionDaoConfig = daoConfigMap.get(SessionDao.class).clone();
    sessionDaoConfig.initIdentityScope(type);

    departmentDao = new DepartmentDao(departmentDaoConfig, this);
    userDao = new UserDao(userDaoConfig, this);
    groupDao = new GroupDao(groupDaoConfig, this);
    messageDao = new MessageDao(messageDaoConfig, this);
    sessionDao = new SessionDao(sessionDaoConfig, this);

    registerDao(DepartmentEntity.class, departmentDao);
    registerDao(UserEntity.class, userDao);
    registerDao(GroupEntity.class, groupDao);
    registerDao(MessageEntity.class, messageDao);
    registerDao(SessionEntity.class, sessionDao);
}
 
Example #12
Source File: AbstractOp.java    From DMusic with Apache License 2.0 5 votes vote down vote up
/**
 * 插入一条记录
 */
protected void insert(AbstractDao dao, Object o) {
    if (dao == null || o == null) {
        return;
    }
    dao.insert(o);
}
 
Example #13
Source File: AbstractOp.java    From DMusic with Apache License 2.0 5 votes vote down vote up
/**
 * 插入一条记录
 */
protected void insertOrReplace(AbstractDao dao, Object o) {
    if (dao == null || o == null) {
        return;
    }
    dao.insertOrReplace(o);
}
 
Example #14
Source File: AbstractOp.java    From DMusic with Apache License 2.0 5 votes vote down vote up
/**
 * 删除表中所有记录
 */
protected void deleteAll(AbstractDao dao) {
    if (dao == null) {
        return;
    }
    dao.deleteAll();
}
 
Example #15
Source File: AbstractOp.java    From DMusic with Apache License 2.0 5 votes vote down vote up
/**
 * 删除表中一条记录
 *
 * @param id: 主键
 */
protected void deleteById(AbstractDao dao, Long id) {
    if (dao == null) {
        return;
    }
    dao.deleteByKey(id);
}
 
Example #16
Source File: GreenDaoUtils.java    From UltimateAndroid with Apache License 2.0 5 votes vote down vote up
/**
 * Executes the query and returns the result as a list containing all entities loaded into memory.
 * @param dao
 * @param isAsc
 * @param orderProperty
 * @return
 */
public static List getList(AbstractDao dao, boolean isAsc, Property... orderProperty) {
    setIfLog();
    QueryBuilder queryBuilder = dao.queryBuilder();
    if (isAsc) {
        queryBuilder = queryBuilder.orderAsc(orderProperty);
    } else {
        queryBuilder = queryBuilder.orderDesc(orderProperty);
    }
    List indexFavList = queryBuilder.list();
    return indexFavList;
}
 
Example #17
Source File: GreenDaoUtils.java    From UltimateAndroid with Apache License 2.0 5 votes vote down vote up
/**
 * Executes the query and returns the result as a list containing all entities loaded into memory.
 * @param dao
 * @param orderProperty
 * @param whereCondition
 * @param whereConditions
 * @return
 */
public static List getList(AbstractDao dao, Property orderProperty, WhereCondition whereCondition, WhereCondition... whereConditions) {
    setIfLog();
    List indexFavList = dao.queryBuilder()
            .where(whereCondition, whereConditions)
            .orderAsc(orderProperty)
            .list();
    return indexFavList;
}
 
Example #18
Source File: GreenDaoUtils.java    From UltimateAndroid with Apache License 2.0 5 votes vote down vote up
public static List getList(AbstractDao dao, Property orderProperty, WhereCondition cond, WhereCondition... condMore) {
    setIfLog();
    List indexFavList = dao.queryBuilder()
            .where(cond, condMore)
            .orderAsc(orderProperty)
            .list();
    return indexFavList;
}
 
Example #19
Source File: DaoSession.java    From Dota2Helper with Apache License 2.0 5 votes vote down vote up
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    greenNewsDaoConfig = daoConfigMap.get(GreenNewsDao.class).clone();
    greenNewsDaoConfig.initIdentityScope(type);

    greenStrategyDaoConfig = daoConfigMap.get(GreenStrategyDao.class).clone();
    greenStrategyDaoConfig.initIdentityScope(type);

    greenUpdateDaoConfig = daoConfigMap.get(GreenUpdateDao.class).clone();
    greenUpdateDaoConfig.initIdentityScope(type);

    greenVideoDaoConfig = daoConfigMap.get(GreenVideoDao.class).clone();
    greenVideoDaoConfig.initIdentityScope(type);

    greenWatchedVideoDaoConfig = daoConfigMap.get(GreenWatchedVideoDao.class).clone();
    greenWatchedVideoDaoConfig.initIdentityScope(type);

    greenNewsDao = new GreenNewsDao(greenNewsDaoConfig, this);
    greenStrategyDao = new GreenStrategyDao(greenStrategyDaoConfig, this);
    greenUpdateDao = new GreenUpdateDao(greenUpdateDaoConfig, this);
    greenVideoDao = new GreenVideoDao(greenVideoDaoConfig, this);
    greenWatchedVideoDao = new GreenWatchedVideoDao(greenWatchedVideoDaoConfig, this);

    registerDao(GreenNews.class, greenNewsDao);
    registerDao(GreenStrategy.class, greenStrategyDao);
    registerDao(GreenUpdate.class, greenUpdateDao);
    registerDao(GreenVideo.class, greenVideoDao);
    registerDao(GreenWatchedVideo.class, greenWatchedVideoDao);
}
 
Example #20
Source File: GreenDaoUtils.java    From UltimateAndroid with Apache License 2.0 5 votes vote down vote up
public static List getList(AbstractDao dao, boolean isAsc, Property... orderProperty) {
    setIfLog();
    QueryBuilder queryBuilder = dao.queryBuilder();
    if (isAsc) {
        queryBuilder = queryBuilder.orderAsc(orderProperty);
    } else {
        queryBuilder = queryBuilder.orderDesc(orderProperty);
    }
    List indexFavList = queryBuilder.list();
    return indexFavList;
}
 
Example #21
Source File: DaoSession.java    From octoandroid with GNU General Public License v3.0 5 votes vote down vote up
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    printerDbEntityDaoConfig = daoConfigMap.get(PrinterDbEntityDao.class).clone();
    printerDbEntityDaoConfig.initIdentityScope(type);

    printerDbEntityDao = new PrinterDbEntityDao(printerDbEntityDaoConfig, this);

    registerDao(PrinterDbEntity.class, printerDbEntityDao);
}
 
Example #22
Source File: AsyncOperation.java    From MiBandDecompiled with Apache License 2.0 5 votes vote down vote up
AsyncOperation(OperationType operationtype, AbstractDao abstractdao, Object obj, int i)
{
    type = operationtype;
    flags = i;
    dao = abstractdao;
    database = null;
    parameter = obj;
}
 
Example #23
Source File: AbstractDaoTestSinglePk.java    From MiBandDecompiled with Apache License 2.0 5 votes vote down vote up
public void testQuery()
{
    dao.insert(createEntityWithRandomPk());
    Object obj = nextPk();
    dao.insert(createEntity(obj));
    dao.insert(createEntityWithRandomPk());
    String s = (new StringBuilder()).append("WHERE ").append(dao.getPkColumns()[0]).append("=?").toString();
    AbstractDao abstractdao = dao;
    String as[] = new String[1];
    as[0] = obj.toString();
    List list = abstractdao.queryRaw(s, as);
    assertEquals(1, list.size());
    assertEquals(obj, daoAccess.getKey(list.get(0)));
}
 
Example #24
Source File: MigrationHelper.java    From MeiZiNews with MIT License 5 votes vote down vote up
private void restoreData(SQLiteDatabase db, Class<? extends AbstractDao<?, ?>>... daoClasses) {
    for(int i = 0; i < daoClasses.length; i++) {
        DaoConfig daoConfig = new DaoConfig(db, daoClasses[i]);

        String tableName = daoConfig.tablename;
        String tempTableName = daoConfig.tablename.concat("_TEMP");
        ArrayList<String> properties = new ArrayList();

        for (int j = 0; j < daoConfig.properties.length; j++) {
            String columnName = daoConfig.properties[j].columnName;

            if(getColumns(db, tempTableName).contains(columnName)) {
                properties.add(columnName);
            }
        }

        StringBuilder insertTableStringBuilder = new StringBuilder();

        insertTableStringBuilder.append("INSERT INTO ").append(tableName).append(" (");
        insertTableStringBuilder.append(TextUtils.join(",", properties));
        insertTableStringBuilder.append(") SELECT ");
        insertTableStringBuilder.append(TextUtils.join(",", properties));
        insertTableStringBuilder.append(" FROM ").append(tempTableName).append(";");

        StringBuilder dropTableStringBuilder = new StringBuilder();

        dropTableStringBuilder.append("DROP TABLE ").append(tempTableName);

        db.execSQL(insertTableStringBuilder.toString());
        db.execSQL(dropTableStringBuilder.toString());
    }
}
 
Example #25
Source File: DaoSession.java    From ZhiHu-TopAnswer with Apache License 2.0 5 votes vote down vote up
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    collectionDaoConfig = daoConfigMap.get(CollectionDao.class).clone();
    collectionDaoConfig.initIdentityScope(type);

    collectionDao = new CollectionDao(collectionDaoConfig, this);

    registerDao(Collection.class, collectionDao);
}
 
Example #26
Source File: Query.java    From MiBandDecompiled with Apache License 2.0 5 votes vote down vote up
private Query(QueryData querydata, AbstractDao abstractdao, String s, String as[], int i, int j)
{
    super(abstractdao, s, as);
    queryData = querydata;
    limitPosition = i;
    offsetPosition = j;
}
 
Example #27
Source File: QueryBuilder.java    From MiBandDecompiled with Apache License 2.0 5 votes vote down vote up
protected QueryBuilder(AbstractDao abstractdao, String s)
{
    dao = abstractdao;
    tablePrefix = s;
    values = new ArrayList();
    whereConditions = new ArrayList();
}
 
Example #28
Source File: AbstractQuery.java    From MiBandDecompiled with Apache License 2.0 5 votes vote down vote up
protected AbstractQuery(AbstractDao abstractdao, String s, String as[])
{
    dao = abstractdao;
    daoAccess = new InternalQueryDaoAccess(abstractdao);
    sql = s;
    parameters = as;
}
 
Example #29
Source File: DaoSession.java    From anetty_client with Apache License 2.0 5 votes vote down vote up
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    deviceDaoConfig = daoConfigMap.get(DeviceDao.class).clone();
    deviceDaoConfig.initIdentityScope(type);

    deviceDao = new DeviceDao(deviceDaoConfig, this);

    registerDao(Device.class, deviceDao);
}
 
Example #30
Source File: DaoSession.java    From JianDan with Apache License 2.0 5 votes vote down vote up
public DaoSession(SQLiteDatabase db, IdentityScopeType type, Map<Class<? extends AbstractDao<?, ?>>, DaoConfig>
        daoConfigMap) {
    super(db);

    jokeCacheDaoConfig = daoConfigMap.get(JokeCacheDao.class).clone();
    jokeCacheDaoConfig.initIdentityScope(type);

    freshNewsCacheDaoConfig = daoConfigMap.get(FreshNewsCacheDao.class).clone();
    freshNewsCacheDaoConfig.initIdentityScope(type);

    pictureCacheDaoConfig = daoConfigMap.get(PictureCacheDao.class).clone();
    pictureCacheDaoConfig.initIdentityScope(type);

    sisterCacheDaoConfig = daoConfigMap.get(SisterCacheDao.class).clone();
    sisterCacheDaoConfig.initIdentityScope(type);

    videoCacheDaoConfig = daoConfigMap.get(VideoCacheDao.class).clone();
    videoCacheDaoConfig.initIdentityScope(type);

    jokeCacheDao = new JokeCacheDao(jokeCacheDaoConfig, this);
    freshNewsCacheDao = new FreshNewsCacheDao(freshNewsCacheDaoConfig, this);
    pictureCacheDao = new PictureCacheDao(pictureCacheDaoConfig, this);
    sisterCacheDao = new SisterCacheDao(sisterCacheDaoConfig, this);
    videoCacheDao = new VideoCacheDao(videoCacheDaoConfig, this);

    registerDao(JokeCache.class, jokeCacheDao);
    registerDao(FreshNewsCache.class, freshNewsCacheDao);
    registerDao(PictureCache.class, pictureCacheDao);
    registerDao(SisterCache.class, sisterCacheDao);
    registerDao(VideoCache.class, videoCacheDao);
}