use of com.artlongs.framework.page.Page in project act-eagle-allone by mailtous.
the class Hello method pageOfjson.
@GetAction("user/page.json")
public RenderJSON pageOfjson() throws SQLException {
String sql = " select * from user where id > ?";
Page<User> userPage = userService.getPage(new Page(), sql, new Object[] { 0 });
return renderJson(userPage);
}
use of com.artlongs.framework.page.Page in project act-eagle-allone by mailtous.
the class Test method main.
public static void main(String[] args) throws Exception {
// Act.start("act-eagle");
String sf = " username,userId";
String ss = "DESC";
String s = megerSfSc(sf, ss);
System.err.println("s= " + s);
orderConditionSplit(s, new Page());
}