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

cn.sylinx.hbatis.ext.mirage.MirageCacheQuery Maven / Gradle / Ivy

There is a newer version: 2.0.0.RELEASE
Show newest version
package cn.sylinx.hbatis.ext.mirage;

import java.util.List;
import java.util.Map;

import cn.sylinx.hbatis.db.common.Record;
import cn.sylinx.hbatis.ext.res.ClasspathSqlResource;

public interface MirageCacheQuery {

	/**
	 * 查询Map列表
	 * 
	 * @param sqlId
	 * @param params
	 * @return
	 */
	public List> queryForMapList(ClasspathSqlResource sqlResource, Map params);

	/**
	 * 查询记录
	 * 
	 * @param sqlId
	 * @param params
	 * @return
	 */
	public List queryForRecords(ClasspathSqlResource sqlResource, Map params);

	/**
	 * 查询第一条记录
	 * 
	 * @param sqlId
	 * @param params
	 * @return
	 */
	public Record queryFirstRecord(ClasspathSqlResource sqlResource, Map params);

	/**
	 * 查询记录
	 * 
	 * @param sqlResource
	 * @param params
	 * @return
	 */
	public List queryObjectArrayList(ClasspathSqlResource sqlResource, Map params);

	/**
	 * 查询第一条记录
	 * 
	 * @param sqlResource
	 * @param params
	 * @return
	 */
	public Object[] queryFirstObjectArray(ClasspathSqlResource sqlResource, Map params);

	/**
	 * 查询第一个map
	 * 
	 * @param sqlId
	 * @param params
	 * @return
	 */
	public Map queryFirstForMap(ClasspathSqlResource sqlResource, Map params);

	/**
	 * 通过配置文件获取对应对象列表
	 * 
	 * @param sqlId
	 * @return
	 */
	public  List query(ClasspathSqlResource sqlResource, Map params, Class clz);

	/**
	 * 通过配置文件获取对应对象列表
	 * 
	 * @param sqlId
	 * @return
	 */
	public  T queryFirst(ClasspathSqlResource sqlResource, Map params, Class clz);

	/**
	 * 通过配置文件获取对应单列
	 * 
	 * @param sqlResource
	 * @param params
	 * @param clz
	 * @return
	 */
	 List queryObjectList(ClasspathSqlResource sqlResource, Map params, Class clz);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy