Package org.hibernate.resource.jdbc.spi
Interface LogicalConnectionImplementor
-
- All Superinterfaces:
LogicalConnection
public interface LogicalConnectionImplementor extends LogicalConnection
SPI contract for LogicalConnection
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidafterStatement()Notification indicating a JDBC statement has been executed to triggerConnectionReleaseMode.AFTER_STATEMENTreleasing if neededvoidafterTransaction()Notification indicating a transaction has completed to triggerConnectionReleaseMode.AFTER_TRANSACTIONreleasing if neededvoidbeforeTransactionCompletion()Notification indicating a transaction is about to be completed, so to trigger releasing of the connection if needed (ConnectionReleaseMode.BEFORE_TRANSACTION_COMPLETIONis enabled)PhysicalConnectionHandlingModegetConnectionHandlingMode()java.sql.ConnectiongetPhysicalConnection()Exposes access to the "real" Connection.PhysicalJdbcTransactiongetPhysicalJdbcTransaction()LogicalConnectionImplementormakeShareableCopy()Deprecated.This method is not used by Hibernate.java.sql.ConnectionmanualDisconnect()Manually disconnect the underlying JDBC Connection.voidmanualReconnect(java.sql.Connection suppliedConnection)Manually reconnect the underlying JDBC Connection.voidserialize(java.io.ObjectOutputStream oos)Serialization hook-
Methods inherited from interface org.hibernate.resource.jdbc.LogicalConnection
close, getResourceRegistry, isOpen, isPhysicallyConnected
-
-
-
-
Method Detail
-
getPhysicalConnection
java.sql.Connection getPhysicalConnection()
Exposes access to the "real" Connection.- Returns:
- The connection
-
getConnectionHandlingMode
PhysicalConnectionHandlingMode getConnectionHandlingMode()
-
afterStatement
void afterStatement()
Notification indicating a JDBC statement has been executed to triggerConnectionReleaseMode.AFTER_STATEMENTreleasing if needed
-
beforeTransactionCompletion
void beforeTransactionCompletion()
Notification indicating a transaction is about to be completed, so to trigger releasing of the connection if needed (ConnectionReleaseMode.BEFORE_TRANSACTION_COMPLETIONis enabled)
-
afterTransaction
void afterTransaction()
Notification indicating a transaction has completed to triggerConnectionReleaseMode.AFTER_TRANSACTIONreleasing if needed
-
manualDisconnect
java.sql.Connection manualDisconnect()
Manually disconnect the underlying JDBC Connection. The assumption here is that the manager will be reconnected at a later point in time.- Returns:
- The connection maintained here at time of disconnect.
nullif there was no connection cached internally.
-
manualReconnect
void manualReconnect(java.sql.Connection suppliedConnection)
Manually reconnect the underlying JDBC Connection. Should be called at some point after manualDisconnect().- Parameters:
suppliedConnection- For user supplied connection strategy the user needs to hand us the connection with which to reconnect. It is an error to pass a connection in the other strategies.
-
makeShareableCopy
@Deprecated LogicalConnectionImplementor makeShareableCopy()
Deprecated.This method is not used by Hibernate.Creates a shareable copy of itself for use in "shared sessions"- Returns:
- The shareable copy.
-
getPhysicalJdbcTransaction
PhysicalJdbcTransaction getPhysicalJdbcTransaction()
-
serialize
void serialize(java.io.ObjectOutputStream oos) throws java.io.IOExceptionSerialization hook- Parameters:
oos- The stream to write out state to- Throws:
java.io.IOException- Problem accessing stream
-
-