Package org.hibernate.internal
Class NonContextualJdbcConnectionAccess
java.lang.Object
org.hibernate.internal.NonContextualJdbcConnectionAccess
- All Implemented Interfaces:
Serializable,JdbcConnectionAccess
public class NonContextualJdbcConnectionAccess
extends Object
implements JdbcConnectionAccess, Serializable
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionNonContextualJdbcConnectionAccess(SessionEventListener listener, ConnectionProvider connectionProvider, SharedSessionContractImplementor session) -
Method Summary
Modifier and TypeMethodDescriptionObtain a JDBC connectionvoidreleaseConnection(Connection connection) Release a previously obtained connectionbooleanDoes the underlying provider of connections support aggressive releasing of connections (and re-acquisition of those connections later, if need be) in JTA environments?
-
Constructor Details
-
Method Details
-
obtainConnection
Description copied from interface:JdbcConnectionAccessObtain a JDBC connection- Specified by:
obtainConnectionin interfaceJdbcConnectionAccess- Returns:
- The obtained connection
- Throws:
SQLException- Indicates a problem getting the connection
-
releaseConnection
Description copied from interface:JdbcConnectionAccessRelease a previously obtained connection- Specified by:
releaseConnectionin interfaceJdbcConnectionAccess- Parameters:
connection- The connection to release- Throws:
SQLException- Indicates a problem releasing the connection
-
supportsAggressiveRelease
public boolean supportsAggressiveRelease()Description copied from interface:JdbcConnectionAccessDoes the underlying provider of connections support aggressive releasing of connections (and re-acquisition of those connections later, if need be) in JTA environments?- Specified by:
supportsAggressiveReleasein interfaceJdbcConnectionAccess- Returns:
- true/false
- See Also:
-