Top Description Fields Constructors Methods
org.hibernate.tool.hbm2ddl

pack-priv Class SuppliedConnectionProviderConnectionHelper

extends Object
implements ConnectionHelper
Class Inheritance
All Implemented Interfaces
org.hibernate.tool.hbm2ddl.ConnectionHelper
Annotations
@Deprecated
Imports
java.sql.Connection, .SQLException, org.hibernate.engine.jdbc.connections.spi.ConnectionProvider, org.hibernate.engine.jdbc.spi.SqlExceptionHelper

Deprecated

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

A ConnectionHelper implementation based on a provided ConnectionProvider. Essentially, ensures that the connection gets cleaned up, but that the provider itself remains usable since it was externally provided to us.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private Connection
private ConnectionProvider
private final SqlExceptionHelper
private boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Connection
getConnection()

Implements org.hibernate.tool.hbm2ddl.ConnectionHelper.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
)

Implements org.hibernate.tool.hbm2ddl.ConnectionHelper.prepare.

Prepare the helper for use.
public void
release()

Implements org.hibernate.tool.hbm2ddl.ConnectionHelper.release.

Release any resources held by this helper.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

connectionback to summary
private Connection connection
providerback to summary
private ConnectionProvider provider
sqlExceptionHelperback to summary
private final SqlExceptionHelper sqlExceptionHelper
toggleAutoCommitback to summary
private boolean toggleAutoCommit

Constructor Detail

SuppliedConnectionProviderConnectionHelperback to summary
public SuppliedConnectionProviderConnectionHelper(ConnectionProvider provider, SqlExceptionHelper sqlExceptionHelper)

Method Detail

getConnectionback to summary
public Connection getConnection() throws SQLException

Implements org.hibernate.tool.hbm2ddl.ConnectionHelper.getConnection.

Doc from org.hibernate.tool.hbm2ddl.ConnectionHelper.getConnection.

Get a reference to the connection we are using.

Returns:Connection

The JDBC connection.

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

Implements org.hibernate.tool.hbm2ddl.ConnectionHelper.prepare.

Doc from org.hibernate.tool.hbm2ddl.ConnectionHelper.prepare.

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

Implements org.hibernate.tool.hbm2ddl.ConnectionHelper.release.

Doc from org.hibernate.tool.hbm2ddl.ConnectionHelper.release.

Release any resources held by this helper.