
com.gitee.qdbp.jdbc.stream.SqlStream Maven / Gradle / Ivy
package com.gitee.qdbp.jdbc.stream;
import com.gitee.qdbp.jdbc.api.SqlDao;
/**
* SQL模板的流式操作对象
*
* @author zhaohuihua
* @version 20210530
*/
public class SqlStream {
protected final SqlDao dao;
public SqlStream(SqlDao dao) {
this.dao = dao;
}
/**
* 设置SqlId
*
* @param sqlId 查询数据的SqlId
* @return 返回后续流式操作对象
*/
public SqlOnAfterIdStream sqlId(String sqlId) {
return new SqlOnAfterIdStream(dao, sqlId);
}
/**
* 设置SqlId
*
* @param queryId 查询数据的SqlId
* @param countId 统计总数的SqlId
* @return 返回后续流式操作对象
*/
public SqlOnAfterIdPairStream sqlId(String queryId, String countId) {
return new SqlOnAfterIdPairStream(dao, queryId, countId);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy