Interface DdlTransactionIsolator
- All Known Implementing Classes:
DdlTransactionIsolatorJtaImpl,DdlTransactionIsolatorNonJtaImpl
public interface DdlTransactionIsolator
Provides access to a
Connection that is isolated from any
"current transaction" with the designated purpose of performing DDL
commands.-
Method Summary
Modifier and TypeMethodDescriptionReturns aConnectionthat is usable within the bounds of theTransactionCoordinatorBuilder.buildDdlTransactionIsolator(org.hibernate.tool.schema.internal.exec.JdbcContext)andrelease()calls, with autocommit mode enabled.getIsolatedConnection(boolean autocommit) Returns aConnectionthat is usable within the bounds of theTransactionCoordinatorBuilder.buildDdlTransactionIsolator(org.hibernate.tool.schema.internal.exec.JdbcContext)andrelease()calls, with the given autocommit mode.voidrelease()
-
Method Details
-
getJdbcContext
JdbcContext getJdbcContext() -
getIsolatedConnection
Connection getIsolatedConnection()Returns aConnectionthat is usable within the bounds of theTransactionCoordinatorBuilder.buildDdlTransactionIsolator(org.hibernate.tool.schema.internal.exec.JdbcContext)andrelease()calls, with autocommit mode enabled. Further, thisConnectionwill be isolated (transactionally) from any transaction in effect prior to the call tobuildDdlTransactionIsolator.- Returns:
- The Connection.
-
getIsolatedConnection
Returns aConnectionthat is usable within the bounds of theTransactionCoordinatorBuilder.buildDdlTransactionIsolator(org.hibernate.tool.schema.internal.exec.JdbcContext)andrelease()calls, with the given autocommit mode. Further, thisConnectionwill be isolated (transactionally) from any transaction in effect prior to the call tobuildDdlTransactionIsolator.- Returns:
- The Connection.
-
release
void release()
-