Class QuarkusConnectionProvider
- java.lang.Object
-
- io.quarkus.hibernate.orm.runtime.customized.QuarkusConnectionProvider
-
- All Implemented Interfaces:
Serializable
,org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
,org.hibernate.service.Service
,org.hibernate.service.spi.Wrapped
public class QuarkusConnectionProvider extends Object implements org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description QuarkusConnectionProvider(io.agroal.api.AgroalDataSource dataSource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
closeConnection(Connection connection)
Connection
getConnection()
boolean
isUnwrappableAs(Class unwrapType)
boolean
supportsAggressiveRelease()
<T> T
unwrap(Class<T> unwrapType)
-
-
-
Method Detail
-
getConnection
public Connection getConnection() throws SQLException
- Specified by:
getConnection
in interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider
- Throws:
SQLException
-
closeConnection
public void closeConnection(Connection connection) 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
-
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
-
-