Search in sources :

Example 1 with SearchDao

use of org.qii.weiciyuan.dao.search.SearchDao in project weiciyuan by qii.

the class SearchStatusLoader method loadData.

public SearchStatusListBean loadData() throws WeiboException {
    SearchDao dao = new SearchDao(token, searchWord);
    dao.setPage(page);
    SearchStatusListBean result = null;
    lock.lock();
    try {
        result = dao.getStatusList();
    } finally {
        lock.unlock();
    }
    return result;
}
Also used : SearchDao(org.qii.weiciyuan.dao.search.SearchDao) SearchStatusListBean(org.qii.weiciyuan.bean.SearchStatusListBean)

Example 2 with SearchDao

use of org.qii.weiciyuan.dao.search.SearchDao in project weiciyuan by qii.

the class SearchUserLoader method loadData.

public UserListBean loadData() throws WeiboException {
    SearchDao dao = new SearchDao(token, searchWord);
    dao.setPage(page);
    UserListBean result = null;
    lock.lock();
    try {
        result = dao.getUserList();
    } finally {
        lock.unlock();
    }
    return result;
}
Also used : SearchDao(org.qii.weiciyuan.dao.search.SearchDao) UserListBean(org.qii.weiciyuan.bean.UserListBean)

Aggregations

SearchDao (org.qii.weiciyuan.dao.search.SearchDao)2 SearchStatusListBean (org.qii.weiciyuan.bean.SearchStatusListBean)1 UserListBean (org.qii.weiciyuan.bean.UserListBean)1