org.babyfish.jimmer.sql.ast.query.PagingQueries Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jimmer-sql Show documentation
Show all versions of jimmer-sql Show documentation
A revolutionary ORM framework for both java and kotlin
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, E> query,
int pageIndex,
int pageSize,
PageFactory pageFactory
) {
return query.fetchPage(pageIndex, pageSize, pageFactory);
}
@SuppressWarnings("unchecked")
public static P execute(
ConfigurableRootQuery, E> query,
int pageIndex,
int pageSize,
Connection con,
PageFactory pageFactory
) {
return query.fetchPage(pageIndex, pageSize, con, pageFactory);
}
}