【Java开源代码栏目提醒】:本文主要为网学会员提供ConnectionHelper.java,希望对需要ConnectionHelper.java网友有所帮助,学习一下!
package org.hibernate.tool.hbm2ddl;
import java.sql.Connection;
import java.sql.SQLException;
/**
* Contract for delegates responsible for managing connection used by the
* hbm2ddl tools.
*
* @author Steve Ebersole
*/
interface ConnectionHelper {
/**
* Prepare the helper for use.
*
* @param needsAutoCommit Should connection be forced to auto-commit
* if not already.
* @throws SQLException
*/
public void prepare(boolean needsAutoCommit) throws SQLException;
/**
* Get a reference to the connection we are using.
*
* @return The JDBC connection.
* @throws SQLException
*/
public Connection getConnection() throws SQLException;
/**
* Release any resources held by this helper.
*
* @throws SQLException
*/
public void release() throws SQLException;
}
上一篇:
ConnectionFeatureNotAvailableException.java
下一篇:
产品定价因素分析MBA论文:以印度移动应用程序定价分析为例