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 aConnection
that 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 aConnection
that is usable within the bounds of theTransactionCoordinatorBuilder.buildDdlTransactionIsolator(org.hibernate.tool.schema.internal.exec.JdbcContext)
andrelease()
calls, with the given autocommit mode.void
release()
-
Method Details
-
getJdbcContext
JdbcContext getJdbcContext() -
getIsolatedConnection
Connection getIsolatedConnection()Returns aConnection
that is usable within the bounds of theTransactionCoordinatorBuilder.buildDdlTransactionIsolator(org.hibernate.tool.schema.internal.exec.JdbcContext)
andrelease()
calls, with autocommit mode enabled. Further, thisConnection
will be isolated (transactionally) from any transaction in effect prior to the call tobuildDdlTransactionIsolator
.- Returns:
- The Connection.
-
getIsolatedConnection
Returns aConnection
that is usable within the bounds of theTransactionCoordinatorBuilder.buildDdlTransactionIsolator(org.hibernate.tool.schema.internal.exec.JdbcContext)
andrelease()
calls, with the given autocommit mode. Further, thisConnection
will be isolated (transactionally) from any transaction in effect prior to the call tobuildDdlTransactionIsolator
.- Returns:
- The Connection.
-
release
void release()
-