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

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

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

import cn.sylinx.hbatis.db.cache.CacheQuery;
import cn.sylinx.hbatis.db.dialect.Dialect;

/**
 * 数据库操作接口
 * 
 * @author han
 *
 */
public interface HbatisService extends DbMapper, DbOper {

	/**
	 * 使用特定的数据库操作对象
	 * 
	 * @param dataSourceName
	 *            数据源名称
	 * @return HbatisService
	 */
	public HbatisService use(String dataSourceName);

	/**
	 * 数据源
	 * 
	 * @return
	 */
	public String getDatasourceName();

	/**
	 * DB类型
	 * 
	 * @return
	 */
	public Dialect getDialect();

	/**
	 * 使用缓存查询
	 * 
	 * @return
	 */
	CacheQuery withCache();

	/**
	 * 自定义操作
	 * 
	 * @param callable
	 * @return
	 */
	public  T call(Callable callable);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy