Package org.hibernate.engine.jdbc.connections.spi
package org.hibernate.engine.jdbc.connections.spi
Defines SPI contracts for obtaining JDBC
Connection
s from a
provider implemented as a service.
Typically, the provider is responsible not just for connecting to the database,
but also for pooling connections and caching PreparedStatement
s.
There are two flavors of connection provider:
ConnectionProvider
is for general use, andMultiTenantConnectionProvider
for use in a multi-tenant environment.
-
ClassDescriptionBasic support for implementations of
MultiTenantConnectionProvider
based onDataSource
s.Basic support forMultiTenantConnectionProvider
implementations using an individualConnectionProvider
instance per tenant behind the scenes.A contract for obtaining JDBC connections and, optionally, for pooling connections.Occurs when there is a problem configuring aConnectionProvider
.Contract used for logging "database information" on bootstrapA concrete implementation of theMultiTenantConnectionProvider
contract bases on a number of reasonable assumptions.Provides centralized access to JDBC connections.A specializedConnection
provider contract used when the application is using multi-tenancy support requiring tenant-aware connections.