public final class DelegatingHikariConnectionProvider extends Object implements net.sf.hibernate.connection.ConnectionProvider, org.hibernate.engine.jdbc.connections.spi.ConnectionProvider, org.hibernate.service.spi.Configurable, org.hibernate.service.spi.Stoppable
HikariCPConnectionProvider which decorates it with the Hibernate2
ConnectionProvider interface so that it can fed to Hibernate2's
ConnectionProviderFactory by DefaultConnectionProviderSupplier.| Constructor and Description |
|---|
DelegatingHikariConnectionProvider() |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
closeConnection(Connection conn) |
void |
configure(Map configurationValues) |
void |
configure(Properties props) |
Connection |
getConnection() |
boolean |
isUnwrappableAs(Class unwrapType) |
void |
stop() |
boolean |
supportsAggressiveRelease() |
<T> T |
unwrap(Class<T> unwrapType) |
public void configure(Map configurationValues)
configure in interface org.hibernate.service.spi.Configurablepublic void configure(Properties props)
public Connection getConnection() throws SQLException
getConnection in interface org.hibernate.engine.jdbc.connections.spi.ConnectionProviderSQLExceptionpublic void closeConnection(Connection conn) throws SQLException
closeConnection in interface org.hibernate.engine.jdbc.connections.spi.ConnectionProviderSQLExceptionpublic boolean supportsAggressiveRelease()
supportsAggressiveRelease in interface org.hibernate.engine.jdbc.connections.spi.ConnectionProviderpublic void close()
public void stop()
stop in interface org.hibernate.service.spi.Stoppablepublic boolean isUnwrappableAs(Class unwrapType)
isUnwrappableAs in interface org.hibernate.service.spi.Wrappedpublic <T> T unwrap(Class<T> unwrapType)
unwrap in interface org.hibernate.service.spi.WrappedCopyright © 2003–2023 Atlassian. All rights reserved.