All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.babyfish.jimmer.sql.ast.query.PagingQueries Maven / Gradle / Ivy

There is a newer version: 0.9.19
Show newest version
package org.babyfish.jimmer.sql.ast.query;

import java.sql.Connection;

/**
 * @see ConfigurableRootQuery#fetchPage(int, int, PageFactory) 
 * @see ConfigurableRootQuery#fetchPage(int, int, Connection, PageFactory)  
 */
@Deprecated
public class PagingQueries {

    private PagingQueries() {}

    public static  P execute(
            ConfigurableRootQuery query,
            int pageIndex,
            int pageSize,
            PageFactory pageFactory
    ) {
        return query.fetchPage(pageIndex, pageSize, pageFactory);
    }

    @SuppressWarnings("unchecked")
    public static  P execute(
            ConfigurableRootQuery query,
            int pageIndex,
            int pageSize,
            Connection con,
            PageFactory pageFactory
    ) {
        return query.fetchPage(pageIndex, pageSize, con, pageFactory);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy