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 |
Connection |
getPhysicalConnection()
Exposes access to the "real" Connection.
|
PhysicalJdbcTransaction |
getPhysicalJdbcTransaction() |
LogicalConnectionImplementor |
makeShareableCopy()
Creates a shareable copy of itself for use in "shared sessions"
|
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()
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.LogicalConnectionImplementor makeShareableCopy()
PhysicalJdbcTransaction getPhysicalJdbcTransaction()
void serialize(ObjectOutputStream oos) throws IOException
oos
- The stream to write out state toIOException
- Problem accessing streamCopyright © 2016 JBoss by Red Hat. All rights reserved.