Package org.hibernate.resource.jdbc.spi
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.
-
ClassDescriptionActs as an observer for various events regarding JDBC interactions and doing one or more of - delegating to StatisticsImplementor delegating to SessionEventListenerManager loggingProvides the "JDBC session" with contextual information it needs during its lifecycle.Contract for something that controls a
JdbcSessionContext
.SPI contract forLogicalConnection
.Enumerates valid combinations ofConnectionAcquisitionMode
andConnectionReleaseMode
.Provides access to manage "transactionality" via the JDBCConnection
.Implementors may inspect and even process each SQL command issued by a session, before a JDBC statement is prepared.