All Downloads are FREE. Search and download functionalities are using the official Maven repository.

cn.sylinx.hbatis.db.common.MapperQuery Maven / Gradle / Ivy

There is a newer version: 2.0.0.RELEASE
Show 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);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy