Skip to content

Instantly share code, notes, and snippets.

@frombegin
Last active December 8, 2015 21:00
Show Gist options
  • Select an option

  • Save frombegin/ee51c5fb69fa37fd2698 to your computer and use it in GitHub Desktop.

Select an option

Save frombegin/ee51c5fb69fa37fd2698 to your computer and use it in GitHub Desktop.

Revisions

  1. frombegin revised this gist Dec 8, 2015. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion dao-pagination.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    * 将数据操作移到 dao 层,包括:

    ```
    ```java
    int getTotalCount(DSLContext create, ...)
    List<Record-Or-CustomItem> getList(DSLContext create, ..., limit, offset)
    ```
  2. frombegin revised this gist Dec 8, 2015. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion dao-pagination.md
    Original file line number Diff line number Diff line change
    @@ -2,9 +2,10 @@

    * 将数据操作移到 dao 层,包括:


    ```
    int getTotalCount(DSLContext create, ...)
    List<Record-Or-CustomItem> getList(DSLContext create, ..., limit, offset)
    ```

    * biz 层调用 dao,封装成 Pagination

  3. frombegin revised this gist Dec 8, 2015. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions dao-pagination.md
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,7 @@

    * 将数据操作移到 dao 层,包括:


    int getTotalCount(DSLContext create, ...)
    List<Record-Or-CustomItem> getList(DSLContext create, ..., limit, offset)

  4. frombegin revised this gist Dec 8, 2015. No changes.
  5. frombegin revised this gist Dec 8, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions dao-pagination.md
    Original file line number Diff line number Diff line change
    @@ -1,10 +1,10 @@
    分页器处理:

    将数据操作移到 dao 层,包括:
    * 将数据操作移到 dao 层,包括:

    int getTotalCount(DSLContext create, ...)
    List<Record-Or-CustomItem> getList(DSLContext create, ..., limit, offset)

    biz 层调用 dao,封装成 Pagination
    * biz 层调用 dao,封装成 Pagination

    * jsonrpc4j 需要扩展支持 pagination, ObjectMapper
  6. frombegin revised this gist Dec 8, 2015. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion dao-pagination.md
    Original file line number Diff line number Diff line change
    @@ -5,4 +5,6 @@
    int getTotalCount(DSLContext create, ...)
    List<Record-Or-CustomItem> getList(DSLContext create, ..., limit, offset)

    * biz 层调用 dao,封装成 Pagination
    * biz 层调用 dao,封装成 Pagination

    * jsonrpc4j 需要扩展支持 pagination, ObjectMapper
  7. frombegin revised this gist Dec 8, 2015. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions dao-pagination.md
    Original file line number Diff line number Diff line change
    @@ -2,7 +2,7 @@

    * 将数据操作移到 dao 层,包括:

    int getTotalCount(DSLContext create, ...)
    List<Record-Or-CustomItem> getList(DSLContext create, ..., limit, offset)
    int getTotalCount(DSLContext create, ...)
    List<Record-Or-CustomItem> getList(DSLContext create, ..., limit, offset)

    * biz 层调用 dao,封装成 Pagination
  8. frombegin created this gist Dec 8, 2015.
    8 changes: 8 additions & 0 deletions dao-pagination.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,8 @@
    分页器处理:

    * 将数据操作移到 dao 层,包括:

    int getTotalCount(DSLContext create, ...)
    List<Record-Or-CustomItem> getList(DSLContext create, ..., limit, offset)

    * biz 层调用 dao,封装成 Pagination