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() |
java.sql.Connection |
getPhysicalConnection()
Exposes access to the "real" Connection.
|
PhysicalJdbcTransaction |
getPhysicalJdbcTransaction() |
LogicalConnectionImplementor |
makeShareableCopy()
Deprecated.
This method is not used by Hibernate.
|
java.sql.Connection |
manualDisconnect()
Manually disconnect the underlying JDBC Connection.
|
void |
manualReconnect(java.sql.Connection suppliedConnection)
Manually reconnect the underlying JDBC Connection.
|
void |
serialize(java.io.ObjectOutputStream oos)
Serialization hook
|
close, getResourceRegistry, isOpen, isPhysicallyConnected
java.sql.Connection getPhysicalConnection()
PhysicalConnectionHandlingMode getConnectionHandlingMode()
void afterStatement()
ConnectionReleaseMode.AFTER_STATEMENT
releasing if neededvoid afterTransaction()
ConnectionReleaseMode.AFTER_TRANSACTION
releasing if neededjava.sql.Connection manualDisconnect()
null
if
there was no connection cached internally.void manualReconnect(java.sql.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(java.io.ObjectOutputStream oos) throws java.io.IOException
oos
- The stream to write out state tojava.io.IOException
- Problem accessing streamCopyright © 2001-2018 Red Hat, Inc. All Rights Reserved.