Search in sources :

Example 1 with Page

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);
}
Also used : Page(com.artlongs.framework.page.Page) GetAction(org.osgl.mvc.annotation.GetAction)

Example 2 with Page

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());
}
Also used : Page(com.artlongs.framework.page.Page)

Aggregations

Page (com.artlongs.framework.page.Page)2 GetAction (org.osgl.mvc.annotation.GetAction)1