cn.sylinx.hbatis.db.common.MapperQuery Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hbatis-core Show documentation
Show all versions of hbatis-core Show documentation
hbatis is a simple orm framework
The newest version!
package cn.sylinx.hbatis.db.common;
import java.util.List;
import cn.sylinx.hbatis.db.mapper.QueryMapper;
/**
* Mapper查询类
*
* @author han
*
*/
public interface MapperQuery {
/**
* 使用Mapper查询
*
* @param sql
* sql语句
* @param mapper
* 查询mapper
* @param params
* 参数
* @return List
*/
public List query(final String sql, final QueryMapper mapper, final Object... params);
/**
* 使用Mapper查询第一条记录
*
* @param sql
* sql语句
* @param mapper
* 查询mapper
* @param params
* 参数
* @return List
*/
public T queryFirst(final String sql, final QueryMapper mapper, final Object... params);
}