Interface DdlTransactionIsolator
- All Superinterfaces:
AutoCloseable
Provides access to a
Connection that is isolated from any
"current transaction" with the designated purpose of performing DDL
commands.-
Method Summary
Modifier and TypeMethodDescriptiondefault voidclose()Returns aConnectionthat is usable within the bounds of theTransactionCoordinatorBuilder.buildDdlTransactionIsolator(JdbcContext)andrelease()calls, with autocommit mode enabled.getIsolatedConnection(boolean autocommit) Returns aConnectionthat is usable within the bounds of theTransactionCoordinatorBuilder.buildDdlTransactionIsolator(JdbcContext)andrelease()calls, with the given autocommit mode.org.hibernate.tool.schema.internal.exec.JdbcContextvoidrelease()
-
Method Details
-
getJdbcContext
org.hibernate.tool.schema.internal.exec.JdbcContext getJdbcContext() -
getIsolatedConnection
Connection getIsolatedConnection()Returns aConnectionthat is usable within the bounds of theTransactionCoordinatorBuilder.buildDdlTransactionIsolator(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(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() -
close
default void close()- Specified by:
closein interfaceAutoCloseable
-