com.bixuebihui.r2dbc.sql.IReaderService Maven / Gradle / Ivy
The newest version!
package com.bixuebihui.r2dbc.sql;
import reactor.core.publisher.Mono;
import java.sql.SQLException;
import java.util.Collection;
import java.util.List;
/**
* 配合使用完成分页读取数据库表
*
* @author xingwx
* @param 返回类型
* @version $Id: $Id
*/
public interface IReaderService {
/**
* select.
*
* @param whereClause a {@link String} object.
* @param params parameters for prepared statement
* @param orderBy a {@link String} object.
* @param rowStart a int.
* @param rowEnd a int.
* @return a {@link Collection} object.
*/
Mono> select(String whereClause, Object[] params, String orderBy, int rowStart, int rowEnd);
/**
* count.
*
* @param whereClause a {@link String} object.
* @return a int.
*/
Mono count(String whereClause);
Mono countWhere(String whereClause, Object[] params);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy