public interface LogicalConnectionImplementor extends LogicalConnection
Modifier and Type | Method and Description |
---|---|
void |
afterStatement()
Notification indicating a JDBC statement has been executed to trigger
ConnectionReleaseMode.AFTER_STATEMENT releasing if needed |
void |
afterTransaction()
Notification indicating a transaction has completed to trigger
ConnectionReleaseMode.AFTER_TRANSACTION releasing if needed |
PhysicalConnectionHandlingMode |
getConnectionHandlingMode() |
Connection |
getPhysicalConnection()
Exposes access to the "real" Connection.
|
PhysicalJdbcTransaction |
getPhysicalJdbcTransaction() |
LogicalConnectionImplementor |
makeShareableCopy()
Deprecated.
This method is not used by Hibernate.
|
Connection |
manualDisconnect()
Manually disconnect the underlying JDBC Connection.
|
void |
manualReconnect(Connection suppliedConnection)
Manually reconnect the underlying JDBC Connection.
|
void |
serialize(ObjectOutputStream oos)
Serialization hook
|
close, getResourceRegistry, isOpen, isPhysicallyConnected
Connection getPhysicalConnection()
PhysicalConnectionHandlingMode getConnectionHandlingMode()
void afterStatement()
ConnectionReleaseMode.AFTER_STATEMENT
releasing if neededvoid afterTransaction()
ConnectionReleaseMode.AFTER_TRANSACTION
releasing if neededConnection manualDisconnect()
null
if
there was no connection cached internally.void manualReconnect(Connection suppliedConnection)
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.@Deprecated LogicalConnectionImplementor makeShareableCopy()
PhysicalJdbcTransaction getPhysicalJdbcTransaction()
void serialize(ObjectOutputStream oos) throws IOException
oos
- The stream to write out state toIOException
- Problem accessing streamCopyright © 2021 JBoss by Red Hat. All rights reserved.