Class DdlTransactionIsolatorNonJtaImpl
- java.lang.Object
-
- org.hibernate.resource.transaction.backend.jdbc.internal.DdlTransactionIsolatorNonJtaImpl
-
- All Implemented Interfaces:
DdlTransactionIsolator
public class DdlTransactionIsolatorNonJtaImpl extends Object implements DdlTransactionIsolator
DdlExecutor for use in non-JTA environments (JDBC transaction)
-
-
Constructor Summary
Constructors Constructor Description DdlTransactionIsolatorNonJtaImpl(JdbcContext jdbcContext)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConnectiongetIsolatedConnection()Returns aConnectionthat is usable within the bounds of theTransactionCoordinatorBuilder.buildDdlTransactionIsolator(org.hibernate.tool.schema.internal.exec.JdbcContext)andDdlTransactionIsolator.release()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)andDdlTransactionIsolator.release()calls, with the given autocommit mode.JdbcContextgetJdbcContext()voidrelease()
-
-
-
Constructor Detail
-
DdlTransactionIsolatorNonJtaImpl
public DdlTransactionIsolatorNonJtaImpl(JdbcContext jdbcContext)
-
-
Method Detail
-
getJdbcContext
public JdbcContext getJdbcContext()
- Specified by:
getJdbcContextin interfaceDdlTransactionIsolator
-
getIsolatedConnection
public Connection getIsolatedConnection()
Description copied from interface:DdlTransactionIsolatorReturns aConnectionthat is usable within the bounds of theTransactionCoordinatorBuilder.buildDdlTransactionIsolator(org.hibernate.tool.schema.internal.exec.JdbcContext)andDdlTransactionIsolator.release()calls, with autocommit mode enabled. Further, thisConnectionwill be isolated (transactionally) from any transaction in effect prior to the call tobuildDdlTransactionIsolator.- Specified by:
getIsolatedConnectionin interfaceDdlTransactionIsolator- Returns:
- The Connection.
-
getIsolatedConnection
public Connection getIsolatedConnection(boolean autocommit)
Description copied from interface:DdlTransactionIsolatorReturns aConnectionthat is usable within the bounds of theTransactionCoordinatorBuilder.buildDdlTransactionIsolator(org.hibernate.tool.schema.internal.exec.JdbcContext)andDdlTransactionIsolator.release()calls, with the given autocommit mode. Further, thisConnectionwill be isolated (transactionally) from any transaction in effect prior to the call tobuildDdlTransactionIsolator.- Specified by:
getIsolatedConnectionin interfaceDdlTransactionIsolator- Returns:
- The Connection.
-
release
public void release()
- Specified by:
releasein interfaceDdlTransactionIsolator
-
-