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

org.sagacity.sqltoy.callback.DataSourceCallbackHandler Maven / Gradle / Ivy

There is a newer version: 5.6.31.jre8
Show newest version
/**
 * 
 */
package org.sagacity.sqltoy.callback;

import java.sql.Connection;

/**
 * @project sagacity-sqltoy
 * @description 数据库连接反调,通过反调传递connection,并通过Result进行数据交互
 * @author zhongxuchen
 * @version v1.0,Date:2012-6-10
 */
public abstract class DataSourceCallbackHandler {
	/**
	 * 结果集
	 */
	private Object result = null;

	/**
	 * @todo 基于给定的连接需要实现的方法
	 * @param conn    数据库连接
	 * @param dbType  数据库类型
	 * @param dialect 数据方言
	 * @throws Exception 异常
	 */
	public abstract void doConnection(Connection conn, Integer dbType, String dialect) throws Exception;

	/**
	 * @return the result
	 */
	public Object getResult() {
		return result;
	}

	/**
	 * @param result the result to set
	 */
	public void setResult(Object result) {
		this.result = result;
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy