Class PageJdbcHelper

  • All Implemented Interfaces:

    
    public class PageJdbcHelper
    
                        
    Pagination Util for jdbc and jooq.
    
    * total < 0 - run count, run select
    * total = 0 - no count, no select
    * total > 0 - no count, run select
    
    Since:

    2020-09-30

    Author:

    trydofor

    • Constructor Detail

      • PageJdbcHelper

        PageJdbcHelper()
    • Method Detail

      • use

        @NotNull() static PageJdbcHelper.CountJdbc use(JdbcTemplate tpl, PageQuery page, int total)

        Page query by jdbc

        Parameters:
        tpl - jdbc template
        page - query info
        total - the count cached in service level