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

pack-priv Class SuppliedConnectionHelper

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

A ConnectionHelper implementation based on an explicitly supplied connection.
Author
Steve Ebersole

Field Summary

Modifier and TypeField and Description
private Connection
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
toggleAutoCommitback to summary
private boolean toggleAutoCommit

Constructor Detail

SuppliedConnectionHelperback to summary
public SuppliedConnectionHelper(Connection connection)

Method Detail

getConnectionback to summary
public Connection getConnection()

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.