Class QuarkusSqlClientPool
java.lang.Object
org.hibernate.reactive.pool.impl.SqlClientPool
io.quarkus.hibernate.reactive.runtime.customized.QuarkusSqlClientPool
- All Implemented Interfaces:
Serializable,org.hibernate.reactive.pool.ReactiveConnectionPool,org.hibernate.service.Service,org.hibernate.service.spi.ServiceRegistryAwareService
public class QuarkusSqlClientPool
extends org.hibernate.reactive.pool.impl.SqlClientPool
implements org.hibernate.service.spi.ServiceRegistryAwareService
An alternative implementation of
ExternalSqlClientPool
which retrieves SQL loggers / exception handlers lazily,
to avoid a circular dependency JdbcEnvironment => pool => JdbcServices => JdbcEnvironment.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected io.vertx.sqlclient.PoolgetPool()org.hibernate.engine.jdbc.spi.SqlExceptionHelperprotected org.hibernate.engine.jdbc.spi.SqlStatementLoggervoidinjectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry) Methods inherited from class org.hibernate.reactive.pool.impl.SqlClientPool
getConnection, getConnection, getConnection, getConnection, getTenantPool, selectJdbcOutsideTransaction
-
Constructor Details
-
QuarkusSqlClientPool
public QuarkusSqlClientPool(io.vertx.sqlclient.Pool pool)
-
-
Method Details
-
injectServices
public void injectServices(org.hibernate.service.spi.ServiceRegistryImplementor serviceRegistry) - Specified by:
injectServicesin interfaceorg.hibernate.service.spi.ServiceRegistryAwareService
-
getPool
protected io.vertx.sqlclient.Pool getPool()- Specified by:
getPoolin classorg.hibernate.reactive.pool.impl.SqlClientPool
-
getSqlStatementLogger
protected org.hibernate.engine.jdbc.spi.SqlStatementLogger getSqlStatementLogger()- Specified by:
getSqlStatementLoggerin classorg.hibernate.reactive.pool.impl.SqlClientPool
-
getSqlExceptionHelper
public org.hibernate.engine.jdbc.spi.SqlExceptionHelper getSqlExceptionHelper()- Specified by:
getSqlExceptionHelperin classorg.hibernate.reactive.pool.impl.SqlClientPool
-
getCloseFuture
- Specified by:
getCloseFuturein interfaceorg.hibernate.reactive.pool.ReactiveConnectionPool
-