Top Description Methods
org.hibernate.tool.hbm2ddl

public Interface ConnectionHelper

Known Direct Implementers
org.hibernate.tool.hbm2ddl.ManagedProviderConnectionHelper, org.hibernate.tool.hbm2ddl.SuppliedConnectionHelper, org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper
Annotations
@Deprecated
Imports
java.sql.Connection, .SQLException

Deprecated

Everything in this package has been replaced with org.hibernate.tool.schema.spi.SchemaManagementTool and friends.

Contract for delegates responsible for managing connection used by the hbm2ddl tools.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public Connection

Returns:

The JDBC connection.
getConnection
()

Get a reference to the connection we are using.

public void
prepare(boolean
Should connection be forced to auto-commit if not already.
needsAutoCommit
)

Prepare the helper for use.

public void
release()

Release any resources held by this helper.

Method Detail

getConnectionback to summary
public Connection getConnection() throws SQLException

Get a reference to the connection we are using.

Returns:Connection

The JDBC connection.

prepareback to summary
public void prepare(boolean needsAutoCommit) throws SQLException

Prepare the helper for use.

Parameters
needsAutoCommit:boolean

Should connection be forced to auto-commit if not already.

releaseback to summary
public void release() throws SQLException

Release any resources held by this helper.