本文整理汇总了Java中com.jfinal.plugin.activerecord.Page.getList方法的典型用法代码示例。如果您正苦于以下问题:Java Page.getList方法的具体用法?Java Page.getList怎么用?Java Page.getList使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.jfinal.plugin.activerecord.Page
的用法示例。
在下文中一共展示了Page.getList方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getEmptyList
import com.jfinal.plugin.activerecord.Page; //导入方法依赖的package包/类
@SuppressWarnings("unchecked")
private static List<Actor> getEmptyList() {
Page<User> pages = User.me.paginate(1, 100);
List<Actor> actors = new ArrayList<Actor>();
for (User m : pages.getList()) {
Actor a = me.new Actor(m.get("phone").toString(), m.get("name")
.toString());
actors.add(a);
}
ApiResult ret = UserApi.getFollows(0);
ArrayList<Object> list = ret.getList("userlist");
LinkedHashMap<String, Object> map = new LinkedHashMap<String, Object>();
for (Object obj : list) {
map = (LinkedHashMap<String, Object>) obj;
actors.remove(me.new Actor(map.get("userid").toString(), ""));
}
return actors;
}
示例2: processShareList
import com.jfinal.plugin.activerecord.Page; //导入方法依赖的package包/类
private static OutMsg processShareList(Page<Share> list, InTextMsg inMsg) {
OutNewsMsg outMsg = new OutNewsMsg(inMsg);
for (Share m : list.getList()) {
outMsg.addNews(m.get("fromUserName").toString(),
m.get("fromUserName").toString() + "分享了一张图片",
m.get("picUrl").toString(), m.get("picUrl").toString());
}
return outMsg;
}
示例3: processUserList
import com.jfinal.plugin.activerecord.Page; //导入方法依赖的package包/类
private static String processUserList(Page<User> list) {
String str = "";
for (User user : list.getList()) {
str += String.format("%1$s,\t %2$s\n", user.get("name"),
user.get("phone"));
}
return str;
}
示例4: wrapList
import com.jfinal.plugin.activerecord.Page; //导入方法依赖的package包/类
private static List<Task> wrapList(Page<Task> pages){
List<Task> list=pages.getList();
for(Task m : list){
m.put("fromUserName",CacheHelper.getActorById(m.getStr("fromUserId")).name);
m.put("toUserName",CacheHelper.getActorById(m.getStr("toUserId")).name);
m.put("createDate", CacheHelper.toDate(m.get("createTime")));
}
return list;
}
示例5: wrapList
import com.jfinal.plugin.activerecord.Page; //导入方法依赖的package包/类
private Page<Share> wrapList(Page<Share> pages){
List<Share> list=pages.getList();
for(Share m : list){
m.put("createDate", CacheHelper.toDate(m.get("createTime")));
m.put("fromNickName",CacheHelper.getActorById(m.getStr("fromUserName")).name);
}
return pages;
}
示例6: listOuting
import com.jfinal.plugin.activerecord.Page; //导入方法依赖的package包/类
public List<Notice> listOuting(int pageNumber, int pageSize){
Page<Notice> pages = paginate(pageNumber, pageSize, "select *", "from wx_notice where state=0");
return pages.getList();
}
示例7: list
import com.jfinal.plugin.activerecord.Page; //导入方法依赖的package包/类
public List<Stimulate> list(int pageNumber, int pageSize) {
Page<Stimulate> pages = paginate(pageNumber, pageSize, "SELECT id,title,content,publishdatetime AS createDate ", "FROM core_stimulate ORDER BY publishdatetime desc");
return pages.getList();
}