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.
- See Also:
ConnectionProvider
,MultiTenantConnectionProvider
-
Interface Summary Interface Description ConnectionProvider A contract for obtaining JDBC connections and, optionally, for pooling connections.JdbcConnectionAccess Provides centralized access to JDBC connections.MultiTenantConnectionProvider A specializedConnection
provider contract used when the application is using multi-tenancy support requiring tenant-aware connections. -
Class Summary Class Description AbstractDataSourceBasedMultiTenantConnectionProviderImpl Basic support for implementations ofMultiTenantConnectionProvider
based on DataSources.AbstractMultiTenantConnectionProvider Basic support forMultiTenantConnectionProvider
implementations using individualConnectionProvider
instances per tenant behind the scenes.DataSourceBasedMultiTenantConnectionProviderImpl A concrete implementation of theMultiTenantConnectionProvider
contract bases on a number of reasonable assumptions.