cn.sylinx.hbatis.db.common.DbQuery 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
package cn.sylinx.hbatis.db.common;
import java.util.List;
import java.util.Map;
/**
* 数据查询对象
*
* @author han
*
*/
public interface DbQuery {
/**
* 查询一条记录
*
* @param sql
* sql语句
* @param params
* 参数
* @return Record
*/
public Record queryFirstRecord(final String sql, final Object... params);
/**
* 查询记录
*
* @param sql
* sql语句
* @param params
* 参数
* @return List
*/
public List queryRecords(final String sql, final Object... params);
/**
* 查询
*
* @param sql
* sql语句
* @param params
* 参数
* @return List