com.github.chengyuxing.sql.plugins.PageHelperProvider Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of rabbit-sql Show documentation
Show all versions of rabbit-sql Show documentation
Light wrapper of JDBC, support ddl, dml, query, plsql/procedure/function, transaction and manage sql
file.
package com.github.chengyuxing.sql.plugins;
import com.github.chengyuxing.sql.page.PageHelper;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import java.sql.DatabaseMetaData;
/**
* Page helper provider
*/
@FunctionalInterface
public interface PageHelperProvider {
/**
* Implement custom page helper.
*
* @param databaseMetaData current database metadata
* @param dbName current database name
* @param namedParamPrefix current named parameter prefix
* @return PageHelper instance
*/
@Nullable PageHelper customPageHelper(@NotNull DatabaseMetaData databaseMetaData,
@NotNull String dbName,
char namedParamPrefix);
}