Class DelegatingHikariConnectionProvider
- java.lang.Object
-
- com.atlassian.confluence.impl.hibernate.DelegatingHikariConnectionProvider
-
- All Implemented Interfaces:
Serializable
,org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
,org.hibernate.service.Service
,org.hibernate.service.spi.Configurable
,org.hibernate.service.spi.Stoppable
,org.hibernate.service.spi.Wrapped
public final class DelegatingHikariConnectionProvider extends Object implements org.hibernate.engine.jdbc.connections.spi.ConnectionProvider, org.hibernate.service.spi.Configurable, org.hibernate.service.spi.Stoppable
A wrapper around Hibernate5'sHikariCPConnectionProvider
- Since:
- 7.8
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DelegatingHikariConnectionProvider()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeConnection(Connection conn)
void
configure(Map configurationValues)
Connection
getConnection()
boolean
isUnwrappableAs(Class unwrapType)
void
stop()
boolean
supportsAggressiveRelease()
<T> T
unwrap(Class<T> unwrapType)
-
-
-
Method Detail
-
configure
public void configure(Map configurationValues)
- Specified by:
configure
in interfaceorg.hibernate.service.spi.Configurable
-
getConnection
public Connection getConnection() throws SQLException
- Specified by:
getConnection
in interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider
- Throws:
SQLException
-
closeConnection
public void closeConnection(Connection conn) throws SQLException
- Specified by:
closeConnection
in interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider
- Throws:
SQLException
-
supportsAggressiveRelease
public boolean supportsAggressiveRelease()
- Specified by:
supportsAggressiveRelease
in interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider
-
stop
public void stop()
- Specified by:
stop
in interfaceorg.hibernate.service.spi.Stoppable
-
isUnwrappableAs
public boolean isUnwrappableAs(Class unwrapType)
- Specified by:
isUnwrappableAs
in interfaceorg.hibernate.service.spi.Wrapped
-
unwrap
public <T> T unwrap(Class<T> unwrapType)
- Specified by:
unwrap
in interfaceorg.hibernate.service.spi.Wrapped
-
-