java.sql.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 java.s.
There are two flavors of connection provider:
org.hibernate.engine.jdbc.connections.spi.ConnectionProvider is
for general use, and
org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProvider
for use in a multi-tenant environment.
org.hibernate.engine.jdbc.connections.spi.ConnectionProvider , org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProvider
| Modifier and Type | Interface and Description |
|---|---|
| public interface | ConnectionProvider
A contract for obtaining JDBC connections and, optionally, for pooling connections. |
| public interface | JdbcConnectionAccess
Provides centralized access to JDBC connections. |
| public interface | MultiTenantConnectionProvider<
The tenant identifier type T>A specialized |
| Modifier and Type | Class and Description |
|---|---|
| public abstract class | AbstractDataSourceBasedMultiTenantConnectionProviderImpl<T>
Basic support for implementations of |
| public abstract class | AbstractMultiTenantConnectionProvider<T>
Basic support for |
| public class | DataSourceBasedMultiTenantConnectionProviderImpl<T>
A concrete implementation of the |