Package org.hibernate.engine.jdbc.spi
Interface ConnectionObserver
- All Known Subinterfaces:
NonDurableConnectionObserver
- All Known Implementing Classes:
ConnectionObserverAdapter,ConnectionObserverStatsBridge
public interface ConnectionObserver
An observer of logical connection events.
- Author:
- Steve Ebersole
-
Method Summary
Modifier and TypeMethodDescriptionvoidThe logical connection was closed.voidphysicalConnectionObtained(Connection connection) A physical connection was obtained.voidA physical connection was released.voidNotification of a statement being prepared
-
Method Details
-
physicalConnectionObtained
A physical connection was obtained.- Parameters:
connection- The physical connection just obtained.
-
physicalConnectionReleased
void physicalConnectionReleased()A physical connection was released. -
logicalConnectionClosed
void logicalConnectionClosed()The logical connection was closed. -
statementPrepared
void statementPrepared()Notification of a statement being prepared
-