Interface DdlTransactionIsolator
-
- All Known Implementing Classes:
DdlTransactionIsolatorJtaImpl,DdlTransactionIsolatorNonJtaImpl
public interface DdlTransactionIsolatorProvides access to aConnectionthat 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 ConnectiongetIsolatedConnection()Returns aConnectionthat is usable within the bounds of theTransactionCoordinatorBuilder.buildDdlTransactionIsolator(org.hibernate.tool.schema.internal.exec.JdbcContext)andrelease()calls, with autocommit mode enabled.ConnectiongetIsolatedConnection(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.JdbcContextgetJdbcContext()voidrelease()
-
-
-
Method Detail
-
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
Connection 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. Further, thisConnectionwill be isolated (transactionally) from any transaction in effect prior to the call tobuildDdlTransactionIsolator.- Returns:
- The Connection.
-
release
void release()
-
-