/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or <http://www.gnu.org/licenses/lgpl-2.1.html>.
 */
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
Deprecated:Everything in this package has been replaced with SchemaManagementTool and friends.
/** * Contract for delegates responsible for managing connection used by the * hbm2ddl tools. * * @author Steve Ebersole * * @deprecated Everything in this package has been replaced with * {@link org.hibernate.tool.schema.spi.SchemaManagementTool} and friends. */
@Deprecated public interface ConnectionHelper {
Prepare the helper for use.
Params:
  • needsAutoCommit – Should connection be forced to auto-commit if not already.
Throws:
/** * 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.
Throws:
Returns:The JDBC connection.
/** * 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 –
/** * Release any resources held by this helper. * * @throws SQLException */
public void release() throws SQLException; }