Class DdlTransactionIsolatorNonJtaImpl
java.lang.Object
org.hibernate.resource.transaction.backend.jdbc.internal.DdlTransactionIsolatorNonJtaImpl
- All Implemented Interfaces:
DdlTransactionIsolator
DdlExecutor for use in non-JTA environments (JDBC transaction)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns aConnection
that is usable within the bounds of theTransactionCoordinatorBuilder.buildDdlTransactionIsolator(org.hibernate.tool.schema.internal.exec.JdbcContext)
andDdlTransactionIsolator.release()
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)
andDdlTransactionIsolator.release()
calls, with the given autocommit mode.void
release()
-
Constructor Details
-
DdlTransactionIsolatorNonJtaImpl
-
-
Method Details
-
getJdbcContext
- Specified by:
getJdbcContext
in interfaceDdlTransactionIsolator
-
getIsolatedConnection
Description copied from interface:DdlTransactionIsolator
Returns aConnection
that is usable within the bounds of theTransactionCoordinatorBuilder.buildDdlTransactionIsolator(org.hibernate.tool.schema.internal.exec.JdbcContext)
andDdlTransactionIsolator.release()
calls, with autocommit mode enabled. Further, thisConnection
will be isolated (transactionally) from any transaction in effect prior to the call tobuildDdlTransactionIsolator
.- Specified by:
getIsolatedConnection
in interfaceDdlTransactionIsolator
- Returns:
- The Connection.
-
getIsolatedConnection
Description copied from interface:DdlTransactionIsolator
Returns aConnection
that is usable within the bounds of theTransactionCoordinatorBuilder.buildDdlTransactionIsolator(org.hibernate.tool.schema.internal.exec.JdbcContext)
andDdlTransactionIsolator.release()
calls, with the given autocommit mode. Further, thisConnection
will be isolated (transactionally) from any transaction in effect prior to the call tobuildDdlTransactionIsolator
.- Specified by:
getIsolatedConnection
in interfaceDdlTransactionIsolator
- Returns:
- The Connection.
-
release
public void release()- Specified by:
release
in interfaceDdlTransactionIsolator
-