Package org.hibernate.engine.jdbc.connections.spi
package org.hibernate.engine.jdbc.connections.spi
Defines SPI contracts for obtaining JDBC
Connections 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 PreparedStatements.
There are two flavors of connection provider:
ConnectionProvideris for general use, andMultiTenantConnectionProviderfor use in a multi-tenant environment.
-
ClassDescriptionBasic support for implementations of
MultiTenantConnectionProviderbased onDataSources.Basic support forMultiTenantConnectionProviderimplementations using an individualConnectionProviderinstance 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 theMultiTenantConnectionProvidercontract bases on a number of reasonable assumptions.Provides centralized access to JDBC connections.A specializedConnectionprovider contract used when the application is using multi-tenancy support requiring tenant-aware connections.