Package org.hibernate.resource.jdbc.spi
An SPI for managing JDBC connections and other heavyweight resources, based around the
idea of a "JDBC session".
The interface StatementInspector
is especially
useful for monitoring/intercepting SQL statements as they are sent to the database.
-
Interface Summary Interface Description JdbcObserver Deprecated, for removal: This API element is subject to removal in a future version. It is no longer possible to plug custom implementations of this SPI.JdbcSessionContext Provides the "JDBC session" with contextual information it needs during its lifecycle.JdbcSessionOwner Contract for something that controls aJdbcSessionContext
.LogicalConnectionImplementor SPI contract forLogicalConnection
.PhysicalJdbcTransaction Provides access to manage "transactionality" via the JDBCConnection
.StatementInspector Implementors may inspect and even process each SQL command issued by a session, before a JDBC statement is prepared. -
Enum Summary Enum Description PhysicalConnectionHandlingMode Enumerates valid combinations ofConnectionAcquisitionMode
andConnectionReleaseMode
.