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.
- See Also:
ConnectionProvider,MultiTenantConnectionProvider
-
Interface Summary Interface Description ConnectionProvider A contract for obtaining JDBC connections and, optionally, for pooling connections.DatabaseConnectionInfo Contract used for logging "database information" on bootstrapJdbcConnectionAccess Provides centralized access to JDBC connections.MultiTenantConnectionProvider<T> A specializedConnectionprovider contract used when the application is using multi-tenancy support requiring tenant-aware connections. -
Class Summary Class Description AbstractDataSourceBasedMultiTenantConnectionProviderImpl<T> Basic support for implementations ofMultiTenantConnectionProviderbased on DataSources.AbstractMultiTenantConnectionProvider<T> Basic support forMultiTenantConnectionProviderimplementations using individualConnectionProviderinstances per tenant behind the scenes.DataSourceBasedMultiTenantConnectionProviderImpl<T> A concrete implementation of theMultiTenantConnectionProvidercontract bases on a number of reasonable assumptions.