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:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcloseConnection(Connection connection) io.agroal.api.AgroalDataSourcebooleanisUnwrappableAs(Class unwrapType) boolean<T> TMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.hibernate.engine.jdbc.connections.spi.ConnectionProvider
getDatabaseConnectionInfo, getDatabaseConnectionInfo
-
Constructor Details
-
QuarkusConnectionProvider
public QuarkusConnectionProvider(io.agroal.api.AgroalDataSource dataSource)
-
-
Method Details
-
getDataSource
public io.agroal.api.AgroalDataSource getDataSource() -
getConnection
- Specified by:
getConnectionin interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider- Throws:
SQLException
-
closeConnection
- Specified by:
closeConnectionin interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider- Throws:
SQLException
-
supportsAggressiveRelease
public boolean supportsAggressiveRelease()- Specified by:
supportsAggressiveReleasein interfaceorg.hibernate.engine.jdbc.connections.spi.ConnectionProvider
-
isUnwrappableAs
- Specified by:
isUnwrappableAsin interfaceorg.hibernate.service.spi.Wrapped
-
unwrap
- Specified by:
unwrapin interfaceorg.hibernate.service.spi.Wrapped
-