Interface DdlTransactionIsolator
-
- All Known Implementing Classes:
DdlTransactionIsolatorJtaImpl
,DdlTransactionIsolatorNonJtaImpl
public interface DdlTransactionIsolator
Provides access to aConnection
that is isolated from any "current transaction" with the designated purpose of performing DDL commands.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description 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.Connection
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.JdbcContext
getJdbcContext()
void
release()
-
-
-
Method Detail
-
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
Connection 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. Further, thisConnection
will be isolated (transactionally) from any transaction in effect prior to the call tobuildDdlTransactionIsolator
.- Returns:
- The Connection.
-
release
void release()
-
-