Top Description Interfaces Classes
[default module]

Package org.hibernate.engine.jdbc.connections.spi


Defines SPI contracts for obtaining JDBC java.sql.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 java.sql.PreparedStatements.

There are two flavors of connection provider:

See Also
org.hibernate.engine.jdbc.connections.spi.ConnectionProvider, org.hibernate.engine.jdbc.connections.spi.MultiTenantConnectionProvider

Interface Summary

Modifier and TypeInterface 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 Connection provider contract used when the application is using multi-tenancy support requiring tenant-aware connections.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractDataSourceBasedMultiTenantConnectionProviderImpl<T>

Basic support for implementations of MultiTenantConnectionProvider based on DataSources.

public abstract class
AbstractMultiTenantConnectionProvider<T>

Basic support for MultiTenantConnectionProvider implementations using individual ConnectionProvider instances per tenant behind the scenes.

public class
DataSourceBasedMultiTenantConnectionProviderImpl<T>

A concrete implementation of the MultiTenantConnectionProvider contract bases on a number of reasonable assumptions.