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
Annotations
@Deprecated
Imports
java.sql.Connection, .SQLException, java.util.Properties, org.hibernate.boot.registry.StandardServiceRegistryBuilder, org.hibernate.boot.registry.internal.StandardServiceRegistryImpl, org.hibernate.cfg.AvailableSettings, .Environment, org.hibernate.engine.config.spi.ConfigurationService, org.hibernate.engine.jdbc.connections.spi.ConnectionProvider, org.hibernate.engine.jdbc.env.spi.JdbcEnvironment, org.hibernate.engine.jdbc.spi.SqlExceptionHelper, org.hibernate.internal.util.config.ConfigurationHelper

Deprecated

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

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 StandardServiceRegistryImpl

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private static StandardServiceRegistryImpl
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.
private void
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cfgPropertiesback to summary
private Properties cfgProperties
connectionback to summary
private Connection connection
serviceRegistryback to summary
private StandardServiceRegistryImpl serviceRegistry

Constructor Detail

ManagedProviderConnectionHelperback to summary
public ManagedProviderConnectionHelper(Properties cfgProperties)

Method Detail

createServiceRegistryback to summary
private static StandardServiceRegistryImpl createServiceRegistry(Properties properties)
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.

releaseConnectionback to summary
private void releaseConnection() throws SQLException
releaseServiceRegistryback to summary
private void releaseServiceRegistry()