Top Description Methods
org.hibernate.resource.transaction.spi

public Interface DdlTransactionIsolator

Known Direct Implementers
org.hibernate.tool.schema.internal.DdlTransactionIsolatorProvidedConnectionImpl, org.hibernate.resource.transaction.backend.jdbc.internal.DdlTransactionIsolatorNonJtaImpl, org.hibernate.resource.transaction.backend.jta.internal.DdlTransactionIsolatorJtaImpl
Imports
java.sql.Connection, org.hibernate.tool.schema.internal.exec.JdbcContext

Provides access to a Connection that is isolated from any "current transaction" with the designated purpose of performing DDL commands.
Author
Steve Ebersole

Method Summary

Modifier and TypeMethod and Description
public Connection

Returns:

The Connection.
getIsolatedConnection
()

Returns a Connection that is usable within the bounds of the TransactionCoordinatorBuilder#buildDdlTransactionIsolator and release calls, with autocommit mode enabled.

public Connection

Returns:

The Connection.
getIsolatedConnection
(boolean autocommit)

Returns a Connection that is usable within the bounds of the TransactionCoordinatorBuilder#buildDdlTransactionIsolator and release calls, with the given autocommit mode.

public JdbcContext
public void

Method Detail

getIsolatedConnectionback to summary
public Connection getIsolatedConnection()

Returns a Connection that is usable within the bounds of the TransactionCoordinatorBuilder#buildDdlTransactionIsolator and release calls, with autocommit mode enabled. Further, this Connection will be isolated (transactionally) from any transaction in effect prior to the call to buildDdlTransactionIsolator.

Returns:Connection

The Connection.

getIsolatedConnectionback to summary
public Connection getIsolatedConnection(boolean autocommit)

Returns a Connection that is usable within the bounds of the TransactionCoordinatorBuilder#buildDdlTransactionIsolator and release calls, with the given autocommit mode. Further, this Connection will be isolated (transactionally) from any transaction in effect prior to the call to buildDdlTransactionIsolator.

Returns:Connection

The Connection.

getJdbcContextback to summary
public JdbcContext getJdbcContext()
releaseback to summary
public void release()