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.Configurable
public void configure(Properties props)
public Connection getConnection() throws SQLException
getConnection
in interface org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
SQLException
public void closeConnection(Connection conn) throws SQLException
closeConnection
in interface org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
SQLException
public boolean supportsAggressiveRelease()
supportsAggressiveRelease
in interface org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
public void close()
public void stop()
stop
in interface org.hibernate.service.spi.Stoppable
public boolean isUnwrappableAs(Class unwrapType)
isUnwrappableAs
in interface org.hibernate.service.spi.Wrapped
public <T> T unwrap(Class<T> unwrapType)
unwrap
in interface org.hibernate.service.spi.Wrapped
Copyright © 2003–2021 Atlassian. All rights reserved.