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 Connection
getIsolatedConnection()
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.Connection
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.JdbcContext
getJdbcContext()
void
release()
-
-
-
Constructor Detail
-
DdlTransactionIsolatorNonJtaImpl
public DdlTransactionIsolatorNonJtaImpl(JdbcContext jdbcContext)
-
-
Method Detail
-
getJdbcContext
public JdbcContext getJdbcContext()
- Specified by:
getJdbcContext
in interfaceDdlTransactionIsolator
-
getIsolatedConnection
public 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 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
public Connection getIsolatedConnection(boolean autocommit)
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
-
-