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

pack-priv Class ManagedProviderConnectionHelper

extends Object
implements ConnectionHelper
Class Inheritance
All Implemented Interfaces
org.hibernate.tool.hbm2ddl.ConnectionHelper
Imports
org.hibernate.connection.ConnectionProvider, .ConnectionProviderFactory, org.hibernate.util.JDBCExceptionReporter, java.util.Properties, java.sql.Connection, .SQLException

A ConnectionHelper implementation based on an internally built and managed ConnectionProvider.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private Properties
private Connection
private ConnectionProvider

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

cfgPropertiesback to summary
private Properties cfgProperties
connectionback to summary
private Connection connection
connectionProviderback to summary
private ConnectionProvider connectionProvider

Constructor Detail

ManagedProviderConnectionHelperback to summary
public ManagedProviderConnectionHelper(Properties cfgProperties)

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.